Code style fix : changed keylen to key_length
diff --git a/library/psa_crypto.c b/library/psa_crypto.c
index c4f2209..a2670ef 100755
--- a/library/psa_crypto.c
+++ b/library/psa_crypto.c
@@ -1029,7 +1029,7 @@
key_slot_t *slot;
psa_key_type_t key_type;
size_t key_bits;
- size_t keylen;
+ size_t key_length;
uint8_t* key_ptr = NULL;
const mbedtls_cipher_info_t *cipher_info = NULL;
@@ -1050,7 +1050,7 @@
return(PSA_ERROR_EMPTY_SLOT);
key_ptr = slot->data.raw.data;
- keylen = slot->data.raw.bytes;
+ key_length = slot->data.raw.bytes;
if( ( slot->policy.usage & PSA_KEY_USAGE_SIGN ) != 0 )
operation->key_usage_sign = 1;
@@ -1122,7 +1122,7 @@
if ( status != PSA_SUCCESS )
goto cleanup;
- keylen = sum_size;
+ key_length = sum_size;
key_ptr = sum;
}
@@ -1133,7 +1133,7 @@
memset( ipad, 0x36, operation->ctx.hmac.block_size );
memset( opad, 0x5C, operation->ctx.hmac.block_size );
- for( i = 0; i < keylen; i++ )
+ for( i = 0; i < key_length; i++ )
{
ipad[i] = ( unsigned char )( ipad[i] ^ key_ptr[i] );
opad[i] = ( unsigned char )( opad[i] ^ key_ptr[i] );