Skip to content

Commit 256187a

Browse files
committed
pkcs11-tool.c - fixup add template for genkey back in
On branch X25519-improvements-2 Changes to be committed: modified: tools/pkcs11-tool.c
1 parent fe4da3a commit 256187a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/tools/pkcs11-tool.c

+5-1
Original file line numberDiff line numberDiff line change
@@ -5166,9 +5166,13 @@ derive_ec_key(CK_SESSION_HANDLE session, CK_OBJECT_HANDLE key, CK_MECHANISM_TYPE
51665166
{CKA_KEY_TYPE, &newkey_type, sizeof(newkey_type) },
51675167
{CKA_SENSITIVE, &_false, sizeof(_false) },
51685168
{CKA_EXTRACTABLE, &_true, sizeof(_true) },
5169+
{CKA_ENCRYPT, &_true, sizeof(_true) },
5170+
{CKA_DECRYPT, &_true, sizeof(_true) },
5171+
{CKA_WRAP, &_true, sizeof(_true) },
5172+
{CKA_UNWRAP, &_true, sizeof(_true) }
51695173
};
51705174
// clang-format on
5171-
int n_attrs = 5;
5175+
int n_attrs = 9;
51725176
CK_ECDH1_DERIVE_PARAMS ecdh_parms;
51735177
CK_RV rv;
51745178
BIO *bio_in = NULL;

0 commit comments

Comments
 (0)