From 6bf30be457bf4aa5a54884d1dd6aef320f6cf198 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Fri, 4 Oct 2019 10:13:53 +0200 Subject: [PATCH] Use plain memset() for signature transcoding By nature, signatures don't need to be kept secret. --- library/pk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/pk.c b/library/pk.c index 688a1fc8e..614b63f31 100644 --- a/library/pk.c +++ b/library/pk.c @@ -511,7 +511,7 @@ static int extract_ecdsa_sig_int( unsigned char **from, const unsigned char *end return( MBEDTLS_ERR_ASN1_LENGTH_MISMATCH ); padding_len = to_len - unpadded_len; - mbedtls_platform_memset( to, 0x00, padding_len ); + memset( to, 0x00, padding_len ); memcpy( to + padding_len, *from, unpadded_len ); ( *from ) += unpadded_len;