Unify memcmp functions
Signed-off-by: gabor-mezei-arm <gabor.mezei@arm.com>
diff --git a/library/cipher.c b/library/cipher.c
index a53609e..ce5179c 100644
--- a/library/cipher.c
+++ b/library/cipher.c
@@ -1159,7 +1159,7 @@
}
/* Check the tag in "constant-time" */
- if( mbedtls_constant_time_memcmp( tag, check_tag, tag_len ) != 0 )
+ if( mbedtls_cf_memcmp( tag, check_tag, tag_len ) != 0 )
return( MBEDTLS_ERR_CIPHER_AUTH_FAILED );
return( 0 );
@@ -1181,7 +1181,7 @@
}
/* Check the tag in "constant-time" */
- if( mbedtls_constant_time_memcmp( tag, check_tag, tag_len ) != 0 )
+ if( mbedtls_cf_memcmp( tag, check_tag, tag_len ) != 0 )
return( MBEDTLS_ERR_CIPHER_AUTH_FAILED );
return( 0 );