Dr. Henson: Thank you very much for your help.
It worked with the d2i_RSA_PUBKEY() function. Both sides recognized the encrypted data. So I need to know now how to do the same with a private key, also in DER format. Any way, I'm sending you the keys I'm using to test the application and would appreciate your opinion. In relation to the documentation, I think I'm outdated, because I searched a local copy that I have and there is no information related to the d2i_* functions that I've used before. Is there a good documentation available for this and the other functions? Thank you in advance. Best regards, Herbert | -----Original Message----- | From: [EMAIL PROTECTED] | [mailto:[EMAIL PROTECTED] On Behalf Of Dr. | Stephen Henson | Sent: Viernes, 10 de Septiembre de 2004 08:54 PM | To: [EMAIL PROTECTED] | Subject: Re: How to convert a buffer in DER format to a RSA structure? | | On Fri, Sep 10, 2004, Herbert Skopnik V. wrote: | | > Joseph and Rich: | > | > In the previous code I obviated the "len" initialization, | but it was initialized; and I used what Rich said. The | application did not crashed, but I got this error: | > | > error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag | > | > I've not found any documentation about this error. | > | | It means it doesn't like the ASN1 format. If you posted the | full error stack (assuming there is one) then it would have | given more info. | | Try d2i_RSA_PUBKEY() and see if you have any more luck. Oh | and I suggest you read the FAQ/manual to get more info about | the correct way to call the d2i_*() functions. | | If none of that helps why don't you post the DER key and I'll | see if I can recognize it. | | Steve. | -- | Dr Stephen N. Henson. Email, S/MIME and PGP keys: see | homepage OpenSSL project core developer and freelance consultant. | Funding needed! Details on homepage. | Homepage: http://www.drh-consultancy.demon.co.uk | ______________________________________________________________________ | OpenSSL Project http://www.openssl.org | User Support Mailing List [EMAIL PROTECTED] | Automated List Manager [EMAIL PROTECTED] |
SWPubKey.der
Description: SWPubKey.der
HSMPubKey.der
Description: HSMPubKey.der
SWPrivKey.der
Description: SWPrivKey.der