Home
last modified time | relevance | path

Searched refs:curve_name (Results 1 – 25 of 32) sorted by relevance

12

/external/rust/crates/ring/tests/
Decdsa_tests.rs48 let curve_name = test_case.consume_string("Curve"); in ecdsa_from_pkcs8_test() localVariable
49 let ((this_fixed, this_asn1), (other_fixed, other_asn1)) = match curve_name.as_str() { in ecdsa_from_pkcs8_test()
136 let curve_name = test_case.consume_string("Curve"); in signature_ecdsa_verify_asn1_test() localVariable
143 let alg = match (curve_name.as_str(), digest_name.as_str()) { in signature_ecdsa_verify_asn1_test()
149 panic!("Unsupported curve+digest: {}+{}", curve_name, digest_name); in signature_ecdsa_verify_asn1_test()
169 let curve_name = test_case.consume_string("Curve"); in signature_ecdsa_verify_fixed_test() localVariable
177 let alg = match (curve_name.as_str(), digest_name.as_str()) { in signature_ecdsa_verify_fixed_test()
181 panic!("Unsupported curve+digest: {}+{}", curve_name, digest_name); in signature_ecdsa_verify_fixed_test()
240 let curve_name = test_case.consume_string("Curve"); in signature_ecdsa_sign_fixed_sign_and_verify_test() localVariable
251 let (signing_alg, verification_alg) = match (curve_name.as_str(), digest_name.as_str()) in signature_ecdsa_sign_fixed_sign_and_verify_test()
[all …]
Dagreement_tests.rs88 let curve_name = test_case.consume_string("Curve"); in agreement_agree_ephemeral() localVariable
89 let alg = alg_from_curve_name(&curve_name); in agreement_agree_ephemeral()
219 fn alg_from_curve_name(curve_name: &str) -> &'static agreement::Algorithm { in alg_from_curve_name()
220 if curve_name == "P-256" { in alg_from_curve_name()
222 } else if curve_name == "P-384" { in alg_from_curve_name()
224 } else if curve_name == "X25519" { in alg_from_curve_name()
227 panic!("Unsupported curve: {}", curve_name); in alg_from_curve_name()
/external/rust/crates/ring/src/ec/suite_b/
Dpublic_key.rs79 let curve_name = test_case.consume_string("Curve"); in parse_uncompressed_point_test() localVariable
85 let curve_ops = public_key_ops_from_curve_name(&curve_name); in parse_uncompressed_point_test()
98 fn public_key_ops_from_curve_name(curve_name: &str) -> &'static PublicKeyOps { in public_key_ops_from_curve_name()
99 if curve_name == "P-256" { in public_key_ops_from_curve_name()
101 } else if curve_name == "P-384" { in public_key_ops_from_curve_name()
104 panic!("Unsupported curve: {}", curve_name); in public_key_ops_from_curve_name()
/external/libwebsockets/lib/tls/mbedtls/
Dlws-genec.c225 const char *curve_name, in lws_genecdh_new_keypair() argument
237 curve = lws_genec_curve(ctx->curve_table, curve_name); in lws_genecdh_new_keypair()
240 __func__, curve_name); in lws_genecdh_new_keypair()
272 el[LWS_GENCRYPTO_EC_KEYEL_CRV].len = strlen(curve_name) + 1; in lws_genecdh_new_keypair()
277 strcpy((char *)el[LWS_GENCRYPTO_EC_KEYEL_CRV].buf, curve_name); in lws_genecdh_new_keypair()
308 lws_genecdsa_new_keypair(struct lws_genec_ctx *ctx, const char *curve_name, in lws_genecdsa_new_keypair() argument
319 curve = lws_genec_curve(ctx->curve_table, curve_name); in lws_genecdsa_new_keypair()
322 __func__, curve_name); in lws_genecdsa_new_keypair()
346 el[LWS_GENCRYPTO_EC_KEYEL_CRV].len = strlen(curve_name) + 1; in lws_genecdsa_new_keypair()
351 strcpy((char *)el[LWS_GENCRYPTO_EC_KEYEL_CRV].buf, curve_name); in lws_genecdsa_new_keypair()
/external/boringssl/src/crypto/ecdh_extra/
Decdh_test.cc39 std::string curve_name; in GetCurve() local
40 if (!t->GetAttribute(&curve_name, key)) { in GetCurve()
44 if (curve_name == "P-224") { in GetCurve()
47 if (curve_name == "P-256") { in GetCurve()
51 if (curve_name == "P-384") { in GetCurve()
54 if (curve_name == "P-521") { in GetCurve()
58 t->PrintLine("Unknown curve '%s'", curve_name.c_str()); in GetCurve()
/external/rust/crates/quiche/deps/boringssl/src/crypto/ecdh_extra/
Decdh_test.cc39 std::string curve_name; in GetCurve() local
40 if (!t->GetAttribute(&curve_name, key)) { in GetCurve()
44 if (curve_name == "P-224") { in GetCurve()
47 if (curve_name == "P-256") { in GetCurve()
51 if (curve_name == "P-384") { in GetCurve()
54 if (curve_name == "P-521") { in GetCurve()
58 t->PrintLine("Unknown curve '%s'", curve_name.c_str()); in GetCurve()
/external/libwebsockets/lib/tls/openssl/
Dlws-genec.c300 const char *curve_name, struct lws_gencrypto_keyelem *el) in lws_genec_new_keypair() argument
309 curve = lws_genec_curve(ctx->curve_table, curve_name); in lws_genec_new_keypair()
312 __func__, curve_name); in lws_genec_new_keypair()
369 el[LWS_GENCRYPTO_EC_KEYEL_CRV].len = (uint32_t)strlen(curve_name) + 1; in lws_genec_new_keypair()
377 strcpy((char *)el[LWS_GENCRYPTO_EC_KEYEL_CRV].buf, curve_name); in lws_genec_new_keypair()
408 const char *curve_name, in lws_genecdh_new_keypair() argument
414 return lws_genec_new_keypair(ctx, side, curve_name, el); in lws_genecdh_new_keypair()
418 lws_genecdsa_new_keypair(struct lws_genec_ctx *ctx, const char *curve_name, in lws_genecdsa_new_keypair() argument
424 return lws_genec_new_keypair(ctx, LDHS_OURS, curve_name, el); in lws_genecdsa_new_keypair()
/external/rust/crates/ring/src/ec/suite_b/ecdsa/
Ddigest_scalar.rs94 let curve_name = test_case.consume_string("Curve"); in test() localVariable
99 let (ops, digest_alg) = match (curve_name.as_str(), digest_name.as_str()) { in test()
105 panic!("Unsupported curve+digest: {}+{}", curve_name, digest_name); in test()
Dsigning.rs527 let curve_name = test_case.consume_string("Curve"); in signature_ecdsa_sign_fixed_test() localVariable
536 let alg = match (curve_name.as_str(), digest_name.as_str()) { in signature_ecdsa_sign_fixed_test()
540 panic!("Unsupported curve+digest: {}+{}", curve_name, digest_name); in signature_ecdsa_sign_fixed_test()
566 let curve_name = test_case.consume_string("Curve"); in signature_ecdsa_sign_asn1_test() localVariable
575 let alg = match (curve_name.as_str(), digest_name.as_str()) { in signature_ecdsa_sign_asn1_test()
579 panic!("Unsupported curve+digest: {}+{}", curve_name, digest_name); in signature_ecdsa_sign_asn1_test()
Dverification.rs300 let curve_name = test_case.consume_string("Curve"); in test_digest_based_test_vectors() localVariable
321 let alg = match curve_name.as_str() { in test_digest_based_test_vectors()
325 panic!("Unsupported curve: {}", curve_name); in test_digest_based_test_vectors()
/external/python/cryptography/src/cryptography/hazmat/primitives/serialization/
Dssh.py80 curve_name, rest = _ssh_read_next_string(decoded_data)
83 if expected_key_type != b"ecdsa-sha2-" + curve_name:
95 }[curve_name]()
/external/boringssl/src/crypto/fipsmodule/ecdsa/
Decdsa_test.cc307 std::string curve_name; in GetCurve() local
308 if (!t->GetAttribute(&curve_name, key)) { in GetCurve()
312 if (curve_name == "P-224") { in GetCurve()
315 if (curve_name == "P-256") { in GetCurve()
319 if (curve_name == "P-384") { in GetCurve()
322 if (curve_name == "P-521") { in GetCurve()
325 if (curve_name == "secp160r1") { in GetCurve()
329 ADD_FAILURE() << "Unknown curve: " << curve_name; in GetCurve()
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/ecdsa/
Decdsa_test.cc307 std::string curve_name; in GetCurve() local
308 if (!t->GetAttribute(&curve_name, key)) { in GetCurve()
312 if (curve_name == "P-224") { in GetCurve()
315 if (curve_name == "P-256") { in GetCurve()
319 if (curve_name == "P-384") { in GetCurve()
322 if (curve_name == "P-521") { in GetCurve()
325 if (curve_name == "secp160r1") { in GetCurve()
329 ADD_FAILURE() << "Unknown curve: " << curve_name; in GetCurve()
/external/libwebsockets/include/libwebsockets/
Dlws-genec.h106 const char *curve_name, struct lws_gencrypto_keyelem *el);
138 lws_genecdsa_new_keypair(struct lws_genec_ctx *ctx, const char *curve_name,
Dlws-jose.h86 const char *curve_name; /* NULL, or, eg, "P-256" */ member
/external/boringssl/src/crypto/fipsmodule/ec/
Dec.c392 if (group->curve_name != NID_undef || group->generator != NULL || in EC_GROUP_set_generator()
542 ret->curve_name = nid; in DEFINE_BSS_GET()
556 group->curve_name != NID_undef || in EC_GROUP_free()
575 a->curve_name != NID_undef) { in EC_GROUP_dup()
591 if (a->curve_name != b->curve_name) { in EC_GROUP_cmp()
594 if (a->curve_name != NID_undef) { in EC_GROUP_cmp()
644 int EC_GROUP_get_curve_name(const EC_GROUP *group) { return group->curve_name; } in EC_GROUP_get_curve_name()
Dec_test.cc911 std::string curve_name; in GetCurve() local
912 if (!t->GetAttribute(&curve_name, key)) { in GetCurve()
916 if (curve_name == "P-224") { in GetCurve()
919 if (curve_name == "P-256") { in GetCurve()
923 if (curve_name == "P-384") { in GetCurve()
926 if (curve_name == "P-521") { in GetCurve()
930 t->PrintLine("Unknown curve '%s'", curve_name.c_str()); in GetCurve()
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/ec/
Dec.c392 if (group->curve_name != NID_undef || group->generator != NULL || in EC_GROUP_set_generator()
542 ret->curve_name = nid; in DEFINE_BSS_GET()
556 group->curve_name != NID_undef || in EC_GROUP_free()
575 a->curve_name != NID_undef) { in EC_GROUP_dup()
591 if (a->curve_name != b->curve_name) { in EC_GROUP_cmp()
594 if (a->curve_name != NID_undef) { in EC_GROUP_cmp()
644 int EC_GROUP_get_curve_name(const EC_GROUP *group) { return group->curve_name; } in EC_GROUP_get_curve_name()
Dec_test.cc911 std::string curve_name; in GetCurve() local
912 if (!t->GetAttribute(&curve_name, key)) { in GetCurve()
916 if (curve_name == "P-224") { in GetCurve()
919 if (curve_name == "P-256") { in GetCurve()
923 if (curve_name == "P-384") { in GetCurve()
926 if (curve_name == "P-521") { in GetCurve()
930 t->PrintLine("Unknown curve '%s'", curve_name.c_str()); in GetCurve()
/external/python/cpython2/Lib/test/
Dssl_servers.py199 if args.curve_name:
200 context.set_ecdh_curve(args.curve_name)
/external/python/cpython3/Lib/test/
Dssl_servers.py199 if args.curve_name:
200 context.set_ecdh_curve(args.curve_name)
/external/python/cryptography/src/cryptography/hazmat/backends/openssl/
Dec.py41 curve_name = backend._lib.OBJ_nid2sn(nid)
42 backend.openssl_assert(curve_name != backend._ffi.NULL)
44 sn = backend._ffi.string(curve_name).decode('ascii')
/external/scapy/scapy/layers/tls/
Dkeyexchange.py555 curve_name = _tls_named_curves.get(self.named_curve)
556 if curve_name is None:
560 curve_cls = ec._CURVE_TYPES.get(curve_name)
589 curve_name = _tls_named_curves[self.named_curve]
590 curve = ec._CURVE_TYPES[curve_name]()
/external/python/cryptography/tests/
Dutils.py474 curve_name = _ECDSA_CURVE_NAMES[line[1:-1]]
481 "curve": curve_name,
513 curve_name = _ECDSA_CURVE_NAMES[curve_match.group("curve")]
523 "curve": curve_name,
/external/libwebsockets/lib/jose/jws/
Djws.c598 jose.alg->curve_name)) in lws_jws_sig_confirm()
834 jose->alg->curve_name)) in lws_jws_sign_from_b64()

12