Lines Matching refs:bnQ
802 BIGNUM *bnQ;
824 bnQ = BN_CTX_get(context);
837 BN_zero(bnQ);
861 if(!BN_is_zero(bnQ))
862 { // bnQ is non-zero, we have a first value
864 UINT32 *pQ = (UINT32 *)(&bnQ->d[4]);
881 if(BN_is_zero(bnQ))
883 BN_copy(bnQ, bnP);
887 if( BN_mul(bnN, bnP, bnQ, context) != 1
900 || BN_sub(bnT, bnT, bnQ) != 1
926 || BN_mod_exp(bnQ, bnP, bnE, bnN, context) != 1
928 || BN_mod_exp(bnQ, bnQ, bnT, bnN, context) != 1)
931 if(BN_ucmp(bnP, bnQ) != 0)
933 BN_zero(bnQ);