Home
last modified time | relevance | path

Searched hist:e6e7781f4ba7fe73ee312f4eed640e7ba1d04752 (Results 1 – 1 of 1) sorted by relevance

/optee_os/lib/libutee/
H A Dtee_api_arith_mpi.ce6e7781f4ba7fe73ee312f4eed640e7ba1d04752 Mon Dec 14 22:42:48 UTC 2020 Jens Wiklander <jens.wiklander@linaro.org> libutee: fix TEE_BigIntInit() memset()

The TEE_BigIntInit() supplied length is the number of words allocated
for the bigint, including headers. Prior to this patch it seems it was
assumed that length was number of bits given the call to
TEE_BigIntSizeInU32(). With this patch correct this by removing the
TEE_BigIntSizeInU32() call.

Fixes: 062e3d01c039 ("ta: switch to to mbedtls for bignum")
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>