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
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
>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
]]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
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
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
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
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
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
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
10 matches
Mail list logo