Home
last modified time | relevance | path

Searched refs:qm1 (Results 1 – 3 of 3) sorted by relevance

/external/boringssl/src/crypto/fipsmodule/rsa/
Drsa.c659 BIGNUM n, pm1, qm1, lcm, dmp1, dmq1, iqmp_times_q; in RSA_check_key() local
692 BN_init(&qm1); in RSA_check_key()
702 !bn_usub_consttime(&qm1, key->q, BN_value_one()) || in RSA_check_key()
703 !bn_lcm_consttime(&lcm, &pm1, &qm1, ctx) || in RSA_check_key()
738 !check_mod_inverse(&dmq1_ok, key->e, key->dmq1, &qm1, in RSA_check_key()
757 BN_free(&qm1); in RSA_check_key()
Drsa_impl.c1119 BIGNUM *qm1 = BN_CTX_get(ctx); in rsa_generate_key_impl() local
1123 if (totient == NULL || pm1 == NULL || qm1 == NULL || sqrt2 == NULL || in rsa_generate_key_impl()
1197 !bn_usub_consttime(qm1, rsa->q, BN_value_one()) || in rsa_generate_key_impl()
1198 !bn_lcm_consttime(totient, pm1, qm1, ctx) || in rsa_generate_key_impl()
1212 !bn_div_consttime(NULL, rsa->dmq1, rsa->d, qm1, ctx)) { in rsa_generate_key_impl()
/external/epid-sdk/epid/common/math/src/
Dfinitefield.c1325 BigNum* qm1 = NULL; in FfSqrt() local
1364 result = NewBigNum(sizeof(BigNumStr) * CHAR_BIT, &qm1); in FfSqrt()
1452 result = BigNumSub(prime, one, qm1); in FfSqrt()
1464 result = WriteBigNum(qm1, sizeof(qm1_str), &qm1_str); in FfSqrt()
1468 result = InitFfElementFromBn(ff, qm1, qm1_ffe); in FfSqrt()
1472 result = BigNumDiv(qm1, two, qm1d2, remainder); in FfSqrt()
1547 result = BigNumDiv(qm1, j, qm1dj, remainder); in FfSqrt()
1657 DeleteBigNum(&qm1); in FfSqrt()