Re: X509_digest() and X509_pubkey_digest().

2013-01-24 Thread Dr. Stephen Henson
On Wed, Jan 23, 2013, Viktor Dukhovni wrote: The OpenSSL library includes two very similar functions: int X509_digest( X509 *cert, const EVP_MD *digest, unsigned char *md, int *len); int X509_pubkey_digest(

Re: X509_digest() and X509_pubkey_digest().

2013-01-24 Thread Viktor Dukhovni
On Thu, Jan 24, 2013 at 02:49:25PM +0100, Dr. Stephen Henson wrote: This is a rather non-obvious interface, and X509_get_X509_PUBKEY() is not documented. I make no claim this is obvious but... It should be possible to do this in a single call using the ASN1_item_verify interface

X509_digest() and X509_pubkey_digest().

2013-01-22 Thread Viktor Dukhovni
The OpenSSL library includes two very similar functions: int X509_digest( X509 *cert, const EVP_MD *digest, unsigned char *md, int *len); int X509_pubkey_digest( const X509 *cert,