From e09aff8f5a46cba41a280739d23fa44ec0940f15 Mon Sep 17 00:00:00 2001 From: Andrzej Kurek Date: Mon, 26 Sep 2022 10:59:31 -0400 Subject: [PATCH] Add information about ECJPAKE_TO_PMS output size expectations Signed-off-by: Andrzej Kurek --- include/psa/crypto_values.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/psa/crypto_values.h b/include/psa/crypto_values.h index f050ecc42..b465ddb14 100644 --- a/include/psa/crypto_values.h +++ b/include/psa/crypto_values.h @@ -2030,6 +2030,8 @@ * #PSA_KEY_DERIVATION_INPUT_SECRET is the shared secret K from EC J-PAKE. * The only supported curve is secp256r1 (the 256-bit curve in * #PSA_ECC_FAMILY_SECP_R1), so the input must be exactly 65 bytes. + * The output has to be read as a single chunk of 32 bytes, defined as + * PSA_TLS12_ECJPAKE_TO_PMS_DATA_SIZE. */ #define PSA_ALG_TLS12_ECJPAKE_TO_PMS ((psa_algorithm_t)0x08000609)