[openssl.org #3606] Need RSA_pubkey_digest()

2014-11-27 Thread Matt Caswell via RT
Adding info from Steve on how to do this on one go and reclosing this ticket: On 25/11/14 16:02, Dr. Stephen Henson wrote: I'm curious: I've not seen the private key version before, where is it used? You can actually perform the encode and digest operation all in one go using the

[openssl.org #3606] Need RSA_pubkey_digest()

2014-11-25 Thread Matt Caswell via RT
On Thu Nov 20 21:35:45 2014, phil...@redfish-solutions.com wrote: 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

Re: [openssl.org #3606] Need RSA_pubkey_digest()

2014-11-25 Thread Philip Prindeville
On 11/25/2014 07:48 AM, Matt Caswell via RT wrote: On Thu Nov 20 21:35:45 2014, phil...@redfish-solutions.com wrote: 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

Re: [openssl.org #3606] Need RSA_pubkey_digest()

2014-11-25 Thread Philip Prindeville via RT
On 11/25/2014 07:48 AM, Matt Caswell via RT wrote: On Thu Nov 20 21:35:45 2014, phil...@redfish-solutions.com wrote: 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

Re: [openssl.org #3606] Need RSA_pubkey_digest()

2014-11-25 Thread Dr. Stephen Henson
On Tue, Nov 25, 2014, Philip Prindeville via RT wrote: On 11/25/2014 07:48 AM, Matt Caswell via RT wrote: On Thu Nov 20 21:35:45 2014, phil...@redfish-solutions.com wrote: Can the following function please be added: int RSA_public_digest(const RSA* key, const EVP_MD *type, unsigned

[openssl.org #3606] Need RSA_pubkey_digest()

2014-11-20 Thread Philip A. Prindeville via RT
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