diff options
author | Vadim Sukhomlinov <sukhomlinov@google.com> | 2021-10-12 14:53:04 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-10-14 00:57:16 +0000 |
commit | 1ad3e00b6c6e67676d5a1de9689c18bfca31aa1a (patch) | |
tree | 4b2d98b4fa1452c25ee79c4eed04c730712b5bf8 /board/cr50/tpm2/aes.c | |
parent | 307b3dc3c0a294d2245ea7e9475f548077a98c3b (diff) | |
download | chrome-ec-1ad3e00b6c6e67676d5a1de9689c18bfca31aa1a.tar.gz |
cr50: cleanup public API for FIPS module
Move declarations of AES-GCM, AES-CMAC, ECIES, HKDF and few other
functions from dcrypto.h into internal.h.
Merge tpm2/hkdf.c into dcrypto/hkdf.c. It contains only function used
for testing and HKDF itself is only used for CRYPTO_TEST=1.
BUG=b:134594373
TEST=make buildall -j; make BOARD=cr50 CRYPTO_TEST=1
Signed-off-by: Vadim Sukhomlinov <sukhomlinov@google.com>
Change-Id: I56c03ff4e8838871cdb28c0d9946c39754d9e054
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3219576
Reviewed-by: Vadim Sukhomlinov <sukhomlinov@chromium.org>
Reviewed-by: Andrey Pronin <apronin@chromium.org>
Tested-by: Vadim Sukhomlinov <sukhomlinov@chromium.org>
Commit-Queue: Andrey Pronin <apronin@chromium.org>
Diffstat (limited to 'board/cr50/tpm2/aes.c')
-rw-r--r-- | board/cr50/tpm2/aes.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/board/cr50/tpm2/aes.c b/board/cr50/tpm2/aes.c index f515d0364b..56e3cbbb3b 100644 --- a/board/cr50/tpm2/aes.c +++ b/board/cr50/tpm2/aes.c @@ -216,6 +216,7 @@ CRYPT_RESULT _cpri__AESEncryptOFB( #include "extension.h" #include "hooks.h" #include "uart.h" +#include "internal.h" enum aes_test_cipher_mode { TEST_MODE_ECB = 0, |