From e3458e03c8bb1a97a55912b3efc31cf3371ef830 Mon Sep 17 00:00:00 2001 From: Jerome Forissier Date: Mon, 26 Mar 2018 18:31:23 +0200 Subject: libutee: introduce CFG_TA_BIGNUM_MAX_BITS Make the size of big numbers in libutee configurable. This controls the size of the big numbers that can be manipulated through the TEE Internal Core API (Arithmetical functions). Signed-off-by: Jerome Forissier Reviewed-by: Jens Wiklander --- mk/config.mk | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mk') diff --git a/mk/config.mk b/mk/config.mk index 738b6d10..29b29e78 100644 --- a/mk/config.mk +++ b/mk/config.mk @@ -304,3 +304,9 @@ CFG_DYN_SHM_CAP ?= y # Enables support for larger physical addresses, that is, it will define # paddr_t as a 64-bit type. CFG_CORE_LARGE_PHYS_ADDR ?= n + +# Define the maximum size, in bits, for big numbers in the Internal Core API +# Arithmetical functions. This does *not* influence the key size that may be +# manipulated through the Cryptographic API. +# Set this to a lower value to reduce the TA memory footprint. +CFG_TA_BIGNUM_MAX_BITS ?= 2048 -- cgit v1.2.3