Home
last modified time | relevance | path

Searched refs:num_r (Results 1 – 12 of 12) sorted by relevance

/external/boringssl/src/crypto/fipsmodule/bn/
Dmontgomery.c288 static int bn_from_montgomery_in_place(BN_ULONG *r, size_t num_r, BN_ULONG *a, in bn_from_montgomery_in_place() argument
292 if (num_r != num_n || num_a != 2 * num_n) { in bn_from_montgomery_in_place()
458 void bn_from_montgomery_small(BN_ULONG *r, size_t num_r, const BN_ULONG *a, in bn_from_montgomery_small() argument
460 if (num_r != (size_t)mont->N.width || num_r > BN_SMALL_MAX_WORDS || in bn_from_montgomery_small()
461 num_a > 2 * num_r) { in bn_from_montgomery_small()
466 if (!bn_from_montgomery_in_place(r, num_r, tmp, 2 * num_r, mont)) { in bn_from_montgomery_small()
469 OPENSSL_cleanse(tmp, 2 * num_r * sizeof(BN_ULONG)); in bn_from_montgomery_small()
Dinternal.h651 void bn_mul_small(BN_ULONG *r, size_t num_r, const BN_ULONG *a, size_t num_a, in OPENSSL_MSVC_PRAGMA()
656 void bn_sqr_small(BN_ULONG *r, size_t num_r, const BN_ULONG *a, size_t num_a); in OPENSSL_MSVC_PRAGMA()
673 void bn_from_montgomery_small(BN_ULONG *r, size_t num_r, const BN_ULONG *a, in OPENSSL_MSVC_PRAGMA()
Dmul.c536 void bn_mul_small(BN_ULONG *r, size_t num_r, const BN_ULONG *a, size_t num_a, in bn_mul_small() argument
538 if (num_r != num_a + num_b) { in bn_mul_small()
736 void bn_sqr_small(BN_ULONG *r, size_t num_r, const BN_ULONG *a, size_t num_a) { in bn_sqr_small() argument
737 if (num_r != 2 * num_a || num_a > BN_SMALL_MAX_WORDS) { in bn_sqr_small()
Dbn_test.cc458 size_t num_r = 2 * num_a; in TestSquare() local
461 r_words(new BN_ULONG[num_r]); in TestSquare()
464 bn_mul_small(r_words.get(), num_r, a_words.get(), num_a, a_words.get(), in TestSquare()
466 ASSERT_TRUE(bn_set_words(ret.get(), r_words.get(), num_r)); in TestSquare()
469 OPENSSL_memset(r_words.get(), 'A', num_r * sizeof(BN_ULONG)); in TestSquare()
470 bn_sqr_small(r_words.get(), num_r, a_words.get(), num_a); in TestSquare()
472 ASSERT_TRUE(bn_set_words(ret.get(), r_words.get(), num_r)); in TestSquare()
525 size_t num_r = num_a + num_b; in TestProduct() local
528 b_words(new BN_ULONG[num_b]), r_words(new BN_ULONG[num_r]); in TestProduct()
532 bn_mul_small(r_words.get(), num_r, a_words.get(), num_a, b_words.get(), in TestProduct()
[all …]
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/bn/
Dmontgomery.c288 static int bn_from_montgomery_in_place(BN_ULONG *r, size_t num_r, BN_ULONG *a, in bn_from_montgomery_in_place() argument
292 if (num_r != num_n || num_a != 2 * num_n) { in bn_from_montgomery_in_place()
458 void bn_from_montgomery_small(BN_ULONG *r, size_t num_r, const BN_ULONG *a, in bn_from_montgomery_small() argument
460 if (num_r != (size_t)mont->N.width || num_r > BN_SMALL_MAX_WORDS || in bn_from_montgomery_small()
461 num_a > 2 * num_r) { in bn_from_montgomery_small()
466 if (!bn_from_montgomery_in_place(r, num_r, tmp, 2 * num_r, mont)) { in bn_from_montgomery_small()
469 OPENSSL_cleanse(tmp, 2 * num_r * sizeof(BN_ULONG)); in bn_from_montgomery_small()
Dinternal.h633 void bn_mul_small(BN_ULONG *r, size_t num_r, const BN_ULONG *a, size_t num_a, in OPENSSL_MSVC_PRAGMA()
638 void bn_sqr_small(BN_ULONG *r, size_t num_r, const BN_ULONG *a, size_t num_a); in OPENSSL_MSVC_PRAGMA()
655 void bn_from_montgomery_small(BN_ULONG *r, size_t num_r, const BN_ULONG *a, in OPENSSL_MSVC_PRAGMA()
Dmul.c536 void bn_mul_small(BN_ULONG *r, size_t num_r, const BN_ULONG *a, size_t num_a, in bn_mul_small() argument
538 if (num_r != num_a + num_b) { in bn_mul_small()
736 void bn_sqr_small(BN_ULONG *r, size_t num_r, const BN_ULONG *a, size_t num_a) { in bn_sqr_small() argument
737 if (num_r != 2 * num_a || num_a > BN_SMALL_MAX_WORDS) { in bn_sqr_small()
Dbn_test.cc458 size_t num_r = 2 * num_a; in TestSquare() local
461 r_words(new BN_ULONG[num_r]); in TestSquare()
464 bn_mul_small(r_words.get(), num_r, a_words.get(), num_a, a_words.get(), in TestSquare()
466 ASSERT_TRUE(bn_set_words(ret.get(), r_words.get(), num_r)); in TestSquare()
469 OPENSSL_memset(r_words.get(), 'A', num_r * sizeof(BN_ULONG)); in TestSquare()
470 bn_sqr_small(r_words.get(), num_r, a_words.get(), num_a); in TestSquare()
472 ASSERT_TRUE(bn_set_words(ret.get(), r_words.get(), num_r)); in TestSquare()
525 size_t num_r = num_a + num_b; in TestProduct() local
528 b_words(new BN_ULONG[num_b]), r_words(new BN_ULONG[num_r]); in TestProduct()
532 bn_mul_small(r_words.get(), num_r, a_words.get(), num_a, b_words.get(), in TestProduct()
[all …]
/external/rust/crates/ring/crypto/fipsmodule/bn/
Dmontgomery.c121 int GFp_bn_from_montgomery_in_place(BN_ULONG r[], size_t num_r, BN_ULONG a[], in GFp_bn_from_montgomery_in_place() argument
125 if (num_n == 0 || num_r != num_n || num_a != 2 * num_n) { in GFp_bn_from_montgomery_in_place()
/external/virglrenderer/tests/
Dtest_virgl_init.c434 int num_r; in START_TEST() local
447 virgl_renderer_resource_detach_iov(1, &iovs_r, &num_r); in START_TEST()
459 int num_r; in START_TEST() local
472 virgl_renderer_resource_detach_iov(1, NULL, &num_r); in START_TEST()
/external/libevent/
Dbufferevent_openssl.c565 unsigned long num_r = BIO_number_read(SSL_get_rbio(bev_ssl->ssl)); in decrement_buckets() local
568 unsigned long r = num_r - bev_ssl->counts.n_read; in decrement_buckets()
574 bev_ssl->counts.n_read = num_r; in decrement_buckets()
/external/rust/crates/ring/src/arithmetic/
Dbigint.rs1245 num_r: c::size_t, in limbs_from_mont_in_place()