/external/boringssl/src/crypto/rsa/ |
internal.h | 109 const BIGNUM *m, BN_CTX *ctx, const BN_MONT_CTX *mont), 110 const BN_MONT_CTX *mont); 153 /* mont is a |BN_MONT_CTX| modulo |prime|. */ 154 BN_MONT_CTX *mont; member in struct:RSA_additional_prime_st
|
blinding.c | 130 /* mont is the Montgomery context used for this |BN_BLINDING|. It is not 132 const BN_MONT_CTX *mont; member in struct:bn_blinding_st 134 const BIGNUM *m, BN_CTX *ctx, const BN_MONT_CTX *mont); 289 const BIGNUM *m, BN_CTX *ctx, const BN_MONT_CTX *mont), 290 const BN_MONT_CTX *mont) { 322 if (mont != NULL) { 323 ret->mont = mont; 348 if (ret->bn_mod_exp != NULL && ret->mont != NULL) { 349 if (!ret->bn_mod_exp(ret->A, ret->A, ret->e, ret->mod, ctx, ret->mont)) { [all...] |
/external/boringssl/src/crypto/ec/ |
ec_montgomery.c | 81 group->mont = NULL; 87 BN_MONT_CTX_free(group->mont); 88 group->mont = NULL; 95 BN_MONT_CTX_free(group->mont); 96 group->mont = NULL; 103 BN_MONT_CTX_free(dest->mont); 104 dest->mont = NULL; 112 if (src->mont != NULL) { 113 dest->mont = BN_MONT_CTX_new(); 114 if (dest->mont == NULL) 139 BN_MONT_CTX *mont = NULL; local [all...] |
internal.h | 152 BN_MONT_CTX *mont; /* Montgomery structure. */ member in struct:ec_group_st
|
/external/boringssl/src/crypto/bn/ |
prime.c | 333 const BIGNUM *a1_odd, int k, BN_CTX *ctx, BN_MONT_CTX *mont); 480 BN_MONT_CTX *mont = NULL; local 557 mont = BN_MONT_CTX_new(); 558 if (mont == NULL) { 561 if (!BN_MONT_CTX_set(mont, A, ctx)) { 574 j = witness(check, A, A1, A1_odd, k, ctx, mont); 595 if (mont != NULL) { 596 BN_MONT_CTX_free(mont); 604 BN_MONT_CTX *mont) { 605 if (!BN_mod_exp_mont(w, w, a1_odd, a, ctx, mont)) { /* w := w^a1_odd mod a * [all...] |
/external/boringssl/src/crypto/dh/ |
dh.c | 239 BN_MONT_CTX *mont = NULL; local 272 mont = BN_MONT_CTX_set_locked(&dh->method_mont_p, &dh->method_mont_p_lock, 274 if (!mont) { 296 if (!BN_mod_exp_mont(pub_key, dh->g, &local_priv, dh->p, ctx, mont)) { 321 BN_MONT_CTX *mont = NULL; local 347 mont = BN_MONT_CTX_set_locked(&dh->method_mont_p, &dh->method_mont_p_lock, 349 if (!mont) { 360 mont)) {
|
/external/boringssl/src/crypto/dsa/ |
dsa.c | 143 BN_MONT_CTX *mont = NULL; local 179 mont = BN_MONT_CTX_new(); 180 if (mont == NULL) { 342 !BN_MONT_CTX_set(mont, p, ctx)) { 348 if (!BN_mod_exp_mont(g, test, r0, p, ctx, mont)) { 391 BN_MONT_CTX_free(mont); 582 BN_MONT_CTX *mont = NULL; local 653 mont = BN_MONT_CTX_set_locked((BN_MONT_CTX **)&dsa->method_mont_p, 656 if (!mont) { 661 mont)) { [all...] |