Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace crypto ops #1931

Merged
merged 12 commits into from
Nov 14, 2017
Merged

Replace crypto ops #1931

merged 12 commits into from
Nov 14, 2017

Commits on Nov 14, 2017

  1. core: crypto: fix crypto_rng_read() comment

    Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
    Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
    Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
    jenswi-linaro committed Nov 14, 2017
    Configuration menu
    Copy the full SHA
    323f59e View commit details
    Browse the repository at this point in the history
  2. Replace struct hash_ops with function interface

    Adds crypto_hash_get_ctx_size(), crypto_hash_init(),
    crypto_hash_update() and crypto_hash_final() replacing struct hash_ops
    in crypto_ops.
    
    Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
    Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
    Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
    jenswi-linaro committed Nov 14, 2017
    Configuration menu
    Copy the full SHA
    6867c71 View commit details
    Browse the repository at this point in the history
  3. Replace struct cipher_ops with function interface

    Adds crypto_cipher_get_ctx_size(), crypto_cipher_init(),
    crypto_cipher_update(), crypto_cipher_final() and
    crypto_cipher_get_block_size() replacing struct cipher_ops in
    crypto_ops.
    
    Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
    Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
    Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
    jenswi-linaro committed Nov 14, 2017
    Configuration menu
    Copy the full SHA
    f51389b View commit details
    Browse the repository at this point in the history
  4. Replace struct mac_ops with function interface

    Adds mac_cipher_get_ctx_size(), mac_cipher_init(), mac_cipher_update()
    and  mac_cipher_final() replacing struct mac_ops in crypto_ops.
    
    Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
    Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
    Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
    jenswi-linaro committed Nov 14, 2017
    Configuration menu
    Copy the full SHA
    c5f430b View commit details
    Browse the repository at this point in the history
  5. Replace struct authenc_ops with function interface

    Adds crypto_authenc_*() replacing struct authenc_ops in crypto_ops.
    
    Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
    Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
    Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
    jenswi-linaro committed Nov 14, 2017
    Configuration menu
    Copy the full SHA
    a0176d8 View commit details
    Browse the repository at this point in the history
  6. Replace struct bignum_ops with function interface

    Adds crypto_bignum_*() replacing struct bignum_ops in crypto_ops.
    
    Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
    Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
    Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
    jenswi-linaro committed Nov 14, 2017
    Configuration menu
    Copy the full SHA
    c4afa2d View commit details
    Browse the repository at this point in the history
  7. Replace struct acipher_ops with function interface

    Adds crypto_acipher_*() replacing struct acipher_ops in crypto_ops.
    
    Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
    Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
    Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
    jenswi-linaro committed Nov 14, 2017
    Configuration menu
    Copy the full SHA
    c4c2749 View commit details
    Browse the repository at this point in the history
  8. core: remove struct crypto_ops

    Removes struct crypto_ops and adds crypto_init()
    
    Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
    Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
    Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
    jenswi-linaro committed Nov 14, 2017
    Configuration menu
    Copy the full SHA
    cbccb60 View commit details
    Browse the repository at this point in the history
  9. core: rename to <crypto/crypto.h>

    Renames core/include/tee/tee_cryp_provider.h to
    core/include/crypto/crypto.h
    
    Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
    Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
    Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
    jenswi-linaro committed Nov 14, 2017
    Configuration menu
    Copy the full SHA
    8759aec View commit details
    Browse the repository at this point in the history
  10. core: move crypto_authenc_*() from LTC

    * Moves crypto_authenc_*() from LTC to core/crypto/crypto.c
    * Defines <crypto/aes-gcm.h> and <crypto/aes-ccm.h> and
      implements the functions in
      core/lib/libtomcrypt/src/tee_ltc_provider.c based on the
      old implementations of crypto_authenc_*().
    
    Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
    Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
    Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
    jenswi-linaro committed Nov 14, 2017
    Configuration menu
    Copy the full SHA
    6701081 View commit details
    Browse the repository at this point in the history
  11. Documentation: sync with new crypto.h

    Update documentation of the Crypto API with the new <crypto/crypto.h>
    replacing the old crypto_ops based API.
    
    Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
    Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
    Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
    jenswi-linaro committed Nov 14, 2017
    Configuration menu
    Copy the full SHA
    b3e8287 View commit details
    Browse the repository at this point in the history
  12. core: fix asan build error

    Fixes the build error:
    kern.ld:153: undefined symbol `__asan_shadow_start' referenced in expression
    
    Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (HiKey960, GP)
    Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
    Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
    Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
    jenswi-linaro committed Nov 14, 2017
    Configuration menu
    Copy the full SHA
    04c628d View commit details
    Browse the repository at this point in the history