23 Feb, 2017

1 commit


02 Oct, 2016

1 commit

  • Add a guard to 'state' buffer and warn if its consistency after
    call to crypto_ahash_export() changes, so that any write that
    goes beyond advertised statesize (and thus causing potential
    memory corruption [1]) is more visible.

    [1] https://marc.info/?l=linux-crypto-vger&m=147467656516085

    Signed-off-by: Jan Stancek
    Cc: Herbert Xu
    Cc: Marcelo Cerri
    Signed-off-by: Herbert Xu

    Jan Stancek
     

31 Aug, 2016

1 commit

  • In FIPS mode, additional restrictions may apply. If these restrictions
    are violated, the kernel will panic(). This patch allows test vectors
    for symmetric ciphers to be marked as to be skipped in FIPS mode.

    Together with the patch, the XTS test vectors where the AES key is
    identical to the tweak key is disabled in FIPS mode. This test vector
    violates the FIPS requirement that both keys must be different.

    Reported-by: Tapas Sarangi
    Signed-off-by: Stephan Mueller
    Signed-off-by: Herbert Xu

    Stephan Mueller
     

09 Aug, 2016

1 commit

  • "if (!ret == template[i].fail)" is confusing to compilers (gcc5):

    crypto/testmgr.c: In function '__test_aead':
    crypto/testmgr.c:531:12: warning: logical not is only applied to the
    left hand side of comparison [-Wlogical-not-parentheses]
    if (!ret == template[i].fail) {
    ^

    Let there be 'if (template[i].fail == !ret) '.

    Signed-off-by: Yanjiang Jin
    Signed-off-by: Herbert Xu

    Yanjiang Jin
     

19 Jul, 2016

1 commit


05 Jul, 2016

1 commit


01 Jul, 2016

2 commits


23 Jun, 2016

2 commits


20 Jun, 2016

1 commit


18 May, 2016

1 commit

  • Pull crypto update from Herbert Xu:
    "API:

    - Crypto self tests can now be disabled at boot/run time.
    - Add async support to algif_aead.

    Algorithms:

    - A large number of fixes to MPI from Nicolai Stange.
    - Performance improvement for HMAC DRBG.

    Drivers:

    - Use generic crypto engine in omap-des.
    - Merge ppc4xx-rng and crypto4xx drivers.
    - Fix lockups in sun4i-ss driver by disabling IRQs.
    - Add DMA engine support to ccp.
    - Reenable talitos hash algorithms.
    - Add support for Hisilicon SoC RNG.
    - Add basic crypto driver for the MXC SCC.

    Others:

    - Do not allocate crypto hash tfm in NORECLAIM context in ecryptfs"

    * 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6: (77 commits)
    crypto: qat - change the adf_ctl_stop_devices to void
    crypto: caam - fix caam_jr_alloc() ret code
    crypto: vmx - comply with ABIs that specify vrsave as reserved.
    crypto: testmgr - Add a flag allowing the self-tests to be disabled at runtime.
    crypto: ccp - constify ccp_actions structure
    crypto: marvell/cesa - Use dma_pool_zalloc
    crypto: qat - make adf_vf_isr.c dependant on IOV config
    crypto: qat - Fix typo in comments
    lib: asn1_decoder - add MODULE_LICENSE("GPL")
    crypto: omap-sham - Use dma_request_chan() for requesting DMA channel
    crypto: omap-des - Use dma_request_chan() for requesting DMA channel
    crypto: omap-aes - Use dma_request_chan() for requesting DMA channel
    crypto: omap-des - Integrate with the crypto engine framework
    crypto: s5p-sss - fix incorrect usage of scatterlists api
    crypto: s5p-sss - Fix missed interrupts when working with 8 kB blocks
    crypto: s5p-sss - Use common BIT macro
    crypto: mxc-scc - fix unwinding in mxc_scc_crypto_register()
    crypto: mxc-scc - signedness bugs in mxc_scc_ablkcipher_req_init()
    crypto: talitos - fix ahash algorithms registration
    crypto: ccp - Ensure all dependencies are specified
    ...

    Linus Torvalds
     

09 May, 2016

1 commit

  • As akcipher uses an SG interface, you must not use vmalloc memory
    as input for it. This patch fixes testmgr to copy the vmalloc
    test vectors to kmalloc memory before running the test.

    This patch also removes a superfluous sg_virt call in do_test_rsa.

    Cc:
    Reported-by: Anatoly Pugachev
    Signed-off-by: Herbert Xu

    Herbert Xu
     

05 May, 2016

1 commit


28 Feb, 2016

1 commit


17 Feb, 2016

1 commit


06 Feb, 2016

3 commits


27 Jan, 2016

1 commit


25 Jan, 2016

1 commit


15 Oct, 2015

2 commits


14 Oct, 2015

1 commit

  • Setkey function has been split into set_priv_key and set_pub_key.
    Akcipher requests takes sgl for src and dst instead of void *.
    Users of the API i.e. two existing RSA implementation and
    test mgr code have been updated accordingly.

    Signed-off-by: Tadeusz Struk
    Signed-off-by: Herbert Xu

    Tadeusz Struk
     

01 Oct, 2015

1 commit


11 Sep, 2015

1 commit


21 Aug, 2015

1 commit


19 Aug, 2015

1 commit


04 Aug, 2015

2 commits


17 Jul, 2015

2 commits


14 Jul, 2015

2 commits


25 Jun, 2015

1 commit


17 Jun, 2015

3 commits


04 Jun, 2015

2 commits