Home
last modified time | relevance | path

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

123

/external/tpm2-tss/test/helper/
Dtpm_getek.c124 BN_set_word(d, 0); in main()
125 BN_set_word(p, 0); in main()
126 BN_set_word(q, 0); in main()
127 BN_set_word(dmp1, 0); in main()
128 BN_set_word(dmq1, 0); in main()
129 BN_set_word(iqmp, 0); in main()
135 BN_set_word(e, exp); in main()
/external/boringssl/src/crypto/dh_extra/
Dparams.c158 if (!BN_set_word(t1, 24)) { in DH_generate_parameters_ex()
161 if (!BN_set_word(t2, 11)) { in DH_generate_parameters_ex()
166 if (!BN_set_word(t1, 10)) { in DH_generate_parameters_ex()
169 if (!BN_set_word(t2, 3)) { in DH_generate_parameters_ex()
180 if (!BN_set_word(t1, 2)) { in DH_generate_parameters_ex()
183 if (!BN_set_word(t2, 1)) { in DH_generate_parameters_ex()
195 if (!BN_set_word(dh->g, g)) { in DH_generate_parameters_ex()
Ddh_test.cc453 ASSERT_TRUE(BN_set_word(g.get(), 2)); in TEST()
465 ASSERT_TRUE(BN_set_word(priv_key.get(), 2)); in TEST()
467 ASSERT_TRUE(BN_set_word(peer_key.get(), 3)); in TEST()
/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/rust/crates/quiche/deps/boringssl/src/crypto/dh/
Ddh.c252 if (!BN_set_word(t1, 24)) { in DH_generate_parameters_ex()
255 if (!BN_set_word(t2, 11)) { in DH_generate_parameters_ex()
260 if (!BN_set_word(t1, 10)) { in DH_generate_parameters_ex()
263 if (!BN_set_word(t2, 3)) { in DH_generate_parameters_ex()
274 if (!BN_set_word(t1, 2)) { in DH_generate_parameters_ex()
277 if (!BN_set_word(t2, 1)) { in DH_generate_parameters_ex()
289 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/rust/crates/quiche/deps/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.cc312 ASSERT_TRUE(BN_set_word(two.get(), 2)); in TestLShift1()
1332 ASSERT_TRUE(BN_set_word(six.get(), 6)); in TEST_F()
1452 ASSERT_TRUE(BN_set_word(a.get(), 1)); in TEST_F()
1464 ASSERT_TRUE(BN_set_word(numerator.get(), 1)); in TEST_F()
1465 ASSERT_TRUE(BN_set_word(denominator.get(), 2)); in TEST_F()
1473 ASSERT_TRUE(BN_set_word(denominator.get(), 1)); in TEST_F()
1495 ASSERT_TRUE(BN_set_word(a.get(), 1)); in TEST_F()
1551 ASSERT_TRUE(BN_set_word(b.get(), 16)); in TEST_F()
1578 ASSERT_TRUE(BN_set_word(minus_one.get(), 1)); in TEST_F()
1622 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/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.c234 return BN_set_word(bn, 1); in BN_one()
237 int BN_set_word(BIGNUM *bn, BN_ULONG value) { in BN_set_word() function
255 return BN_set_word(bn, value); in BN_set_u64()
258 return BN_set_word(bn, (BN_ULONG)value); in BN_set_u64()
Dbn_test.cc312 ASSERT_TRUE(BN_set_word(two.get(), 2)); in TestLShift1()
1332 ASSERT_TRUE(BN_set_word(six.get(), 6)); in TEST_F()
1452 ASSERT_TRUE(BN_set_word(a.get(), 1)); in TEST_F()
1464 ASSERT_TRUE(BN_set_word(numerator.get(), 1)); in TEST_F()
1465 ASSERT_TRUE(BN_set_word(denominator.get(), 2)); in TEST_F()
1473 ASSERT_TRUE(BN_set_word(denominator.get(), 1)); in TEST_F()
1495 ASSERT_TRUE(BN_set_word(a.get(), 1)); in TEST_F()
1551 ASSERT_TRUE(BN_set_word(b.get(), 16)); in TEST_F()
1578 ASSERT_TRUE(BN_set_word(minus_one.get(), 1)); in TEST_F()
1622 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/boringssl/src/crypto/rsa_extra/
Drsa_test.cc526 ASSERT_TRUE(BN_set_word(e.get(), RSA_F4)); in TEST()
648 ASSERT_TRUE(BN_set_word(e.get(), RSA_F4)); in TEST()
660 ASSERT_TRUE(BN_set_word(e.get(), RSA_F4)); in TEST()
817 ASSERT_TRUE(BN_set_word(rsa->e, 111)); in TEST()
920 ASSERT_TRUE(BN_set_word(e.get(), RSA_F4)); in TEST()
991 ASSERT_TRUE(BN_set_word(e.get(), RSA_F4)); in TEST()
1020 ASSERT_TRUE(BN_set_word(e.get(), RSA_F4)); in TEST()
/external/rust/crates/quiche/deps/boringssl/src/crypto/rsa_extra/
Drsa_test.cc524 ASSERT_TRUE(BN_set_word(e.get(), RSA_F4)); in TEST()
646 ASSERT_TRUE(BN_set_word(e.get(), RSA_F4)); in TEST()
658 ASSERT_TRUE(BN_set_word(e.get(), RSA_F4)); in TEST()
815 ASSERT_TRUE(BN_set_word(rsa->e, 111)); in TEST()
918 ASSERT_TRUE(BN_set_word(e.get(), RSA_F4)); in TEST()
989 ASSERT_TRUE(BN_set_word(e.get(), RSA_F4)); in TEST()
1018 ASSERT_TRUE(BN_set_word(e.get(), RSA_F4)); in TEST()
/external/rust/crates/quiche/deps/boringssl/src/tool/
Dgenrsa.cc52 if (!BN_set_word(e.get(), RSA_F4) || in GenerateRSAKey()
/external/boringssl/src/tool/
Dgenrsa.cc52 if (!BN_set_word(e.get(), RSA_F4) || in GenerateRSAKey()
/external/rust/crates/quiche/deps/boringssl/src/decrepit/rsa/
Drsa_decrepit.c74 !BN_set_word(e, e_value) || in RSA_generate_key()
/external/boringssl/src/decrepit/rsa/
Drsa_decrepit.c74 !BN_set_word(e, e_value) || in RSA_generate_key()
/external/boringssl/src/crypto/fipsmodule/ec/
Dec_test.cc690 ASSERT_TRUE(BN_set_word(forty_two.get(), 42)); in TEST_P()
714 ASSERT_TRUE(BN_set_word(seven.get(), 7)); in TEST_P()
751 ASSERT_TRUE(BN_set_word(n.get(), 10)); in TEST_P()
768 ASSERT_TRUE(BN_set_word(forty_two.get(), 42)); in TEST_P()
808 ASSERT_TRUE(BN_set_word(forty_two.get(), 42)); in TEST_P()
867 ASSERT_TRUE(BN_set_word(bn31.get(), 31)); in TEST_P()
868 ASSERT_TRUE(BN_set_word(bn32.get(), 32)); in TEST_P()
1028 ASSERT_TRUE(BN_set_word(a.get(), abs(i))); in TEST()
/external/tpm2-tss/src/tss2-fapi/
Dfapi_crypto.c396 BN_set_word(d, 0); in ossl_rsa_pub_from_tpm()
397 BN_set_word(p, 0); in ossl_rsa_pub_from_tpm()
398 BN_set_word(q, 0); in ossl_rsa_pub_from_tpm()
399 BN_set_word(dmp1, 0); in ossl_rsa_pub_from_tpm()
400 BN_set_word(dmq1, 0); in ossl_rsa_pub_from_tpm()
401 BN_set_word(iqmp, 0); in ossl_rsa_pub_from_tpm()
407 if (1 != BN_set_word(e, exp)) { in ossl_rsa_pub_from_tpm()
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/ec/
Dec_test.cc690 ASSERT_TRUE(BN_set_word(forty_two.get(), 42)); in TEST_P()
714 ASSERT_TRUE(BN_set_word(seven.get(), 7)); in TEST_P()
751 ASSERT_TRUE(BN_set_word(n.get(), 10)); in TEST_P()
768 ASSERT_TRUE(BN_set_word(forty_two.get(), 42)); in TEST_P()
808 ASSERT_TRUE(BN_set_word(forty_two.get(), 42)); in TEST_P()
867 ASSERT_TRUE(BN_set_word(bn31.get(), 31)); in TEST_P()
868 ASSERT_TRUE(BN_set_word(bn32.get(), 32)); in TEST_P()
1028 ASSERT_TRUE(BN_set_word(a.get(), abs(i))); in TEST()
/external/libchrome/crypto/
Drsa_private_key.cc28 if (!rsa_key.get() || !bn.get() || !BN_set_word(bn.get(), 65537L)) in Create()

123