[openssl-users] reading DER format public keys

Viktor Dukhovni openssl-users at dukhovni.org
Sat Sep 16 01:29:33 UTC 2017


> On Sep 15, 2017, at 6:24 PM, Michael Richardson <mcr at sandelman.ca> wrote:
> 
>> It is the DER analogue of PEM_read_bio_PUBKEY.  With few exceptions,
>> you can s/PEM_READ_bio/d2i/ to go from reading PEM to reading DER.
> 
> It would be great if there were cross-references...

I should note that the PEM_read_bio routines read data from a file,
while the d2i_PUBKEY() routine decodse data from memory.  The
corresponding "read a file" routines are:

	d2i_PUBKEY_bio()
and     d2i_PUBKEY_fp()

-- 
	Viktor.



More information about the openssl-users mailing list