/external/boringssl/src/crypto/evp/ |
D | p_ec_asn1.c | 69 const EC_KEY *ec_key = key->pkey.ec; in eckey_pub_encode() local 70 const EC_GROUP *group = EC_KEY_get0_group(ec_key); in eckey_pub_encode() 71 const EC_POINT *public_key = EC_KEY_get0_public_key(ec_key); in eckey_pub_encode() 152 EC_KEY *ec_key = EC_KEY_parse_private_key(key, group); in eckey_priv_decode() local 154 if (ec_key == NULL || CBS_len(key) != 0) { in eckey_priv_decode() 156 EC_KEY_free(ec_key); in eckey_priv_decode() 160 EVP_PKEY_assign_EC_KEY(out, ec_key); in eckey_priv_decode() 165 const EC_KEY *ec_key = key->pkey.ec; in eckey_priv_encode() local 171 unsigned enc_flags = EC_KEY_get_enc_flags(ec_key) | EC_PKEY_NO_PARAMETERS; in eckey_priv_encode() 180 !EC_KEY_marshal_curve_name(&algorithm, EC_KEY_get0_group(ec_key)) || in eckey_priv_encode() [all …]
|
D | evp_asn1.c | 214 EC_KEY *ec_key = EC_KEY_parse_private_key(cbs, NULL); in old_priv_decode() local 215 if (ec_key == NULL || !EVP_PKEY_assign_EC_KEY(ret, ec_key)) { in old_priv_decode() 216 EC_KEY_free(ec_key); in old_priv_decode() 517 EC_KEY *ec_key = EVP_PKEY_get1_EC_KEY(pkey); in d2i_EC_PUBKEY() local 519 if (ec_key == NULL) { in d2i_EC_PUBKEY() 524 *out = ec_key; in d2i_EC_PUBKEY() 527 return ec_key; in d2i_EC_PUBKEY() 530 int i2d_EC_PUBKEY(const EC_KEY *ec_key, uint8_t **outp) { in i2d_EC_PUBKEY() argument 531 if (ec_key == NULL) { in i2d_EC_PUBKEY() 538 !EVP_PKEY_set1_EC_KEY(pkey, (EC_KEY *)ec_key)) { in i2d_EC_PUBKEY()
|
D | evp.c | 304 EC_KEY *ec_key = EVP_PKEY_get0_EC_KEY(pkey); in EVP_PKEY_get1_EC_KEY() local 305 if (ec_key != NULL) { in EVP_PKEY_get1_EC_KEY() 306 EC_KEY_up_ref(ec_key); in EVP_PKEY_get1_EC_KEY() 308 return ec_key; in EVP_PKEY_get1_EC_KEY()
|
/external/rust/crates/quiche/deps/boringssl/src/crypto/evp/ |
D | p_ec_asn1.c | 69 const EC_KEY *ec_key = key->pkey.ec; in eckey_pub_encode() local 70 const EC_GROUP *group = EC_KEY_get0_group(ec_key); in eckey_pub_encode() 71 const EC_POINT *public_key = EC_KEY_get0_public_key(ec_key); in eckey_pub_encode() 152 EC_KEY *ec_key = EC_KEY_parse_private_key(key, group); in eckey_priv_decode() local 154 if (ec_key == NULL || CBS_len(key) != 0) { in eckey_priv_decode() 156 EC_KEY_free(ec_key); in eckey_priv_decode() 160 EVP_PKEY_assign_EC_KEY(out, ec_key); in eckey_priv_decode() 165 const EC_KEY *ec_key = key->pkey.ec; in eckey_priv_encode() local 171 unsigned enc_flags = EC_KEY_get_enc_flags(ec_key) | EC_PKEY_NO_PARAMETERS; in eckey_priv_encode() 180 !EC_KEY_marshal_curve_name(&algorithm, EC_KEY_get0_group(ec_key)) || in eckey_priv_encode() [all …]
|
D | evp_asn1.c | 213 EC_KEY *ec_key = EC_KEY_parse_private_key(cbs, NULL); in old_priv_decode() local 214 if (ec_key == NULL || !EVP_PKEY_assign_EC_KEY(ret, ec_key)) { in old_priv_decode() 215 EC_KEY_free(ec_key); in old_priv_decode()
|
D | evp.c | 300 EC_KEY *ec_key = EVP_PKEY_get0_EC_KEY(pkey); in EVP_PKEY_get1_EC_KEY() local 301 if (ec_key != NULL) { in EVP_PKEY_get1_EC_KEY() 302 EC_KEY_up_ref(ec_key); in EVP_PKEY_get1_EC_KEY() 304 return ec_key; in EVP_PKEY_get1_EC_KEY()
|
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/self_check/ |
D | self_check.c | 230 EC_KEY *ec_key = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1); in self_test_ecdsa_key() local 234 if (ec_key == NULL || qx == NULL || qy == NULL || d == NULL || in self_test_ecdsa_key() 235 !EC_KEY_set_public_key_affine_coordinates(ec_key, qx, qy) || in self_test_ecdsa_key() 236 !EC_KEY_set_private_key(ec_key, d)) { in self_test_ecdsa_key() 237 EC_KEY_free(ec_key); in self_test_ecdsa_key() 238 ec_key = NULL; in self_test_ecdsa_key() 244 return ec_key; in self_test_ecdsa_key() 467 EC_KEY *ec_key = NULL; in boringssl_fips_self_test() local 608 ec_key = self_test_ecdsa_key(); in boringssl_fips_self_test() 609 if (ec_key == NULL) { in boringssl_fips_self_test() [all …]
|
/external/boringssl/src/util/fipstools/cavp/ |
D | cavp_kas_test.cc | 65 bssl::UniquePtr<EC_KEY> ec_key(EC_KEY_new_by_curve_name(nid)); in TestKAS() local 67 if (!their_x || !their_y || !ec_key || !ctx) { in TestKAS() 71 const EC_GROUP *const group = EC_KEY_get0_group(ec_key.get()); in TestKAS() 82 !EC_KEY_set_private_key(ec_key.get(), our_k.get()) || in TestKAS() 88 } else if (!EC_KEY_generate_key(ec_key.get())) { in TestKAS() 94 ec_key.get())) { in TestKAS() 112 const EC_POINT *pub = EC_KEY_get0_public_key(ec_key.get()); in TestKAS()
|
D | test_fips.c | 208 EC_KEY *ec_key = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1); in main() local 209 if (ec_key == NULL) { in main() 215 if (!EC_KEY_generate_key_fips(ec_key)) { in main() 224 ECDSA_do_sign(kPlaintextSHA256, sizeof(kPlaintextSHA256), ec_key); in main() 227 ec_key)) { in main() 233 EC_KEY_free(ec_key); in main()
|
/external/rust/crates/quiche/deps/boringssl/src/util/fipstools/cavp/ |
D | cavp_kas_test.cc | 65 bssl::UniquePtr<EC_KEY> ec_key(EC_KEY_new_by_curve_name(nid)); in TestKAS() local 67 if (!their_x || !their_y || !ec_key || !ctx) { in TestKAS() 71 const EC_GROUP *const group = EC_KEY_get0_group(ec_key.get()); in TestKAS() 82 !EC_KEY_set_private_key(ec_key.get(), our_k.get()) || in TestKAS() 88 } else if (!EC_KEY_generate_key(ec_key.get())) { in TestKAS() 94 ec_key.get())) { in TestKAS() 112 const EC_POINT *pub = EC_KEY_get0_public_key(ec_key.get()); in TestKAS()
|
D | test_fips.c | 208 EC_KEY *ec_key = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1); in main() local 209 if (ec_key == NULL) { in main() 215 if (!EC_KEY_generate_key_fips(ec_key)) { in main() 224 ECDSA_do_sign(kPlaintextSHA256, sizeof(kPlaintextSHA256), ec_key); in main() 227 ec_key)) { in main() 233 EC_KEY_free(ec_key); in main()
|
/external/boringssl/src/crypto/fipsmodule/self_check/ |
D | self_check.c | 232 EC_KEY *ec_key = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1); in self_test_ecdsa_key() local 236 if (ec_key == NULL || qx == NULL || qy == NULL || d == NULL || in self_test_ecdsa_key() 237 !EC_KEY_set_public_key_affine_coordinates(ec_key, qx, qy) || in self_test_ecdsa_key() 238 !EC_KEY_set_private_key(ec_key, d)) { in self_test_ecdsa_key() 239 EC_KEY_free(ec_key); in self_test_ecdsa_key() 240 ec_key = NULL; in self_test_ecdsa_key() 246 return ec_key; in self_test_ecdsa_key() 615 EC_KEY *ec_key = NULL; in boringssl_fips_self_test() local 756 ec_key = self_test_ecdsa_key(); in boringssl_fips_self_test() 757 if (ec_key == NULL) { in boringssl_fips_self_test() [all …]
|
/external/webrtc/rtc_base/ |
D | openssl_identity.cc | 63 EC_KEY* ec_key = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1); in MakeKey() local 69 EC_KEY_set_asn1_flag(ec_key, OPENSSL_EC_NAMED_CURVE); in MakeKey() 71 if (!pkey || !ec_key || !EC_KEY_generate_key(ec_key) || in MakeKey() 72 !EVP_PKEY_assign_EC_KEY(pkey, ec_key)) { in MakeKey() 74 EC_KEY_free(ec_key); in MakeKey()
|
/external/rust/crates/quiche/deps/boringssl/src/tool/ |
D | server.cc | 109 bssl::UniquePtr<EC_KEY> ec_key(EC_KEY_new_by_curve_name(NID_X9_62_prime256v1)); in MakeKeyPairForSelfSignedCert() local 110 if (!ec_key || !EC_KEY_generate_key(ec_key.get())) { in MakeKeyPairForSelfSignedCert() 115 if (!evp_pkey || !EVP_PKEY_assign_EC_KEY(evp_pkey.get(), ec_key.release())) { in MakeKeyPairForSelfSignedCert()
|
/external/boringssl/src/tool/ |
D | server.cc | 109 bssl::UniquePtr<EC_KEY> ec_key(EC_KEY_new_by_curve_name(NID_X9_62_prime256v1)); in MakeKeyPairForSelfSignedCert() local 110 if (!ec_key || !EC_KEY_generate_key(ec_key.get())) { in MakeKeyPairForSelfSignedCert() 115 if (!evp_pkey || !EVP_PKEY_assign_EC_KEY(evp_pkey.get(), ec_key.release())) { in MakeKeyPairForSelfSignedCert()
|
/external/boringssl/src/crypto/pkcs8/ |
D | pkcs12_test.cc | 1831 bssl::UniquePtr<EC_KEY> ec_key( in MakeTestKey() local 1833 if (!ec_key || in MakeTestKey() 1834 !EC_KEY_generate_key(ec_key.get())) { in MakeTestKey() 1839 !EVP_PKEY_assign_EC_KEY(evp_pkey.get(), ec_key.release())) { in MakeTestKey()
|
/external/rust/crates/quiche/deps/boringssl/src/crypto/pkcs8/ |
D | pkcs12_test.cc | 1831 bssl::UniquePtr<EC_KEY> ec_key( in MakeTestKey() local 1833 if (!ec_key || in MakeTestKey() 1834 !EC_KEY_generate_key(ec_key.get())) { in MakeTestKey() 1839 !EVP_PKEY_assign_EC_KEY(evp_pkey.get(), ec_key.release())) { in MakeTestKey()
|
/external/boringssl/src/util/ |
D | doc.config | 33 "include/openssl/ec_key.h",
|
/external/boringssl/src/ssl/ |
D | ssl_lib.cc | 2357 const EC_KEY *ec_key = EVP_PKEY_get0_EC_KEY(private_key); in is_p256_key() local 2358 return ec_key != NULL && in is_p256_key() 2359 EC_GROUP_get_curve_name(EC_KEY_get0_group(ec_key)) == in is_p256_key() 3031 int SSL_CTX_set_tmp_ecdh(SSL_CTX *ctx, const EC_KEY *ec_key) { in SSL_CTX_set_tmp_ecdh() argument 3032 if (ec_key == NULL || EC_KEY_get0_group(ec_key) == NULL) { in SSL_CTX_set_tmp_ecdh() 3036 int nid = EC_GROUP_get_curve_name(EC_KEY_get0_group(ec_key)); in SSL_CTX_set_tmp_ecdh() 3040 int SSL_set_tmp_ecdh(SSL *ssl, const EC_KEY *ec_key) { in SSL_set_tmp_ecdh() argument 3041 if (ec_key == NULL || EC_KEY_get0_group(ec_key) == NULL) { in SSL_set_tmp_ecdh() 3045 int nid = EC_GROUP_get_curve_name(EC_KEY_get0_group(ec_key)); in SSL_set_tmp_ecdh()
|
D | ssl_cert.cc | 714 EC_KEY *ec_key = EVP_PKEY_get0_EC_KEY(pkey); in ssl_check_leaf_certificate() local 717 &group_id, EC_GROUP_get_curve_name(EC_KEY_get0_group(ec_key))) || in ssl_check_leaf_certificate() 719 EC_KEY_get_conv_form(ec_key) != POINT_CONVERSION_UNCOMPRESSED) { in ssl_check_leaf_certificate()
|
/external/rust/crates/quiche/deps/boringssl/src/ssl/ |
D | ssl_lib.cc | 2284 const EC_KEY *ec_key = EVP_PKEY_get0_EC_KEY(private_key); in is_p256_key() local 2285 return ec_key != NULL && in is_p256_key() 2286 EC_GROUP_get_curve_name(EC_KEY_get0_group(ec_key)) == in is_p256_key() 2948 int SSL_CTX_set_tmp_ecdh(SSL_CTX *ctx, const EC_KEY *ec_key) { in SSL_CTX_set_tmp_ecdh() argument 2949 if (ec_key == NULL || EC_KEY_get0_group(ec_key) == NULL) { in SSL_CTX_set_tmp_ecdh() 2953 int nid = EC_GROUP_get_curve_name(EC_KEY_get0_group(ec_key)); in SSL_CTX_set_tmp_ecdh() 2957 int SSL_set_tmp_ecdh(SSL *ssl, const EC_KEY *ec_key) { in SSL_set_tmp_ecdh() argument 2958 if (ec_key == NULL || EC_KEY_get0_group(ec_key) == NULL) { in SSL_set_tmp_ecdh() 2962 int nid = EC_GROUP_get_curve_name(EC_KEY_get0_group(ec_key)); in SSL_set_tmp_ecdh()
|
D | ssl_cert.cc | 714 EC_KEY *ec_key = EVP_PKEY_get0_EC_KEY(pkey); in ssl_check_leaf_certificate() local 717 &group_id, EC_GROUP_get_curve_name(EC_KEY_get0_group(ec_key))) || in ssl_check_leaf_certificate() 719 EC_KEY_get_conv_form(ec_key) != POINT_CONVERSION_UNCOMPRESSED) { in ssl_check_leaf_certificate()
|
D | t1_lib.cc | 3714 EC_KEY *ec_key = EVP_PKEY_get0_EC_KEY(hs->config->channel_id_private.get()); in tls1_write_channel_id() local 3715 if (ec_key == nullptr) { in tls1_write_channel_id() 3722 !EC_POINT_get_affine_coordinates_GFp(EC_KEY_get0_group(ec_key), in tls1_write_channel_id() 3723 EC_KEY_get0_public_key(ec_key), in tls1_write_channel_id() 3728 UniquePtr<ECDSA_SIG> sig(ECDSA_do_sign(digest, digest_len, ec_key)); in tls1_write_channel_id()
|
/external/python/cryptography/src/cryptography/hazmat/backends/openssl/ |
D | ec.py | 28 def _ec_key_curve_sn(backend, ec_key): argument 29 group = backend._lib.EC_KEY_get0_group(ec_key)
|
/external/boringssl/src/util/fipstools/acvp/modulewrapper/ |
D | modulewrapper.cc | 1724 bssl::UniquePtr<EC_KEY> ec_key(EC_KEY_new_by_curve_name(Nid)); in ECDH() local 1727 const EC_GROUP *const group = EC_KEY_get0_group(ec_key.get()); in ECDH() 1737 if (!EC_KEY_set_private_key(ec_key.get(), our_k.get())) { in ECDH() 1745 !EC_KEY_set_public_key(ec_key.get(), our_pub.get())) { in ECDH() 1749 } else if (!EC_KEY_generate_key_fips(ec_key.get())) { in ECDH() 1759 ec_key.get(), /*kdf=*/nullptr); in ECDH() 1769 const EC_POINT *pub = EC_KEY_get0_public_key(ec_key.get()); in ECDH()
|