[openssl-users] public version of encode_pkcs1
William Roberts
bill.c.roberts at gmail.com
Mon Oct 8 17:44:52 UTC 2018
I would like to use OpenSSL to compute the DigestInfo structure to
pass to a TPM for a TPM side RSA_Decrypt() operation when the TPM
doesn't support the digest algorithm.
I see in crypt/rsa_sign.c the routine encode_pkcs1() seems to do what
I want. Is their
a public version of this or a better way to do this?
I could just use the pre-computed ASN1 headers from the Notes section
in RFC3447 and concatenate the digest but my initial reaction to that
idea is don't do it.
Thoughts or ideas?
Bill
More information about the openssl-users
mailing list