Home | History | Annotate | Download | only in engine

Lines Matching refs:rsa

61 #include <crypto/rsa/rsa.h>
114 RSA *rsa, BN_CTX *ctx);
115 static int cryptodev_rsa_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx);
1069 cryptodev_rsa_nocrt_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx)
1073 r = cryptodev_bn_mod_exp(r0, I, rsa->d, rsa->n, ctx, NULL);
1079 cryptodev_rsa_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx)
1084 if (!rsa->p || !rsa->q || !rsa->dmp1 || !rsa->dmq1 || !rsa->iqmp) {
1091 /* inputs: rsa->p rsa->q I rsa->dmp1 rsa->dmq1 rsa->iqmp */
1092 if (bn2crparam(rsa->p, &kop.crk_param[0]))
1094 if (bn2crparam(rsa->q, &kop.crk_param[1]))
1098 if (bn2crparam(rsa->dmp1, &kop.crk_param[3]))
1100 if (bn2crparam(rsa->dmq1, &kop.crk_param[4]))
1102 if (bn2crparam(rsa->iqmp, &kop.crk_param[5]))
1106 if (cryptodev_asym(&kop, BN_num_bytes(rsa->n), r0, 0, NULL)) {
1109 ret = (*meth->rsa_mod_exp)(r0, I, rsa, ctx);
1114 ret = (*meth->rsa_mod_exp)(r0, I, rsa, ctx);
1124 "cryptodev RSA method",