Home
last modified time | relevance | path

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

12

/external/boringssl/src/crypto/dh/
Ddh.c202 if (!BN_set_word(t1, 24)) { in DH_generate_parameters_ex()
205 if (!BN_set_word(t2, 11)) { in DH_generate_parameters_ex()
210 if (!BN_set_word(t1, 10)) { in DH_generate_parameters_ex()
213 if (!BN_set_word(t2, 3)) { in DH_generate_parameters_ex()
224 if (!BN_set_word(t1, 2)) { in DH_generate_parameters_ex()
227 if (!BN_set_word(t2, 1)) { in DH_generate_parameters_ex()
239 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/bn/
Dbn.c244 return BN_set_word(bn, 1); in BN_one()
247 int BN_set_word(BIGNUM *bn, BN_ULONG value) { in BN_set_word() function
265 return BN_set_word(bn, value); in BN_set_u64()
268 return BN_set_word(bn, (BN_ULONG)value); in BN_set_u64()
Dsqrt.c79 if (!BN_set_word(ret, BN_is_bit_set(a, 0))) { in BN_mod_sqrt()
99 if (!BN_set_word(ret, BN_is_one(a))) { in BN_mod_sqrt()
236 if (!BN_set_word(y, i)) { in BN_mod_sqrt()
250 if (!BN_set_word(y, i)) { in BN_mod_sqrt()
Dadd.c175 return BN_set_word(a, w); in BN_add_word()
339 i = BN_set_word(a, w); in BN_sub_word()
Dbn_test.cc265 !BN_set_word(two.get(), 2) || in TestLShift1()
1281 if (!BN_set_word(a.get(), 1)) { in TestNegativeZero()
1300 if (!BN_set_word(numerator.get(), 1) || in TestNegativeZero()
1301 !BN_set_word(denominator.get(), 2)) { in TestNegativeZero()
1314 if (!BN_set_word(denominator.get(), 1)) { in TestNegativeZero()
1346 if (!BN_set_word(a.get(), 1)) { in TestNegativeZero()
1434 if (!BN_set_word(b.get(), 16)) { in TestBadModulus()
1513 !BN_set_word(r.get(), 0)) { in TestCmpWord()
1524 if (!BN_set_word(r.get(), 100)) { in TestCmpWord()
1546 if (!BN_set_word(r.get(), kMaxWord)) { in TestCmpWord()
/external/boringssl/src/tool/
Dgenrsa.cc57 if (!BN_set_word(e.get(), RSA_F4) || in GenerateRSAKey()
/external/boringssl/src/crypto/rsa/
Drsa_test.cc649 ASSERT_TRUE(BN_set_word(e.get(), RSA_F4)); in TEST()
676 ASSERT_TRUE(BN_set_word(e.get(), RSA_F4)); in TEST()
742 ASSERT_TRUE(BN_set_word(e.get(), RSA_F4)); in TEST()
/external/boringssl/src/crypto/ec/
Dexample_mul.c94 !BN_set_word(n, 10)) { in example_EC_POINT_mul()
Dec.c583 return BN_set_word(cofactor, 1); in EC_GROUP_get_cofactor()
/external/boringssl/src/decrepit/rsa/
Drsa_decrepit.c74 !BN_set_word(e, e_value) || in RSA_generate_key()
/external/wpa_supplicant_8/src/crypto/
Dcrypto_openssl.c643 if (dh->g == NULL || BN_set_word(dh->g, 2) != 1) in dh5_init()
691 if (!g || BN_set_word(g, 2) != 1 || !p || in dh5_init()
738 if (dh->g == NULL || BN_set_word(dh->g, 2) != 1) in dh5_init_fixed()
771 if (!g || BN_set_word(g, 2) != 1 || !p || in dh5_init_fixed()
/external/tpm2/
DCpriRSA.c91 BN_set_word(bnE, key->exponent); in RsaPrivateExponent()
223 BN_set_word(bnE, exponent); in _cpri__TestKeyRSA()
1248 BN_set_word(bnE, e); in _cpri__GenerateKeyRSA()
DMathFunctions.c523 if(!BN_set_word(p, prime)) in _math__IsPrime()
DRSAKeySieve.c838 BN_set_word(bnE, e); in _cpri__GenerateKeyRSA()
/external/boringssl/src/crypto/asn1/
Da_object.c144 if (!bl || !BN_set_word(bl, l)) in a2d_ASN1_OBJECT()
/external/webrtc/webrtc/base/
Dopensslidentity.cc54 !BN_set_word(exponent, key_params.rsa_params().pub_exp) || in MakeKey()
/external/openssh/
Dsshconnect1.c578 if (BN_set_word(key, 0) == 0) in ssh_kex()
Dmoduli.c424 if (BN_set_word(q, 2 * j) == 0) in gen_candidates()
/external/boringssl/src/include/openssl/
Dbn.h217 OPENSSL_EXPORT int BN_set_word(BIGNUM *bn, BN_ULONG value);
/external/boringssl/src/crypto/evp/
Dp_rsa.c568 if (!rctx->pub_exp || !BN_set_word(rctx->pub_exp, RSA_F4)) { in pkey_rsa_keygen()
/external/boringssl/src/crypto/dsa/
Ddsa.c363 if (!BN_set_word(test, h) || in DSA_generate_parameters_ex()
/external/ipsec-tools/src/racoon/
Dcrypto_openssl.c2477 if (!BN_set_word(dh->g, g))
2543 if (!BN_set_word(dh->g, g))

12