Hello,
> Dear All:
> I key in the n,e,d p,q, dmp1, dmq1 and iqmp in rsa_test.c to encrypt and
> decrypt a chosen text. And I use RSA_check_key to double check whether the
> keys are ok or not and it return the pass signal.
RSA_check does not verify Montgomery contexts.
This function checks that n=p*q, dmp1 = d mod (p-1), ...

> But after padding, RSA_padding_add_PKCS1_OAEP or
> RSA_padding_add_PKCS1_type_2, I cannot pass the MONT_HELPER function.
> Does that mean the keys are wrong or I miss something to check in
> MONT_HELPER function?
Montgomery contexts are created on demand by
RSA_private/public_encrypt/decrypt() so if you use this
function this contexts should be set properly.

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