public version of encode_pkcs1

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

public version of encode_pkcs1

William Roberts
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?

openssl-users mailing list
To unsubscribe: