Skip to content

Commit 2eb7e7c

Browse files
committed
Set CKA_LOCAL for symmetric keys
F-2033
1 parent c326454 commit 2eb7e7c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/internal.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13162,6 +13162,10 @@ int WP11_GenerateRandomKey(WP11_Object* secret, WP11_Slot* slot)
1316213162
ret = wc_RNG_GenerateBlock(&slot->token.rng, key->data, key->len);
1316313163
WP11_Lock_UnlockRW(&slot->token.rngLock);
1316413164

13165+
if (ret == 0) {
13166+
secret->local = 1;
13167+
}
13168+
1316513169
return ret;
1316613170
}
1316713171
#endif /* WOLFPKCS11_HKDF || !NO_AES */

0 commit comments

Comments
 (0)