1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-07 06:42:56 +03:00

Dynamically allocate A(i) + seed buffer for TLS-1.2 PRF

This commit is contained in:
Hanno Becker
2018-11-13 20:50:45 +00:00
parent 24658c4ba1
commit 580fba1431
2 changed files with 23 additions and 6 deletions

View File

@@ -154,8 +154,8 @@ typedef struct psa_tls12_prf_generator_s
size_t key_len;
/* `A(i) + seed` in the notation of RFC 5246, Sect. 5 */
uint8_t Ai_with_seed[PSA_HASH_MAX_SIZE + 64];
size_t seed_length;
uint8_t *Ai_with_seed;
size_t Ai_with_seed_len;
/* `HMAC_hash( prk, A(i) + seed )` in the notation of RFC 5246, Sect. 5. */
uint8_t output_block[PSA_HASH_MAX_SIZE];