mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-06-25 12:41:56 +03:00
Fix bug in exercise_mac_key that almost always broke the SIGN case
That case isn't used in the test suite yet.
This commit is contained in:
committed by
itayzafrir
parent
ebe10de167
commit
ef0cb40736
@ -143,7 +143,7 @@ static int exercise_mac_key( psa_key_slot_t key,
|
|||||||
TEST_ASSERT( psa_mac_update( &operation,
|
TEST_ASSERT( psa_mac_update( &operation,
|
||||||
input, sizeof( input ) ) == PSA_SUCCESS );
|
input, sizeof( input ) ) == PSA_SUCCESS );
|
||||||
TEST_ASSERT( psa_mac_sign_finish( &operation,
|
TEST_ASSERT( psa_mac_sign_finish( &operation,
|
||||||
mac, sizeof( input ),
|
mac, sizeof( mac ),
|
||||||
&mac_length ) == PSA_SUCCESS );
|
&mac_length ) == PSA_SUCCESS );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user