Skip to content

Commit 75d318b

Browse files
committed
ForceZero on RSA key decoding
F-822
1 parent 4db2f37 commit 75d318b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/internal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3630,7 +3630,7 @@ static int wp11_Object_Decode_RsaKey(WP11_Object* object)
36303630
if (ret == 0) {
36313631
/* Decode RSA private key. */
36323632
ret = wc_RsaPrivateKeyDecode(der, &idx, key, len);
3633-
XMEMSET(der, 0, len);
3633+
wc_ForceZero(der, len);
36343634
}
36353635
if (der != NULL)
36363636
XFREE(der, NULL, DYNAMIC_TYPE_TMP_BUFFER);

0 commit comments

Comments
 (0)