/external/boringssl/src/crypto/fipsmodule/bn/ |
internal.h | 375 // bn_mul_small sets |r| to |a|*|b|. |num_r| must be |num_a| + |num_b|. |r| may 378 int bn_mul_small(BN_ULONG *r, size_t num_r, const BN_ULONG *a, size_t num_a, 382 // |num_r| must be |num_a|*2. |r| and |a| may not alias. This function returns 384 int bn_sqr_small(BN_ULONG *r, size_t num_r, const BN_ULONG *a, size_t num_a); 390 // |num_a| and |num_r| must be the length of the modulus, which is 393 int bn_to_montgomery_small(BN_ULONG *r, size_t num_r, const BN_ULONG *a, 397 // domain. |num_r| must be the length of the modulus, which is |mont->N.top|. 401 int bn_from_montgomery_small(BN_ULONG *r, size_t num_r, const BN_ULONG *a, 405 // on success and zero on error. |num_r| must be the length of the modulus, 408 int bn_one_to_montgomery_small(BN_ULONG *r, size_t num_r, [all...] |
montgomery.c | 260 static int bn_from_montgomery_in_place(BN_ULONG *r, size_t num_r, BN_ULONG *a, 264 if (num_r != num_n || num_a != 2 * num_n) { 447 int bn_to_montgomery_small(BN_ULONG *r, size_t num_r, const BN_ULONG *a, 449 return bn_mod_mul_montgomery_small(r, num_r, a, num_a, mont->RR.d, 453 int bn_from_montgomery_small(BN_ULONG *r, size_t num_r, const BN_ULONG *a, 456 if (num_a > 2 * num_n || num_r != num_n || num_n > BN_SMALL_MAX_WORDS) { 464 int ret = bn_from_montgomery_in_place(r, num_r, tmp, num_tmp, mont); 469 int bn_one_to_montgomery_small(BN_ULONG *r, size_t num_r, 473 if (num_n == 0 || num_r != num_n) { 488 return bn_from_montgomery_small(r, num_r, mont->RR.d, mont->RR.top, mont) [all...] |
exponentiation.c | 731 int bn_mod_exp_mont_small(BN_ULONG *r, size_t num_r, const BN_ULONG *a, 735 if (num_n != num_a || num_n != num_r || num_n > BN_SMALL_MAX_WORDS) { 748 OPENSSL_memset(r, 0, num_r * sizeof(BN_ULONG)); 780 if (!bn_one_to_montgomery_small(r, num_r, mont)) { 789 !bn_mod_mul_montgomery_small(r, num_r, r, num_r, r, num_r, mont)) { 813 if (!bn_mod_mul_montgomery_small(r, num_r, r, num_r, r, num_r, mont)) [all...] |
bn_test.cc | 394 size_t num_r = 2 * num_a; local 397 r_words(new BN_ULONG[num_r]); 400 ASSERT_TRUE(bn_mul_small(r_words.get(), num_r, a_words.get(), num_a, 402 ASSERT_TRUE(bn_set_words(ret.get(), r_words.get(), num_r)); 405 OPENSSL_memset(r_words.get(), 'A', num_r * sizeof(BN_ULONG)); 406 ASSERT_TRUE(bn_sqr_small(r_words.get(), num_r, a_words.get(), num_a)); 408 ASSERT_TRUE(bn_set_words(ret.get(), r_words.get(), num_r)); 461 size_t num_r = num_a + num_b; local 464 b_words(new BN_ULONG[num_b]), r_words(new BN_ULONG[num_r]); 468 ASSERT_TRUE(bn_mul_small(r_words.get(), num_r, a_words.get(), num_a [all...] |
mul.c | 660 int bn_mul_small(BN_ULONG *r, size_t num_r, const BN_ULONG *a, size_t num_a, 662 if (num_r != num_a + num_b) { 887 int bn_sqr_small(BN_ULONG *r, size_t num_r, const BN_ULONG *a, size_t num_a) { 888 if (num_r != 2 * num_a || num_a > BN_SMALL_MAX_WORDS) {
|
/external/libevent/ |
bufferevent_openssl.c | 561 unsigned long num_r = BIO_number_read(SSL_get_rbio(bev_ssl->ssl)); local 564 unsigned long r = num_r - bev_ssl->counts.n_read; 570 bev_ssl->counts.n_read = num_r; [all...] |