Whitespace fixes; removed redundant parentheses
No semantic change.
diff --git a/library/psa_crypto.c b/library/psa_crypto.c
index 5fd1142..d1960f7 100644
--- a/library/psa_crypto.c
+++ b/library/psa_crypto.c
@@ -473,9 +473,9 @@
if( !( slot->policy.usage & PSA_KEY_USAGE_EXPORT ) )
return( PSA_ERROR_NOT_PERMITTED );
-
- if( ( export_public_key ) && ( !( PSA_KEY_TYPE_IS_PUBLIC_KEY( slot->type )
- || PSA_KEY_TYPE_IS_KEYPAIR( slot->type ) ) ) )
+
+ if( export_public_key && !( PSA_KEY_TYPE_IS_PUBLIC_KEY( slot->type ) ||
+ PSA_KEY_TYPE_IS_KEYPAIR( slot->type ) ) )
return( PSA_ERROR_INVALID_ARGUMENT );
if( PSA_KEY_TYPE_IS_RAW_BYTES( slot->type ) )
@@ -520,8 +520,8 @@
#endif /* defined(MBEDTLS_PK_WRITE_C) */
{
/* This shouldn't happen in the reference implementation, but
- it is valid for a special-purpose implementation to omit
- support for exporting certain key types. */
+ it is valid for a special-purpose implementation to omit
+ support for exporting certain key types. */
return( PSA_ERROR_NOT_SUPPORTED );
}
}