Skip to content

Commit 4c03d34

Browse files
committed
ForceZero on DH key encode
F-824
1 parent a37de0f commit 4c03d34

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
@@ -5343,7 +5343,7 @@ static int wp11_Object_Encode(WP11_Object* object, int protect)
53435343
case CKK_DH:
53445344
ret = wp11_Object_Encode_DhKey(object);
53455345
if (protect && ret == 0 && object->objClass == CKO_PRIVATE_KEY) {
5346-
XMEMSET(object->data.dhKey->key, 0, object->data.dhKey->len);
5346+
wc_ForceZero(object->data.dhKey->key, object->data.dhKey->len);
53475347
object->encoded = 1;
53485348
}
53495349
break;

0 commit comments

Comments
 (0)