Hello,
> Hello,
> > I am getting wrong tag when storing my public key (pkcs#1) using d2i
> > (running on redhat) before doing verification:
> > 
> > dsa->dsa = d2i_DSA_PUBKEY(NULL, 
> >   (const unsigned char **)&(fromp->RawPubKey),
> > strlen(fromp->RawPubKey)); 
> > 
> > error:
> > Load public key failed:  asn1 encoding routines: ASN1_CHECK_TLEN:
> > wrong tag
> Do not use strlen() on DER data.
And of course this buffer must be DER, not PEM (base64 with headers).

Best regards,
-- 
Marek Marcola <[EMAIL PROTECTED]>

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to