Home
last modified time | relevance | path

Searched refs:BN_FLG_CONSTTIME (Results 1 – 9 of 9) sorted by relevance

/external/boringssl/src/crypto/rsa/
Drsa_impl.c579 BN_with_flags(d, rsa->d, BN_FLG_CONSTTIME); in rsa_default_private_transform()
642 BN_with_flags(p, rsa->p, BN_FLG_CONSTTIME); in mod_exp()
646 BN_with_flags(q, rsa->q, BN_FLG_CONSTTIME); in mod_exp()
666 BN_with_flags(c, I, BN_FLG_CONSTTIME); in mod_exp()
673 BN_with_flags(dmq1, rsa->dmq1, BN_FLG_CONSTTIME); in mod_exp()
680 BN_with_flags(c, I, BN_FLG_CONSTTIME); in mod_exp()
687 BN_with_flags(dmp1, rsa->dmp1, BN_FLG_CONSTTIME); in mod_exp()
709 BN_with_flags(pr1, r1, BN_FLG_CONSTTIME); in mod_exp()
740 BN_with_flags(exp, ap->exp, BN_FLG_CONSTTIME); in mod_exp()
741 BN_with_flags(prime, ap->prime, BN_FLG_CONSTTIME); in mod_exp()
[all …]
Dblinding.c164 if (BN_get_flags(mod, BN_FLG_CONSTTIME) != 0) { in BN_BLINDING_new()
165 BN_set_flags(ret->mod, BN_FLG_CONSTTIME); in BN_BLINDING_new()
436 BN_with_flags(n, rsa->n, BN_FLG_CONSTTIME); in rsa_setup_blinding()
/external/boringssl/src/crypto/bn/
Dgcd.c236 if ((a->flags & BN_FLG_CONSTTIME) != 0 || in BN_mod_inverse_ex()
237 (n->flags & BN_FLG_CONSTTIME) != 0) { in BN_mod_inverse_ex()
593 BN_with_flags(pB, B, BN_FLG_CONSTTIME); in BN_mod_inverse_no_branch()
619 BN_with_flags(pA, A, BN_FLG_CONSTTIME); in BN_mod_inverse_no_branch()
Dexponentiation.c143 if ((p->flags & BN_FLG_CONSTTIME) != 0) { in BN_exp()
439 if (BN_get_flags(p, BN_FLG_CONSTTIME) != 0) { in mod_exp_recp()
608 if (a->top == 1 && !a->neg && BN_get_flags(p, BN_FLG_CONSTTIME) == 0) { in BN_mod_exp()
629 if (BN_get_flags(p, BN_FLG_CONSTTIME) != 0) { in BN_mod_exp_mont()
1226 if (BN_get_flags(p, BN_FLG_CONSTTIME) != 0) { in BN_mod_exp_mont_word()
Ddiv.c132 if ((num->flags & BN_FLG_CONSTTIME) != 0 || in BN_div()
133 (divisor->flags & BN_FLG_CONSTTIME) != 0) { in BN_div()
/external/boringssl/src/crypto/dh/
Ddh.c295 BN_with_flags(&local_priv, priv_key, BN_FLG_CONSTTIME); in DH_generate_key()
358 BN_with_flags(&local_priv, dh->priv_key, BN_FLG_CONSTTIME); in DH_compute_key()
/external/boringssl/src/crypto/dsa/
Ddsa.c430 BN_with_flags(&prk, priv_key, BN_FLG_CONSTTIME); in DSA_generate_key()
798 BN_set_flags(&k, BN_FLG_CONSTTIME); in DSA_sign_setup()
/external/boringssl/src/crypto/ecdsa/
Decdsa.c328 BN_set_flags(X, BN_FLG_CONSTTIME); in ecdsa_sign_setup()
/external/boringssl/src/include/openssl/
Dbn.h852 #define BN_FLG_CONSTTIME 0x04 macro