commit | b314df1fb76d6d77cc32d0130acadbd8fa247c95 | [log] [tgz] |
---|---|---|
author | Jens Wiklander <jens.wiklander@linaro.org> | Mon Mar 30 14:36:55 2020 +0200 |
committer | Jérôme Forissier <jerome@forissier.org> | Mon Apr 06 18:34:09 2020 +0200 |
tree | cca8f226f0b236f768063fd46fbc6d58b6f4df20 | |
parent | 5b2aaa117eee65e8c31abd3f2e4069bf6b902bf7 [diff] |
core: crypto: refactor aes-gcm implementation Adds struct internal_ghash_key to represent the ghash key instead of some lose fields inside struct internal_aes_gcm_state. Software of CE configuration is done explicitly in core/crypto/aes-gcm-sw.c, dropping the __weak attribute for all functions but internal_aes_gcm_update_payload_block_aligned() which is only overridden with CFG_CRYPTO_WITH_CE=y in AArch64. Content of aes-gcm-private.h is moved into internal_aes-gcm.h. internal_aes_gcm_gfmul() is made available for generic GF multiplication. The CE versions of internal_aes_gcm_expand_enc_key() and internal_aes_gcm_encrypt_block() are now only wrappers around crypto_accel_aes_expand_keys() and crypto_accel_aes_ecb_enc(). Acked-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
This git contains source code for the secure side implementation of OP-TEE project.
All official OP-TEE documentation has moved to http://optee.readthedocs.io.
// OP-TEE core maintainers