From 7f1c89d1d42245a1a89ec69c1e7bb525d2a6ef10 Mon Sep 17 00:00:00 2001 From: Przemek Stekiel Date: Tue, 19 Apr 2022 14:00:37 +0200 Subject: [PATCH] Provide other_secret, other_secret_length fields if MBEDTLS_PSA_BUILTIN_ALG_TLS12_PSK_TO_MS is defined Signed-off-by: Przemek Stekiel --- include/psa/crypto_struct.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/psa/crypto_struct.h b/include/psa/crypto_struct.h index 2cbdcdfade..f333db158a 100644 --- a/include/psa/crypto_struct.h +++ b/include/psa/crypto_struct.h @@ -232,8 +232,10 @@ typedef struct psa_tls12_prf_key_derivation_s size_t MBEDTLS_PRIVATE(seed_length); uint8_t *MBEDTLS_PRIVATE(label); size_t MBEDTLS_PRIVATE(label_length); +#if defined(MBEDTLS_PSA_BUILTIN_ALG_TLS12_PSK_TO_MS) uint8_t *MBEDTLS_PRIVATE(other_secret); size_t MBEDTLS_PRIVATE(other_secret_length); +#endif /* MBEDTLS_PSA_BUILTIN_ALG_TLS12_PSK_TO_MS */ uint8_t MBEDTLS_PRIVATE(Ai)[PSA_HASH_MAX_SIZE];