Fix exercise_signature_key for ECDSA

mbedtls_ecdsa_verify fails when the input is all-bits-zero (mbedtls
issue #1792). Use a different input.
This commit is contained in:
Gilles Peskine 2018-06-26 16:13:09 +02:00 committed by itayzafrir
parent a680c7a9fc
commit ca45c35e65

View file

@ -189,7 +189,7 @@ static int exercise_signature_key( psa_key_slot_t key,
psa_key_usage_t usage,
psa_algorithm_t alg )
{
unsigned char payload[16] = {0};
unsigned char payload[16] = {1};
size_t payload_length = sizeof( payload );
unsigned char signature[256] = {0};
size_t signature_length = sizeof( signature );