Lines Matching defs:rsa
145 static int RSA_zencod_rsa_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa);
779 static int RSA_zencod_rsa_mod_exp(BIGNUM *r0, const BIGNUM *i, RSA *rsa)
789 if (!rsa->p || !rsa->q || !rsa->dmp1 || !rsa->dmq1 || !rsa->iqmp) {
796 if (RSA_size(rsa) * 8 > ZENBRIDGE_MAX_KEYSIZE_RSA_CRT) {
800 return meth->rsa_mod_exp(r0, i, rsa);
804 if (!bn_expand(r0, RSA_size(rsa) * 8)) {
809 r0->top = (RSA_size(rsa) * 8 + BN_BITS2 - 1) / BN_BITS2;
813 BIGNUM2ZEN(&p, rsa->p);
814 BIGNUM2ZEN(&q, rsa->q);
815 BIGNUM2ZEN(&dmp1, rsa->dmp1);
816 BIGNUM2ZEN(&dmq1, rsa->dmq1);
817 BIGNUM2ZEN(&iqmp, rsa->iqmp);