1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Cosmetic changes

Adjust whitespaces, reduce test dependencies and reduce buffer size passed by 1.
This commit is contained in:
Andrzej Kurek
2018-11-19 18:04:01 -05:00
parent 5f7bad34bb
commit 4b11407258
3 changed files with 11 additions and 6 deletions

View File

@ -168,11 +168,11 @@ int mbedtls_pk_write_pubkey( unsigned char **p, unsigned char *start,
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
{