Skip to content

Commit 8471fa2

Browse files
committed
ForceZero on RSA der buffer
F-826
1 parent e2e301d commit 8471fa2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/internal.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3846,8 +3846,10 @@ int WP11_Rsa_SerializeKeyPTPKC8(WP11_Object* object, byte* output, word32* pouts
38463846
ret = 0;
38473847

38483848
end_func:
3849-
if (NULL != der)
3849+
if (NULL != der) {
3850+
wc_ForceZero(der, dersz);
38503851
XFREE(der, NULL, DYNAMIC_TYPE_TMP_BUFFER);
3852+
}
38513853

38523854
return ret;
38533855
}

0 commit comments

Comments
 (0)