Dear ssl friends:
I intent to test whether the RSA-OAEP encrypt\decrypt functions in
crypto/rsa/rsa_eay.c work well to decrypt a so called PRIVATEKEYBLOB
structure passed by XP.

Below I excerpt some part of it: 
52 53 41 32             00 08 00 00        01 00 01 00 
^^^^^^^^^^^             ^^^^^^^^^          ^^^^^^^^^^^
RSA2 :it's a private key   key-length in bis    exponent value 0x10001

Below is the combination of module, p, q , etc.
3b 9c b3 07 64 45 0c da d8 1f 8e 7d  c0 e3 9c bd ca 9d 4b 03
fa cb 87 2f fe 93 ce ef  c6 93 9e e1 d3 53 ae f4
c1 50 ab 6d b2 6e 41 c2  69 d1 80 e4 21 80 5c a2
...
I use crypto/rsa/rsa_test.c to do such simple testing and I copy each part
of PRIVATEKEYBLOB to the proper element of RSA structure in key1, a static
function call in that c file.
I have a "Segmentation fault" while running BN_bin2bn function.
And the content seems little endian and should I revert them by each DWORD
as big endian? If I really need to do so, is there any help function in
Openssl can do it for me?

Appreciate your help in advance,
cckuo




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

Reply via email to