Fix typo and style
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com>
diff --git a/library/psa_crypto.c b/library/psa_crypto.c
index 9a73bc9..fb04fe9 100644
--- a/library/psa_crypto.c
+++ b/library/psa_crypto.c
@@ -4414,7 +4414,6 @@
if( hkdf->block_number == last_block )
return( PSA_ERROR_BAD_STATE );
-
/* We need a new block */
++hkdf->block_number;
hkdf->offset_in_block = 0;
@@ -4429,24 +4428,24 @@
if( hkdf->block_number != 1 )
{
status = psa_mac_update( &hkdf->hmac,
- hkdf->output_block,
- hash_length );
+ hkdf->output_block,
+ hash_length );
if( status != PSA_SUCCESS )
return( status );
}
status = psa_mac_update( &hkdf->hmac,
- hkdf->info,
- hkdf->info_length );
+ hkdf->info,
+ hkdf->info_length );
if( status != PSA_SUCCESS )
return( status );
status = psa_mac_update( &hkdf->hmac,
- &hkdf->block_number, 1 );
+ &hkdf->block_number, 1 );
if( status != PSA_SUCCESS )
return( status );
status = psa_mac_sign_finish( &hkdf->hmac,
- hkdf->output_block,
- sizeof( hkdf->output_block ),
- &hmac_output_length );
+ hkdf->output_block,
+ sizeof( hkdf->output_block ),
+ &hmac_output_length );
if( status != PSA_SUCCESS )
return( status );
}