Skip to content

Commit

Permalink
Fix EC private key generation template size
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Teräs <timo.teras@iki.fi>
  • Loading branch information
fabled authored and simo5 committed Sep 12, 2023
1 parent ce95bde commit 30a1e8e
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 @@ -1154,7 +1154,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 6
#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_PRIVATE, DISCARD_CONST(&val_true), sizeof(CK_BBOOL) },
Expand Down

0 comments on commit 30a1e8e

Please sign in to comment.