Whitespace fixes

Changed indentation to match Mbed TLS style. Wrapped some lines to 80 columns.
This commit is contained in:
Gilles Peskine 2018-06-01 16:28:30 +02:00 committed by itayzafrir
parent 20399393a5
commit a40d77477d

View file

@ -1517,7 +1517,8 @@ psa_status_t psa_aead_encrypt( psa_key_slot_t key,
mbedtls_gcm_context gcm;
mbedtls_gcm_init( &gcm );
ret = mbedtls_gcm_setkey( &gcm, cipher_id,
( const unsigned char * )slot->data.raw.data, key_bits );
( const unsigned char * )slot->data.raw.data,
key_bits );
if( ret != 0 )
{
mbedtls_gcm_free( &gcm );
@ -1554,7 +1555,8 @@ psa_status_t psa_aead_encrypt( psa_key_slot_t key,
ret = mbedtls_ccm_encrypt_and_tag( &ccm, plaintext_length,
nonce, nonce_length, additional_data,
additional_data_length,
plaintext, ciphertext, tag, sizeof( tag ) );
plaintext, ciphertext,
tag, sizeof( tag ) );
if( ret != 0 )
{
mbedtls_ccm_free( &ccm );
@ -1631,7 +1633,8 @@ psa_status_t psa_aead_decrypt( psa_key_slot_t key,
ret = mbedtls_gcm_crypt_and_tag( &gcm, MBEDTLS_GCM_DECRYPT,
ciphertext_length, nonce, nonce_length,
additional_data, additional_data_length,
ciphertext, plaintext, sizeof( tag ), tag );
ciphertext, plaintext,
sizeof( tag ), tag );
if( ret != 0 )
{
mbedtls_gcm_free( &gcm );