They're subjectPublicKeyInfo and privateKeyInfo. You can also call 
BERDecodeKey() and DEREncodeKey() if you just want the subjectPublicKey 
part or privateKey part. See ASN1Key in asn.h for more details.

On Fri, Apr 23, 2004 at 05:09:26PM +0200, Renzo Tomaselli wrote:
> Hi all,
>     what about the format of a public key I get from a
> RSASSA_PKCS1v15_SHA_Verifier instance ?
> I know I can get it from DEREncoding to a ByteQueue, but I dont' know if it
> is a plain key or something like a SubjectPublicKeyInfo. This topic raises
> when we have to fetch the public key from a certificate for verification
> operations and then we build up a verifier.
> And - by simmetry - what about the format of the private key I can get from
> a RSASSA_PKCS1v15_SHA_Signer ? In such case the topic raises when we manage
> external private keys, such as those we get from a PKCS#12 file.
> Thanks for any clarification,
> 
> Renzo Tomaselli

Reply via email to