RE: rsa_oaep_test

1999-07-13 Thread Hemant Jain
Thanks Ulf, Steve and everyone else, Wrong value for iqmp was the cause of the problem!! I found the source of my problems too. Thanks Hemant __ OpenSSL Project http://www.openssl.org User Supp

Re: rsa_oaep_test

1999-07-10 Thread Dr Stephen Henson
Ulf Möller wrote: > > >Here is a test data that does not work with rsa_oaep_test.c > >Can someone tell me what could be wrong? > > You've got an invalid value for iqmp. You can set it like this: > > BN_mod_inverse(key->iqmp, key->q, key->p, ctx); > > int RSA_check(RSA *key) > { > BIGNU

Re: rsa_oaep_test

1999-07-10 Thread Ulf Möller
>Here is a test data that does not work with rsa_oaep_test.c >Can someone tell me what could be wrong? You've got an invalid value for iqmp. You can set it like this: BN_mod_inverse(key->iqmp, key->q, key->p, ctx); int RSA_check(RSA *key) { BIGNUM *i, *j, *k; BN_CTX *ctx; int r

RE: rsa_oaep_test

1999-07-02 Thread Hemant Jain
]]On Behalf Of Dr Stephen Henson Sent: Tuesday, June 29, 1999 6:08 AM To: [EMAIL PROTECTED] Subject: Re: rsa_oaep_test Holger Reif wrote: > > Hemant Jain schrieb: > > > > Holger, > > Here is the stack trace, if that helps: > > error:0407106B::lib(4) : func(113) : rea

Re: rsa_oaep_test

1999-06-29 Thread Holger Reif
Dr Stephen Henson schrieb: > > Holger Reif wrote: > > > > Wouldn't it be a > > good idea to include it as "openssl rsa -verify"? > > > > Hmmm I was thinking of something analagous for some time but never got > round to it. There should be an RSA_check() function that will validate > an RSA priva

Re: rsa_oaep_test

1999-06-29 Thread Dr Stephen Henson
Holger Reif wrote: > > Hemant Jain schrieb: > > > > Holger, > > Here is the stack trace, if that helps: > > error:0407106B::lib(4) : func(113) : reason(107) > > error:04065072::lib(4) : func(101) : reason(114) > > This means padding check failed (reason 107) in function > private decrypt (func 1

Re: rsa_oaep_test

1999-06-29 Thread Holger Reif
printf("%s\n", ERR_error_string(ERR_no, NULL)); return(-1); } if (BN_cmp(rsa->n, bn) == 0) { printf("Test passed\n"); } else { printf("Test not passed\n"); } return(0); } ---snip- > Hemant > > -Original

RE: rsa_oaep_test

1999-06-28 Thread Hemant Jain
To: [EMAIL PROTECTED] Subject: Re: rsa_oaep_test Which error occured? I suppose you read all the erros from the error stack and know what exactly happend. Hemant Jain schrieb: > > Hi All, > > I read the private key/public key from my store and copied its contents > to variable

Re: rsa_oaep_test

1999-06-23 Thread Anonymous
Which error occured? I suppose you read all the erros from the error stack and know what exactly happend. Hemant Jain schrieb: > > Hi All, > > I read the private key/public key from my store and copied its contents > to variables n,e,d,etc. in the rsa_oaep_test.c as another key (key4). > While

rsa_oaep_test

1999-06-23 Thread Hemant Jain
Hi All, I read the private key/public key from my store and copied its contents to variables n,e,d,etc. in the rsa_oaep_test.c as another key (key4). While the test program works fine for encryption and decryption for key1, key2 and key3, I get an error while decrypting with my private key. C