Openssl:RSA nedpq参数代表什么?

Lun*_*oms 2 c linux openssl rsa

n, e, d, p, qopenssl的RSA结构如下所示的参数是什么?

struct rsa_st
    {
    /* The first parameter is used to pickup errors where
     * this is passed instead of aEVP_PKEY, it is set to 0 */
    int pad;
    long version;
    const RSA_METHOD *meth;
    /* functional reference if 'meth' is ENGINE-provided */
    ENGINE *engine;
    BIGNUM *n;
    BIGNUM *e;
    BIGNUM *d;
    BIGNUM *p;
    BIGNUM *q;
    BIGNUM *dmp1;
    BIGNUM *dmq1;
    BIGNUM *iqmp;
    /* be careful using this if the RSA structure is shared */
    CRYPTO_EX_DATA ex_data;
    int references;
    int flags;

    /* Used to cache montgomery values */
    BN_MONT_CTX *_method_mod_n;
    BN_MONT_CTX *_method_mod_p;
    BN_MONT_CTX *_method_mod_q;

    /* all BIGNUM values are actually in the following data, if it is not
     * NULL */
    char *bignum_data;
    BN_BLINDING *blinding;
    BN_BLINDING *mt_blinding;
    };
Run Code Online (Sandbox Code Playgroud)

Eit*_*n T 6

这些是RSA算法的参数:

p和q是两个大素数,n由p*q计算.e是公共指数,d是e mod(p-1)(q-1)的乘法逆.

私钥是对(p,q).公钥是对(n,e)

你可以在这里了解更多相关信息.