aboutsummaryrefslogtreecommitdiff
path: root/p11util.c
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-05-12 21:32:25 -0400
committerRob Austein <sra@hactrn.net>2016-05-12 21:32:25 -0400
commitf0556bb5c26c1d4198b0336be9f1f5dffcc3ea95 (patch)
tree8b2bb893702776a1bfc5615fe104477f5655de5e /p11util.c
parentf5269ae7fe6ff845c396734be7ef0c807efc9bc7 (diff)
Fix RSA key length and CKA_ID lookup.
libhal RPC API takes RSA key lengths in bits, not bytes. Insisting on receiving matching CKA_ID in both public and private templates on key generation is probably unwise, so back down using CKA_ID from private template if provided, otherwise from the public template, and only raise incompete template error if both are missing.
Diffstat (limited to 'p11util.c')
0 files changed, 0 insertions, 0 deletions