mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-30 06:33:06 +00:00
SE keys: test that the bit size is saved and loaded correctly
This commit is contained in:
parent
e60d1d08a4
commit
fc321f1a5e
@ -486,6 +486,8 @@ void key_creation_import_export( int min_slot, int restart )
|
|||||||
TEST_ASSERT( ram_slots[min_slot].type == PSA_KEY_TYPE_RAW_DATA );
|
TEST_ASSERT( ram_slots[min_slot].type == PSA_KEY_TYPE_RAW_DATA );
|
||||||
|
|
||||||
/* Test the key attributes and the key data. */
|
/* Test the key attributes and the key data. */
|
||||||
|
psa_set_key_bits( &attributes,
|
||||||
|
PSA_BYTES_TO_BITS( sizeof( key_material ) ) );
|
||||||
if( ! check_key_attributes( handle, &attributes ) )
|
if( ! check_key_attributes( handle, &attributes ) )
|
||||||
goto exit;
|
goto exit;
|
||||||
PSA_ASSERT( psa_export_key( handle,
|
PSA_ASSERT( psa_export_key( handle,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user