Normalize whitespace to Mbed TLS standards

Only whitespace changes in this commit.
This commit is contained in:
Gilles Peskine 2018-06-11 17:13:00 +02:00 committed by itayzafrir
parent ef057ac8ed
commit 99bc649760

View file

@ -1130,8 +1130,8 @@ psa_status_t psa_mac_start( psa_mac_operation_t *operation,
key_ptr, slot->data.raw.bytes); key_ptr, slot->data.raw.bytes);
if( status != PSA_SUCCESS ) if( status != PSA_SUCCESS )
goto cleanup; goto cleanup;
status = psa_hash_finish(&operation->ctx.hmac.hash_ctx, sum, status = psa_hash_finish( &operation->ctx.hmac.hash_ctx,
sum_size, &sum_size); sum, sum_size, &sum_size);
if( status != PSA_SUCCESS ) if( status != PSA_SUCCESS )
goto cleanup; goto cleanup;
@ -1173,10 +1173,10 @@ cleanup:
if( ret != 0 ) if( ret != 0 )
{ {
psa_mac_abort(operation); psa_mac_abort(operation);
return( mbedtls_to_psa_error( ret ) ); if ( ret != 0 )
status = mbedtls_to_psa_error(ret);
} }
operation->key_set = 1;
return( PSA_SUCCESS );
} }
psa_status_t psa_mac_update( psa_mac_operation_t *operation, psa_status_t psa_mac_update( psa_mac_operation_t *operation,