Skip to content

Commit

Permalink
Add CKA_DERIVE flag in server's private key template
Browse files Browse the repository at this point in the history
This commit adds CKA_DERIVE flag in server's private key template which is
required by optee subsystem.
Tested TLS1.2 with the change.

Signed-off-by: Kshitiz Varshney <[email protected]>
  • Loading branch information
kshitizvars authored and Jakuje committed Aug 20, 2024
1 parent f29b679 commit dd0346e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/keymgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1289,6 +1289,7 @@ static void *p11prov_ec_gen(void *genctx, OSSL_CALLBACK *cb_fn, void *cb_arg)
#define EC_PRIVKEY_TMPL_SIZE 5
CK_ATTRIBUTE privkey_template[EC_PRIVKEY_TMPL_SIZE + COMMON_TMPL_SIZE] = {
{ CKA_TOKEN, DISCARD_CONST(&val_true), sizeof(CK_BBOOL) },
{ CKA_DERIVE, DISCARD_CONST(&val_true), sizeof(CK_BBOOL) },
{ CKA_PRIVATE, DISCARD_CONST(&val_true), sizeof(CK_BBOOL) },
{ CKA_SENSITIVE, DISCARD_CONST(&val_true), sizeof(CK_BBOOL) },
{ CKA_SIGN, DISCARD_CONST(&val_true), sizeof(CK_BBOOL) },
Expand Down

0 comments on commit dd0346e

Please sign in to comment.