mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-05-12 22:32:21 +00:00
Whitespace fixes; removed redundant parentheses
No semantic change.
This commit is contained in:
parent
c425e87af7
commit
785fd55a39
|
@ -474,8 +474,8 @@ static psa_status_t psa_internal_export_key(psa_key_slot_t key,
|
||||||
if( !( slot->policy.usage & PSA_KEY_USAGE_EXPORT ) )
|
if( !( slot->policy.usage & PSA_KEY_USAGE_EXPORT ) )
|
||||||
return( PSA_ERROR_NOT_PERMITTED );
|
return( PSA_ERROR_NOT_PERMITTED );
|
||||||
|
|
||||||
if( ( export_public_key ) && ( !( PSA_KEY_TYPE_IS_PUBLIC_KEY( slot->type )
|
if( export_public_key && !( PSA_KEY_TYPE_IS_PUBLIC_KEY( slot->type ) ||
|
||||||
|| PSA_KEY_TYPE_IS_KEYPAIR( slot->type ) ) ) )
|
PSA_KEY_TYPE_IS_KEYPAIR( slot->type ) ) )
|
||||||
return( PSA_ERROR_INVALID_ARGUMENT );
|
return( PSA_ERROR_INVALID_ARGUMENT );
|
||||||
|
|
||||||
if( PSA_KEY_TYPE_IS_RAW_BYTES( slot->type ) )
|
if( PSA_KEY_TYPE_IS_RAW_BYTES( slot->type ) )
|
||||||
|
|
|
@ -580,7 +580,6 @@ void import_export_public_key( char *hex,
|
||||||
if( status != PSA_SUCCESS )
|
if( status != PSA_SUCCESS )
|
||||||
goto destroy;
|
goto destroy;
|
||||||
|
|
||||||
|
|
||||||
TEST_ASSERT( exported_length == (size_t) public_key_expected_length );
|
TEST_ASSERT( exported_length == (size_t) public_key_expected_length );
|
||||||
|
|
||||||
destroy:
|
destroy:
|
||||||
|
|
Loading…
Reference in a new issue