From 5c506c73751cc3f51df88826b89b5f729d8955c5 Mon Sep 17 00:00:00 2001 From: Yann Gautier Date: Mon, 6 Feb 2023 13:51:57 +0100 Subject: [PATCH] fix(st): update comment on encryption key On STM32MP2, the encryption key is 32 bytes, the key duplication (done for 16 bytes OTP) is not done. Update the comment to precise that. Change-Id: I6fc4d652fdd462808918e85f6e5bd0d68d10d436 Yann Gautier --- plat/st/common/stm32mp_crypto_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plat/st/common/stm32mp_crypto_lib.c b/plat/st/common/stm32mp_crypto_lib.c index b3b1d3dae..e282115d7 100644 --- a/plat/st/common/stm32mp_crypto_lib.c +++ b/plat/st/common/stm32mp_crypto_lib.c @@ -491,7 +491,7 @@ static int derive_key(uint8_t *key, size_t *key_len, size_t len, /* * Not a real derivation yet * - * But we expect a 32 bytes key, and OTP is only 16 bytes + * We expect a 32 bytes key, if OTP is only 16 bytes * => duplicate. */ for (i = 0U, j = len; j < 32U;