aboutsummaryrefslogtreecommitdiff
path: root/asn1_internal.h
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-08-10 12:19:10 -0400
committerRob Austein <sra@hactrn.net>2016-08-10 12:19:10 -0400
commit36dfaf0adbddbb9f1f7852911228b3ab24ba01aa (patch)
tree1426696e087293ab9e92135c96565d90fc032496 /asn1_internal.h
parent20d94fd816ad1755086501547aaffdda7916235a (diff)
Mixed-mode pkey sign and verify must construct DigestInfo for PKCS #1.5.
PKCS #11 expects a DigestInfo rather than a raw digest when passing a pre-computed digest for PKCS #1.5 signature or verification, so the rpc_pkey signature and verification calls do too. This requires special case handling of RSA when the user passes a digest handle in mixed mode. Annoying, but PKCS #1.5 is weird enoug that there's no way to avoid some kind of special case handling, this approach has the advantage of not requiring us to parse and reconstruct the ASN.1, and is probably what PKCS #11 has trained software to expect in any case.
Diffstat (limited to 'asn1_internal.h')
0 files changed, 0 insertions, 0 deletions