Home
last modified time | relevance | path

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

/external/boringssl/src/crypto/fipsmodule/bn/
Dprime.c501 int bn_miller_rabin_init(BN_MILLER_RABIN *miller_rabin, const BN_MONT_CTX *mont, in bn_miller_rabin_init() argument
507 miller_rabin->w1 = BN_CTX_get(ctx); in bn_miller_rabin_init()
508 miller_rabin->m = BN_CTX_get(ctx); in bn_miller_rabin_init()
509 miller_rabin->one_mont = BN_CTX_get(ctx); in bn_miller_rabin_init()
510 miller_rabin->w1_mont = BN_CTX_get(ctx); in bn_miller_rabin_init()
511 if (miller_rabin->w1 == NULL || in bn_miller_rabin_init()
512 miller_rabin->m == NULL || in bn_miller_rabin_init()
513 miller_rabin->one_mont == NULL || in bn_miller_rabin_init()
514 miller_rabin->w1_mont == NULL) { in bn_miller_rabin_init()
519 if (!bn_usub_consttime(miller_rabin->w1, w, BN_value_one())) { in bn_miller_rabin_init()
[all …]
Dinternal.h461 OPENSSL_EXPORT int bn_miller_rabin_init(BN_MILLER_RABIN *miller_rabin, in OPENSSL_MSVC_PRAGMA()
471 const BN_MILLER_RABIN *miller_rabin, int *out_is_possibly_prime, in OPENSSL_MSVC_PRAGMA()
Dbn_test.cc2296 BN_MILLER_RABIN miller_rabin; in TEST_F() local
2297 ASSERT_TRUE(bn_miller_rabin_init(&miller_rabin, mont.get(), ctx())); in TEST_F()
2299 ASSERT_TRUE(bn_miller_rabin_iteration(&miller_rabin, &possibly_prime, in TEST_F()