Skip to content

Commit

Permalink
Increased size of EC_PRIVKEY_TMPL_SIZE
Browse files Browse the repository at this point in the history
This commit updates EC_PRIVKEY_TMPL_SIZE to 6 for accomodating CKA_DERIVE
flag.

Signed-off-by: Kshitiz Varshney <[email protected]>
  • Loading branch information
kshitizvars authored and sahanaprasad07 committed Sep 3, 2024
1 parent cbffce1 commit 0c7504e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/keymgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1286,7 +1286,7 @@ static void *p11prov_ec_gen(void *genctx, OSSL_CALLBACK *cb_fn, void *cb_arg)
{ CKA_EC_PARAMS, (CK_BYTE *)ctx->data.ec.ec_params,
ctx->data.ec.ec_params_size },
};
#define EC_PRIVKEY_TMPL_SIZE 5
#define EC_PRIVKEY_TMPL_SIZE 6
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) },
Expand Down

0 comments on commit 0c7504e

Please sign in to comment.