mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-25 13:45:36 +00:00
Fixed test sign_deterministic, macro PSA_ASYMMETRIC_SIGN_OUTPUT_SIZE
Arguments in the wrong order
This commit is contained in:
parent
3e02b3b280
commit
27fbaf7781
|
@ -1028,7 +1028,7 @@ void sign_deterministic( int key_type_arg, data_t *key_data,
|
||||||
NULL,
|
NULL,
|
||||||
&key_bits ) == PSA_SUCCESS );
|
&key_bits ) == PSA_SUCCESS );
|
||||||
|
|
||||||
signature_size = PSA_ASYMMETRIC_SIGN_OUTPUT_SIZE( key_type, alg, key_bits );
|
signature_size = PSA_ASYMMETRIC_SIGN_OUTPUT_SIZE( key_type, key_bits, alg );
|
||||||
TEST_ASSERT( signature_size != 0 );
|
TEST_ASSERT( signature_size != 0 );
|
||||||
signature = mbedtls_calloc( 1, signature_size );
|
signature = mbedtls_calloc( 1, signature_size );
|
||||||
TEST_ASSERT( signature != NULL );
|
TEST_ASSERT( signature != NULL );
|
||||||
|
|
Loading…
Reference in a new issue