Can the following function please be added:

int RSA_public_digest(const RSA* key, const EVP_MD *type, unsigned char *md, 
unsigned int *len);

which would use “type” to generate a digest over the DER encoding of the public 
portion of “key”, and deposit “len” bytes into the buffer starting at “md”.

A similar function:

int RSA_private_digest() would take the same parameters as RSA_public_digest(), 
but for the DER encoding of the private key. This function is less useful than 
the first, but is useful for symmetry in the API and some corner cases.


Attachment: signature.asc
Description: PGP signature

Reply via email to