Dear Group
   I buy a SmartCard. I want to load a private key to
it.I get a module from seller that the related
function to load the private key need some
parameters.I don't know what's this parameters and how
I must set these parameters?
The following are declaration of that function:

WORD SetPrivateKey( BYTE i_byKeyNo , BYTE *i_pbyDPDQ ,
BYTE *i_pbyPQU );
    20    // i_byKeyNo: Key number: 0..4
    21    // i_pbyDPDQ: A pointer to DP and DQ part of
private key (Chinese Remainder ???
    22    // i_pbyPQU:  A pointer to P,Q, and U
???part of private key (Chinese Remainder ???
    23    // Output:    0x9000 -> Successful , Other
-> Unsuccessful
I review the RSA structure and found something for
example DP is equivalent to dmp1 and DQ is equivalent
to dmq1 and P is equivalent to p and Q is equivalent
to q. But I''m confused that how we can have a pointer
to point to two pointer in the i_pbyDPDQ.

typedef struct rsa_st
    86    {
    87    /* The first parameter is used to pickup
errors where
    88     * this is passed instead of aEVP_PKEY, it
is set to 0 */
    89    int pad;
    90    int version;
    91    RSA_METHOD *meth;
    92    BIGNUM *n;
    93    BIGNUM *e;
    94    BIGNUM *d;
    95    BIGNUM *p;
    96    BIGNUM *q;
    97    BIGNUM *dmp1;
    98    BIGNUM *dmq1;
    99    BIGNUM *iqmp;
   100    /* be carefull using this if the RSA
structure is shared */
   101    CRYPTO_EX_DATA ex_data;
   102    int references;
   103    int flags;

Please help me.
Bye.

__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to