/external/rust/crates/ring/tests/ |
D | ecdsa_tests.rs | 48 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 …]
|
D | agreement_tests.rs | 88 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/ |
D | public_key.rs | 79 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/ |
D | lws-genec.c | 225 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/ |
D | ecdh_test.cc | 39 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/ |
D | ecdh_test.cc | 39 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/ |
D | lws-genec.c | 300 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/ |
D | digest_scalar.rs | 94 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()
|
D | signing.rs | 527 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()
|
D | verification.rs | 300 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/ |
D | ssh.py | 80 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/ |
D | ecdsa_test.cc | 307 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/ |
D | ecdsa_test.cc | 307 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/ |
D | lws-genec.h | 106 const char *curve_name, struct lws_gencrypto_keyelem *el); 138 lws_genecdsa_new_keypair(struct lws_genec_ctx *ctx, const char *curve_name,
|
D | lws-jose.h | 86 const char *curve_name; /* NULL, or, eg, "P-256" */ member
|
/external/boringssl/src/crypto/fipsmodule/ec/ |
D | ec.c | 392 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()
|
D | ec_test.cc | 911 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/ |
D | ec.c | 392 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()
|
D | ec_test.cc | 911 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/ |
D | ssl_servers.py | 199 if args.curve_name: 200 context.set_ecdh_curve(args.curve_name)
|
/external/python/cpython3/Lib/test/ |
D | ssl_servers.py | 199 if args.curve_name: 200 context.set_ecdh_curve(args.curve_name)
|
/external/python/cryptography/src/cryptography/hazmat/backends/openssl/ |
D | ec.py | 41 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/ |
D | keyexchange.py | 555 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/ |
D | utils.py | 474 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/ |
D | jws.c | 598 jose.alg->curve_name)) in lws_jws_sig_confirm() 834 jose->alg->curve_name)) in lws_jws_sign_from_b64()
|