RR
fp XX, ZZ, w, s, ss, sss, R, RR, B, h;
RR.magic = B.magic = h.magic = WORD(0);
ret = fp_init(&RR, out->crv->a.ctx); EG(ret, err);
ret = fp_sqr_monty(&RR, &R); EG(ret, err);
ret = fp_sub_monty(&B, &B, &RR); EG(ret, err);
ret = fp_sub_monty(&(out->Y), &(out->Y), &RR); EG(ret, err);
ret = fp_sub_monty(&(out->Y), &(out->Y), &RR); EG(ret, err);
fp_uninit(&RR);
mont1->RR.d, mont1->n0[0],
mont2->RR.d, mont2->n0[0],
RSAZ_1024_mod_exp_avx2(rr->d, a->d, p->d, m->d, mont->RR.d,
RSAZ_512_mod_exp(rr->d, a->d, p->d, m->d, mont->n0[0], mont->RR.d);
return BN_mod_mul_montgomery(r, a, &(mont->RR), mont, ctx);
BIGNUM RR; /* used to convert to montgomery form,
return bn_mul_mont_fixed_top(r, a, &(mont->RR), mont, ctx);
bn_init(&ctx->RR);
BN_clear_free(&mont->RR);
R = &(mont->RR); /* grab RR as a temp */
BN_zero(&(mont->RR));
if (!BN_set_bit(&(mont->RR), mont->ri * 2))
if (!BN_mod(&(mont->RR), &(mont->RR), &(mont->N), ctx))
for (i = mont->RR.top, ret = mont->N.top; i < ret; i++)
mont->RR.d[i] = 0;
mont->RR.top = ret;
mont->RR.flags |= BN_FLG_FIXED_TOP;
if (!BN_copy(&(to->RR), &(from->RR)))
if (BN_bin2bn(rr, rrlen, &ctx->RR) == NULL)
if (BN_cmp(&m1->RR, &m2->RR) != 0)
const BN_ULONG m[8], BN_ULONG k0, const BN_ULONG RR[8])
rsaz_512_mul(a_inv, base, RR, m, k0);
const BN_ULONG m_norm[16], const BN_ULONG RR[16],
rsaz_1024_norm2red_avx2(R2, RR);
const BN_ULONG m_norm[16], const BN_ULONG RR[16],
const BN_ULONG RR[8]);
static const BN_ULONG RR[P256_LIMBS] = {
ecp_nistz256_ord_mul_mont(table[0], t, RR);
static const unsigned long RR[] = { 0x0000000000000003U,
ecp_nistz256_mul_mont(res, in, RR);
RR(24, "DAT2")
RR(20, "RNG2")
RR(18, "FIF1")
RR(14, "DAT1")
RR(10, "RNG1")
RR(08, "DMAC")
RR(04, "STA")
RR(00, "CTL")
#define RIGHTS_INFO(RR) { (RR), #RR}