Home
last modified time | relevance | path

Searched refs:BN_bin2bn (Results 1 – 25 of 83) sorted by relevance

1234

/external/rust/crates/quiche/deps/boringssl/src/crypto/dsa/
Ddsa_test.cc176 dsa->p = BN_bin2bn(fips_p, sizeof(fips_p), nullptr); in GetFIPSDSA()
177 dsa->q = BN_bin2bn(fips_q, sizeof(fips_q), nullptr); in GetFIPSDSA()
178 dsa->g = BN_bin2bn(fips_g, sizeof(fips_g), nullptr); in GetFIPSDSA()
179 dsa->pub_key = BN_bin2bn(fips_y, sizeof(fips_y), nullptr); in GetFIPSDSA()
180 dsa->priv_key = BN_bin2bn(fips_x, sizeof(fips_x), nullptr); in GetFIPSDSA()
/external/boringssl/src/crypto/dsa/
Ddsa_test.cc176 dsa->p = BN_bin2bn(fips_p, sizeof(fips_p), nullptr); in GetFIPSDSA()
177 dsa->q = BN_bin2bn(fips_q, sizeof(fips_q), nullptr); in GetFIPSDSA()
178 dsa->g = BN_bin2bn(fips_g, sizeof(fips_g), nullptr); in GetFIPSDSA()
179 dsa->pub_key = BN_bin2bn(fips_y, sizeof(fips_y), nullptr); in GetFIPSDSA()
180 dsa->priv_key = BN_bin2bn(fips_x, sizeof(fips_x), nullptr); in GetFIPSDSA()
/external/boringssl/src/crypto/ecdh_extra/
Decdh_test.cc68 return bssl::UniquePtr<BIGNUM>(BN_bin2bn(bytes.data(), bytes.size(), nullptr)); in GetBIGNUM()
229 bssl::UniquePtr<BIGNUM> p(BN_bin2bn(kP, sizeof(kP), nullptr)); in MakeCustomGroup()
230 bssl::UniquePtr<BIGNUM> a(BN_bin2bn(kA, sizeof(kA), nullptr)); in MakeCustomGroup()
231 bssl::UniquePtr<BIGNUM> b(BN_bin2bn(kB, sizeof(kB), nullptr)); in MakeCustomGroup()
232 bssl::UniquePtr<BIGNUM> x(BN_bin2bn(kX, sizeof(kX), nullptr)); in MakeCustomGroup()
233 bssl::UniquePtr<BIGNUM> y(BN_bin2bn(kY, sizeof(kY), nullptr)); in MakeCustomGroup()
234 bssl::UniquePtr<BIGNUM> order(BN_bin2bn(kOrder, sizeof(kOrder), nullptr)); in MakeCustomGroup()
/external/rust/crates/quiche/deps/boringssl/src/crypto/ecdh_extra/
Decdh_test.cc68 return bssl::UniquePtr<BIGNUM>(BN_bin2bn(bytes.data(), bytes.size(), nullptr)); in GetBIGNUM()
229 bssl::UniquePtr<BIGNUM> p(BN_bin2bn(kP, sizeof(kP), nullptr)); in MakeCustomGroup()
230 bssl::UniquePtr<BIGNUM> a(BN_bin2bn(kA, sizeof(kA), nullptr)); in MakeCustomGroup()
231 bssl::UniquePtr<BIGNUM> b(BN_bin2bn(kB, sizeof(kB), nullptr)); in MakeCustomGroup()
232 bssl::UniquePtr<BIGNUM> x(BN_bin2bn(kX, sizeof(kX), nullptr)); in MakeCustomGroup()
233 bssl::UniquePtr<BIGNUM> y(BN_bin2bn(kY, sizeof(kY), nullptr)); in MakeCustomGroup()
234 bssl::UniquePtr<BIGNUM> order(BN_bin2bn(kOrder, sizeof(kOrder), nullptr)); in MakeCustomGroup()
/external/rust/crates/quiche/deps/boringssl/src/crypto/dh/
Ddh_test.cc289 dh->p = BN_bin2bn(kRFC5114_2048_224P, sizeof(kRFC5114_2048_224P), nullptr); in TestBadY()
290 dh->g = BN_bin2bn(kRFC5114_2048_224G, sizeof(kRFC5114_2048_224G), nullptr); in TestBadY()
291 dh->q = BN_bin2bn(kRFC5114_2048_224Q, sizeof(kRFC5114_2048_224Q), nullptr); in TestBadY()
297 BN_bin2bn(kRFC5114_2048_224BadY, sizeof(kRFC5114_2048_224BadY), nullptr)); in TestBadY()
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/ecdsa/
Decdsa_test.cc168 ASSERT_TRUE(BN_bin2bn(raw_buf.data(), bn_len, ecdsa_sig->r)); in TestTamperedSig()
169 ASSERT_TRUE(BN_bin2bn(raw_buf.data() + bn_len, bn_len, ecdsa_sig->s)); in TestTamperedSig()
174 ASSERT_TRUE(BN_bin2bn(raw_buf.data(), bn_len, ecdsa_sig->r)); in TestTamperedSig()
175 ASSERT_TRUE(BN_bin2bn(raw_buf.data() + bn_len, bn_len, ecdsa_sig->s)); in TestTamperedSig()
294 ASSERT_TRUE(BN_bin2bn(bytes.data(), bytes.size(), sig->r)); in TEST()
295 ASSERT_TRUE(BN_bin2bn(bytes.data(), bytes.size(), sig->s)); in TEST()
365 return bssl::UniquePtr<BIGNUM>(BN_bin2bn(bytes.data(), bytes.size(), nullptr)); in GetBIGNUM()
/external/boringssl/src/crypto/fipsmodule/ecdsa/
Decdsa_test.cc168 ASSERT_TRUE(BN_bin2bn(raw_buf.data(), bn_len, ecdsa_sig->r)); in TestTamperedSig()
169 ASSERT_TRUE(BN_bin2bn(raw_buf.data() + bn_len, bn_len, ecdsa_sig->s)); in TestTamperedSig()
174 ASSERT_TRUE(BN_bin2bn(raw_buf.data(), bn_len, ecdsa_sig->r)); in TestTamperedSig()
175 ASSERT_TRUE(BN_bin2bn(raw_buf.data() + bn_len, bn_len, ecdsa_sig->s)); in TestTamperedSig()
294 ASSERT_TRUE(BN_bin2bn(bytes.data(), bytes.size(), sig->r)); in TEST()
295 ASSERT_TRUE(BN_bin2bn(bytes.data(), bytes.size(), sig->s)); in TEST()
365 return bssl::UniquePtr<BIGNUM>(BN_bin2bn(bytes.data(), bytes.size(), nullptr)); in GetBIGNUM()
/external/rust/crates/quiche/deps/boringssl/src/fuzz/
Dbn_mod_exp.cc84 BN_bin2bn(CBS_data(&child0), CBS_len(&child0), nullptr)); in LLVMFuzzerTestOneInput()
87 BN_bin2bn(CBS_data(&child1), CBS_len(&child1), nullptr)); in LLVMFuzzerTestOneInput()
89 BN_bin2bn(CBS_data(&child2), CBS_len(&child2), nullptr)); in LLVMFuzzerTestOneInput()
Dbn_div.cc41 BN_bin2bn(CBS_data(&child0), CBS_len(&child0), nullptr)); in LLVMFuzzerTestOneInput()
44 BN_bin2bn(CBS_data(&child1), CBS_len(&child1), nullptr)); in LLVMFuzzerTestOneInput()
/external/boringssl/src/crypto/dh_extra/
Ddh_test.cc290 dh->p = BN_bin2bn(kRFC5114_2048_224P, sizeof(kRFC5114_2048_224P), nullptr); in TestBadY()
291 dh->g = BN_bin2bn(kRFC5114_2048_224G, sizeof(kRFC5114_2048_224G), nullptr); in TestBadY()
292 dh->q = BN_bin2bn(kRFC5114_2048_224Q, sizeof(kRFC5114_2048_224Q), nullptr); in TestBadY()
298 BN_bin2bn(kRFC5114_2048_224BadY, sizeof(kRFC5114_2048_224BadY), nullptr)); in TestBadY()
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/self_check/
Dself_check.c76 *out = BN_bin2bn(in, len, NULL); in set_bignum()
231 BIGNUM *qx = BN_bin2bn(kQx, sizeof(kQx), NULL); in self_test_ecdsa_key()
232 BIGNUM *qy = BN_bin2bn(kQy, sizeof(kQy), NULL); in self_test_ecdsa_key()
233 BIGNUM *d = BN_bin2bn(kD, sizeof(kD), NULL); in self_test_ecdsa_key()
652 !BN_bin2bn(kP256Scalar, sizeof(kP256Scalar), ec_scalar) || in boringssl_fips_self_test()
/external/boringssl/src/util/fipstools/cavp/
Dcavp_rsa2_sigver_test.cc68 !BN_bin2bn(ctx->N.data(), ctx->N.size(), key->n) || in TestRSA2SigVer()
69 !BN_bin2bn(e_bytes.data(), e_bytes.size(), key->e)) { in TestRSA2SigVer()
/external/rust/crates/quiche/deps/boringssl/src/util/fipstools/cavp/
Dcavp_rsa2_sigver_test.cc68 !BN_bin2bn(ctx->N.data(), ctx->N.size(), key->n) || in TestRSA2SigVer()
69 !BN_bin2bn(e_bytes.data(), e_bytes.size(), key->e)) { in TestRSA2SigVer()
/external/wpa_supplicant_8/src/crypto/
Dcrypto_openssl.c120 return BN_bin2bn(RFC3526_PRIME_1536, sizeof(RFC3526_PRIME_1536), NULL); in get_group5_prime()
145 return BN_bin2bn(RFC3526_ORDER_1536, sizeof(RFC3526_ORDER_1536), NULL); in get_group5_order()
564 pub = BN_bin2bn(pubkey, pubkey_len, NULL); in crypto_dh_derive_secret()
565 p = BN_bin2bn(prime, prime_len, NULL); in crypto_dh_derive_secret()
576 q = BN_bin2bn(order, order_len, NULL); in crypto_dh_derive_secret()
611 bn_base = BN_bin2bn(base, base_len, NULL); in crypto_mod_exp()
612 bn_exp = BN_bin2bn(power, power_len, NULL); in crypto_mod_exp()
613 bn_modulus = BN_bin2bn(modulus, modulus_len, NULL); in crypto_mod_exp()
885 dh->priv_key = BN_bin2bn(wpabuf_head(priv), wpabuf_len(priv), NULL); in dh5_init_fixed()
889 dh->pub_key = BN_bin2bn(wpabuf_head(publ), wpabuf_len(publ), NULL); in dh5_init_fixed()
[all …]
/external/libwebsockets/lib/tls/openssl/
Dlws-genec.c113 bn_x = BN_bin2bn(el[LWS_GENCRYPTO_EC_KEYEL_X].buf, in lws_genec_eckey_import()
119 bn_y = BN_bin2bn(el[LWS_GENCRYPTO_EC_KEYEL_Y].buf, in lws_genec_eckey_import()
137 bn_d = BN_bin2bn(el[LWS_GENCRYPTO_EC_KEYEL_D].buf, in lws_genec_eckey_import()
592 r = BN_bin2bn(sig, keybytes, NULL); in lws_genecdsa_hash_sig_verify_jws()
598 s = BN_bin2bn(sig + keybytes, keybytes, NULL); in lws_genecdsa_hash_sig_verify_jws()
/external/tpm2-tss/test/helper/
Dtpm_getek_ecc.c154 x = BN_bin2bn(out_public.publicArea.unique.ecc.x.buffer, in main()
157 y = BN_bin2bn(out_public.publicArea.unique.ecc.y.buffer, in main()
/external/boringssl/src/crypto/fipsmodule/self_check/
Dself_check.c78 *out = BN_bin2bn(in, len, NULL); in set_bignum()
233 BIGNUM *qx = BN_bin2bn(kQx, sizeof(kQx), NULL); in self_test_ecdsa_key()
234 BIGNUM *qy = BN_bin2bn(kQy, sizeof(kQy), NULL); in self_test_ecdsa_key()
235 BIGNUM *d = BN_bin2bn(kD, sizeof(kD), NULL); in self_test_ecdsa_key()
806 !BN_bin2bn(kP256Scalar, sizeof(kP256Scalar), ec_scalar) || in boringssl_fips_self_test()
/external/openssh/
Dssh-dss.c168 if ((BN_bin2bn(sigblob, INTBLOB_LEN, sig_r) == NULL) || in ssh_dss_verify()
169 (BN_bin2bn(sigblob + INTBLOB_LEN, INTBLOB_LEN, sig_s) == NULL)) { in ssh_dss_verify()
/external/boringssl/src/crypto/bn_extra/
Dbn_asn1.c35 return BN_bin2bn(CBS_data(&child), CBS_len(&child), ret) != NULL; in BN_parse_asn1_unsigned()
/external/rust/crates/quiche/deps/boringssl/src/crypto/bn_extra/
Dbn_asn1.c42 return BN_bin2bn(CBS_data(&child), CBS_len(&child), ret) != NULL; in BN_parse_asn1_unsigned()
/external/rust/crates/quiche/deps/boringssl/src/crypto/ec_extra/
Dec_derive.c68 BIGNUM *priv = BN_bin2bn(derived, derived_len, NULL); in EC_KEY_derive_from_secret()
/external/boringssl/src/crypto/ec_extra/
Dec_derive.c68 BIGNUM *priv = BN_bin2bn(derived, derived_len, NULL); in EC_KEY_derive_from_secret()
/external/tpm2-tss/src/tss2-esys/
Desys_crypto_bssl.c608 if (!BN_bin2bn(pub_tpm_key->publicArea.unique.rsa.buffer, in iesys_cryptbssl_pk_encrypt()
616 if (!(n = BN_bin2bn(pub_tpm_key->publicArea.unique.rsa.buffer, in iesys_cryptbssl_pk_encrypt()
711 if (!(bn_x = BN_bin2bn(&key->publicArea.unique.ecc.x.buffer[0], in tpm_pub_to_ossl_pub()
718 if (!(bn_y = BN_bin2bn(&key->publicArea.unique.ecc.y.buffer[0], in tpm_pub_to_ossl_pub()
/external/rust/crates/quiche/deps/boringssl/src/crypto/asn1/
Da_enum.c190 if ((ret = BN_bin2bn(ai->data, ai->length, bn)) == NULL) in ASN1_ENUMERATED_to_BN()
/external/boringssl/src/crypto/asn1/
Da_enum.c190 if ((ret = BN_bin2bn(ai->data, ai->length, bn)) == NULL) in ASN1_ENUMERATED_to_BN()

1234