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:
parent
a680c7a9fc
commit
ca45c35e65
1 changed files with 1 additions and 1 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue