Rename psa_hash_start -> psa_hash_setup
Make function names for multipart operations more consistent (hash
edition).
diff --git a/library/psa_crypto.c b/library/psa_crypto.c
index cc996a0..76e1a68 100644
--- a/library/psa_crypto.c
+++ b/library/psa_crypto.c
@@ -944,7 +944,7 @@
return( PSA_SUCCESS );
}
-psa_status_t psa_hash_start( psa_hash_operation_t *operation,
+psa_status_t psa_hash_setup( psa_hash_operation_t *operation,
psa_algorithm_t alg )
{
int ret;
@@ -1311,7 +1311,7 @@
#if defined(MBEDTLS_MD_C)
if( PSA_ALG_IS_HMAC( operation->alg ) )
{
- status = psa_hash_start( &operation->ctx.hmac.hash_ctx,
+ status = psa_hash_setup( &operation->ctx.hmac.hash_ctx,
PSA_ALG_HMAC_HASH( alg ) );
}
else
@@ -1445,7 +1445,7 @@
opad[i] = ipad[i] ^ 0x36 ^ 0x5C;
memset( opad + key_length, 0x5C, block_size - key_length );
- status = psa_hash_start( &operation->ctx.hmac.hash_ctx,
+ status = psa_hash_setup( &operation->ctx.hmac.hash_ctx,
PSA_ALG_HMAC_HASH( alg ) );
if( status != PSA_SUCCESS )
goto cleanup;
@@ -1627,7 +1627,7 @@
goto cleanup;
/* From here on, tmp needs to be wiped. */
- status = psa_hash_start( &operation->ctx.hmac.hash_ctx,
+ status = psa_hash_setup( &operation->ctx.hmac.hash_ctx,
PSA_ALG_HMAC_HASH( operation->alg ) );
if( status != PSA_SUCCESS )
goto hmac_cleanup;