I think the RSA structure contains reference to montgomery context structure
which in turn has the montgomery constats. Bear in mind, montgomery constant R
is always 2^{num of bits of n} if you are doing modulo n arithmetic.

Hope this helps. 

Quoting [EMAIL PROTECTED]:

> Hi,
>  
> I'm working with Cryptoflex Smartcards, and to be able to import a RSA
> key in the card, i need the following parameters (from the smartcard
> doc):
> - Public modulus 'N'            -> OK
> - Public Exponent 'e'           -> OK
> - Private modulus 'P'           -> OK
> - Private modulus 'Q'           -> OK
> - Inverse of factor P (a=Q^-1 mod P)         -> Is it 'iqmp' ?
> - Private subexponent (c=Ks mod (P-1))   -> Is it 'dmp1' ?
> - Private subexponent (f=Ks mod (Q-1))    -> Is is 'dmq1' ?
> - Montgomery constant 'J0'                      -> Where is it ?
> - Montgomery constant 'H'                       -> Where is it ?
>  
> I have no problem to find the first parameters in the RSA structure. 
> But where or how can i find the other parameters, and especially the
> Montgomery constants ?
>  
> Thanks for any help
>  
> Stephane Vinsot
>  
> 


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

Reply via email to