aboutsummaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorJerome Forissier <jerome.forissier@linaro.org>2018-03-27 00:16:38 +0800
committerJérôme Forissier <jerome.forissier@linaro.org>2018-04-03 18:25:00 +0200
commit409d2ff0a248904b871dd7345ef3f8fdd55ad119 (patch)
tree763019020c191166d401f93cf60db865d6a33c30 /mk
parente3458e03c8bb1a97a55912b3efc31cf3371ef830 (diff)
core: crypto: ltc: introduce CFG_CORE_BIGNUM_MAX_BITS
Make the size of big numbers in the TEE core configurable. The default (4096 bits) may be reduced if such a large key size is not needed, to save core memory. Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'mk')
-rw-r--r--mk/config.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/mk/config.mk b/mk/config.mk
index 29b29e78..045a64a2 100644
--- a/mk/config.mk
+++ b/mk/config.mk
@@ -310,3 +310,10 @@ CFG_CORE_LARGE_PHYS_ADDR ?= n
# manipulated through the Cryptographic API.
# Set this to a lower value to reduce the TA memory footprint.
CFG_TA_BIGNUM_MAX_BITS ?= 2048
+
+# Define the maximum size, in bits, for big numbers in the TEE core (privileged
+# layer).
+# This value is an upper limit for the key size in any cryptographic algorithm
+# implemented by the TEE core.
+# Set this to a lower value to reduce the memory footprint.
+CFG_CORE_BIGNUM_MAX_BITS ?= 4096