mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-08 17:42:09 +03:00
Merge pull request #6784 from valeriosetti/issue6702
Make SHA224_C/SHA384_C independent from SHA256_C/SHA512_C
This commit is contained in:
@@ -4532,7 +4532,7 @@ void ssl_tls13_create_psk_binder( int hash_alg,
|
||||
data_t *transcript,
|
||||
data_t *binder_expected )
|
||||
{
|
||||
unsigned char binder[ MBEDTLS_MD_MAX_SIZE ];
|
||||
unsigned char binder[ MBEDTLS_HASH_MAX_SIZE ];
|
||||
|
||||
/* Double-check that we've passed sane parameters. */
|
||||
psa_algorithm_t alg = (psa_algorithm_t) hash_alg;
|
||||
@@ -4664,7 +4664,7 @@ void ssl_tls13_key_evolution( int hash_alg,
|
||||
data_t *input,
|
||||
data_t *expected )
|
||||
{
|
||||
unsigned char secret_new[ MBEDTLS_MD_MAX_SIZE ];
|
||||
unsigned char secret_new[ MBEDTLS_HASH_MAX_SIZE ];
|
||||
|
||||
PSA_INIT();
|
||||
|
||||
|
Reference in New Issue
Block a user