aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSohaib ul Hassan <sohaib.ul.hassan@unikie.com>2022-05-06 14:07:35 +0300
committerJerome Forissier <jerome.forissier@linaro.org>2022-05-06 17:07:18 +0200
commit3b6c0c22d1adc99e343af8aea0e3d973623068d0 (patch)
tree451f3c8c511190b4884cb1b6dedf9a6bb1e19616
parent6d720b843974dde33a8ed94ce01c07494ccf9545 (diff)
downloadoptee_os-import/libtomcrypt-1.18.2-develop-20180819.tar.gz
core: libtomcrypt: Fix compilation issue with CFG_CRYPTO_ECC=nimport/libtomcrypt-1.18.2-develop-20180819
Disabling ECC crypto does not disable the libtomcrypt ECC related declarations, so CFG_CRYPTO_ECC=n gives a compilation error. Signed-off-by: Sohaib ul Hassan <sohaib.ul.hassan@unikie.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
-rw-r--r--core/lib/libtomcrypt/acipher_helpers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/lib/libtomcrypt/acipher_helpers.h b/core/lib/libtomcrypt/acipher_helpers.h
index 3cf518b49..6ef91e371 100644
--- a/core/lib/libtomcrypt/acipher_helpers.h
+++ b/core/lib/libtomcrypt/acipher_helpers.h
@@ -35,7 +35,7 @@ static inline TEE_Result convert_ltc_verify_status(int ltc_res, int ltc_stat)
}
}
-#ifdef CFG_CRYPTOLIB_NAME_tomcrypt
+#ifdef _CFG_CORE_LTC_ECC
TEE_Result ecc_populate_ltc_private_key(ecc_key *ltc_key,
struct ecc_keypair *key,
uint32_t algo, size_t *key_size_bytes);