aboutsummaryrefslogtreecommitdiff
path: root/core/crypto.mk
diff options
context:
space:
mode:
authorJens Wiklander <jens.wiklander@linaro.org>2017-11-16 12:44:47 +0100
committerJérôme Forissier <jerome.forissier@linaro.org>2017-11-20 09:27:01 +0100
commit1fca7e269b134c6a02d662cdbd6ee67fa3b9801c (patch)
treef754567c595bddcb68d58ffdcaee0cc293d0022a /core/crypto.mk
parent71cd3ee470bd9d794692f7440ae76dbd5877d8b7 (diff)
core: crypto: add new AES-GCM implementation
Adds a new AES-GCM implementation optimized for hardware acceleration. This implementation is enabled by default, to use the implementation in libTomCrypt instead set CFG_CRYPTO_AES_GCM_FROM_CRYPTOLIB=y. Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (HiKey960) Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'core/crypto.mk')
-rw-r--r--core/crypto.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/crypto.mk b/core/crypto.mk
index dffa4840..2dc24d9e 100644
--- a/core/crypto.mk
+++ b/core/crypto.mk
@@ -36,7 +36,8 @@ CFG_CRYPTO_ECC ?= y
# Authenticated encryption
CFG_CRYPTO_CCM ?= y
CFG_CRYPTO_GCM ?= y
-CFG_CRYPTO_AES_GCM_FROM_CRYPTOLIB = $(CFG_CRYPTO_GCM)
+# Default uses the OP-TEE internal AES-GCM implementation
+CFG_CRYPTO_AES_GCM_FROM_CRYPTOLIB ?= n
endif