Cosmetic changes
Adjust whitespaces, reduce test dependencies and reduce buffer size passed by 1.
diff --git a/library/pkwrite.c b/library/pkwrite.c
index d135060..dcd3263 100644
--- a/library/pkwrite.c
+++ b/library/pkwrite.c
@@ -168,11 +168,11 @@
if( mbedtls_pk_get_type( key ) == MBEDTLS_PK_OPAQUE )
{
size_t buffer_size = *p - start;
- psa_key_slot_t* key_slot = ( psa_key_slot_t* ) key->pk_ctx;
+ psa_key_slot_t* key_slot = (psa_key_slot_t*) key->pk_ctx;
if ( psa_export_public_key( *key_slot, start, buffer_size, &len )
!= PSA_SUCCESS )
{
- return MBEDTLS_ERR_PK_BAD_INPUT_DATA;
+ return( MBEDTLS_ERR_PK_BAD_INPUT_DATA );
}
else
{