Home
last modified time | relevance | path

Searched refs:BN_set_word (Results 1 – 25 of 34) sorted by relevance

12

/external/boringssl/src/crypto/dh/
Ddh.c238 if (!BN_set_word(t1, 24)) { in DH_generate_parameters_ex()
241 if (!BN_set_word(t2, 11)) { in DH_generate_parameters_ex()
246 if (!BN_set_word(t1, 10)) { in DH_generate_parameters_ex()
249 if (!BN_set_word(t2, 3)) { in DH_generate_parameters_ex()
260 if (!BN_set_word(t1, 2)) { in DH_generate_parameters_ex()
263 if (!BN_set_word(t2, 1)) { in DH_generate_parameters_ex()
275 if (!BN_set_word(dh->g, g)) { in DH_generate_parameters_ex()
Dcheck.c76 !BN_set_word(tmp, 1)) { in DH_check_pub_key()
/external/vboot_reference/host/lib/
Dutil_misc.c79 BN_set_word(Big1, 1L); in vb_keyb_from_rsa()
80 BN_set_word(Big2, 2L); in vb_keyb_from_rsa()
81 BN_set_word(Big32, 32L); in vb_keyb_from_rsa()
94 BN_set_word(NnumBits, BN_num_bits(N)); in vb_keyb_from_rsa()
/external/vboot_reference/utility/
DdumpRSAPublicKey.c72 BN_set_word(Big1, 1L); in output()
73 BN_set_word(Big2, 2L); in output()
74 BN_set_word(Big32, 32L); in output()
88 BN_set_word(NnumBits, BN_num_bits(N)); in output()
/external/boringssl/src/crypto/fipsmodule/bn/
Dsqrt.c81 if (!BN_set_word(ret, BN_is_bit_set(a, 0))) { in BN_mod_sqrt()
101 if (!BN_set_word(ret, BN_is_one(a))) { in BN_mod_sqrt()
235 if (!BN_set_word(y, i)) { in BN_mod_sqrt()
249 if (!BN_set_word(y, i)) { in BN_mod_sqrt()
Dbn.c253 return BN_set_word(bn, 1); in BN_one()
256 int BN_set_word(BIGNUM *bn, BN_ULONG value) { in BN_set_word() function
274 return BN_set_word(bn, value); in BN_set_u64()
277 return BN_set_word(bn, (BN_ULONG)value); in BN_set_u64()
Dbn_test.cc310 ASSERT_TRUE(BN_set_word(two.get(), 2)); in TestLShift1()
1314 ASSERT_TRUE(BN_set_word(six.get(), 6)); in TEST_F()
1434 ASSERT_TRUE(BN_set_word(a.get(), 1)); in TEST_F()
1446 ASSERT_TRUE(BN_set_word(numerator.get(), 1)); in TEST_F()
1447 ASSERT_TRUE(BN_set_word(denominator.get(), 2)); in TEST_F()
1455 ASSERT_TRUE(BN_set_word(denominator.get(), 1)); in TEST_F()
1477 ASSERT_TRUE(BN_set_word(a.get(), 1)); in TEST_F()
1533 ASSERT_TRUE(BN_set_word(b.get(), 16)); in TEST_F()
1560 ASSERT_TRUE(BN_set_word(minus_one.get(), 1)); in TEST_F()
1604 ASSERT_TRUE(BN_set_word(r.get(), 0)); in TEST_F()
[all …]
Dadd.c149 return BN_set_word(a, w); in BN_add_word()
278 i = BN_set_word(a, w); in BN_sub_word()
/external/u-boot/lib/rsa/
Drsa-sign.c582 if (!BN_copy(n, key_n) || !BN_set_word(big1, 1L) || in rsa_get_params()
583 !BN_set_word(big2, 2L) || !BN_set_word(big32, 32L)) in rsa_get_params()
597 if (!BN_set_word(tmp, BN_num_bits(n)) || in rsa_get_params()
656 BN_set_word(big2, 2L); in fdt_add_bignum()
657 BN_set_word(big32, 32L); in fdt_add_bignum()
/external/boringssl/src/crypto/rsa_extra/
Drsa_test.cc523 ASSERT_TRUE(BN_set_word(e.get(), RSA_F4)); in TEST()
645 ASSERT_TRUE(BN_set_word(e.get(), RSA_F4)); in TEST()
657 ASSERT_TRUE(BN_set_word(e.get(), RSA_F4)); in TEST()
814 ASSERT_TRUE(BN_set_word(rsa->e, 111)); in TEST()
917 ASSERT_TRUE(BN_set_word(e.get(), RSA_F4)); in TEST()
988 ASSERT_TRUE(BN_set_word(e.get(), RSA_F4)); in TEST()
1017 ASSERT_TRUE(BN_set_word(e.get(), RSA_F4)); in TEST()
/external/boringssl/src/crypto/fipsmodule/ec/
Dec_test.cc580 ASSERT_TRUE(BN_set_word(forty_two.get(), 42)); in TEST_P()
604 ASSERT_TRUE(BN_set_word(seven.get(), 7)); in TEST_P()
641 ASSERT_TRUE(BN_set_word(n.get(), 10)); in TEST_P()
658 ASSERT_TRUE(BN_set_word(forty_two.get(), 42)); in TEST_P()
698 ASSERT_TRUE(BN_set_word(forty_two.get(), 42)); in TEST_P()
763 ASSERT_TRUE(BN_set_word(bn31.get(), 31)); in TEST_P()
764 ASSERT_TRUE(BN_set_word(bn32.get(), 32)); in TEST_P()
882 ASSERT_TRUE(BN_set_word(a.get(), abs(i))); in TEST()
Dec.c635 return BN_set_word(cofactor, 1); in EC_GROUP_get_cofactor()
/external/boringssl/src/tool/
Dgenrsa.cc52 if (!BN_set_word(e.get(), RSA_F4) || in GenerateRSAKey()
Dspeed.cc242 if (!BN_set_word(e.get(), 65537)) { in SpeedRSAKeyGen()
/external/boringssl/src/decrepit/rsa/
Drsa_decrepit.c74 !BN_set_word(e, e_value) || in RSA_generate_key()
/external/libchrome/crypto/
Drsa_private_key.cc28 if (!rsa_key.get() || !bn.get() || !BN_set_word(bn.get(), 65537L)) in Create()
/external/nos/host/android/hals/keymaster/
Dexport_key.cpp58 if (!BN_set_word(e.get(), response.rsa().e())) { in export_key_der()
/external/boringssl/src/crypto/fipsmodule/self_check/
Dself_check.c534 !BN_set_word(ec_key->fixed_k, 42)) { in BORINGSSL_self_test()
/external/wpa_supplicant_8/src/crypto/
Dcrypto_openssl.c765 if (dh->g == NULL || BN_set_word(dh->g, 2) != 1) in dh5_init()
818 if (!g || BN_set_word(g, 2) != 1 || !p || !q || in dh5_init()
869 if (dh->g == NULL || BN_set_word(dh->g, 2) != 1) in dh5_init_fixed()
902 if (!g || BN_set_word(g, 2) != 1 || !p || in dh5_init_fixed()
/external/webrtc/webrtc/base/
Dopensslidentity.cc54 !BN_set_word(exponent, key_params.rsa_params().pub_exp) || in MakeKey()
/external/openssh/
Dmoduli.c423 if (BN_set_word(q, 2 * j) == 0) in gen_candidates()
Dsshconnect1.c581 if (BN_set_word(key, 0) == 0) in ssh_kex()
/external/boringssl/src/crypto/evp/
Dp_rsa.c525 if (!rctx->pub_exp || !BN_set_word(rctx->pub_exp, RSA_F4)) { in pkey_rsa_keygen()
/external/boringssl/src/include/openssl/
Dbn.h219 OPENSSL_EXPORT int BN_set_word(BIGNUM *bn, BN_ULONG value);
/external/boringssl/src/crypto/dsa/
Ddsa.c401 !BN_set_word(test, h)) { in DSA_generate_parameters_ex()

12