Home
last modified time | relevance | path

Searched refs:ecdh (Results 1 - 25 of 105) sorted by relevance

12345

/third_party/node/deps/openssl/openssl/crypto/ec/
H A Decdh_ossl.c29 const EC_POINT *pub_key, const EC_KEY *ecdh) in ossl_ecdh_compute_key()
31 if (ecdh->group->meth->ecdh_compute_key == NULL) { in ossl_ecdh_compute_key()
36 return ecdh->group->meth->ecdh_compute_key(psec, pseclen, pub_key, ecdh); in ossl_ecdh_compute_key()
50 const EC_POINT *pub_key, const EC_KEY *ecdh) in ossl_ecdh_simple_compute_key()
61 if ((ctx = BN_CTX_new_ex(ecdh->libctx)) == NULL) in ossl_ecdh_simple_compute_key()
70 priv_key = EC_KEY_get0_private_key(ecdh); in ossl_ecdh_simple_compute_key()
76 group = EC_KEY_get0_group(ecdh); in ossl_ecdh_simple_compute_key()
82 if (EC_KEY_get_flags(ecdh) & EC_FLAG_COFACTOR_ECDH) { in ossl_ecdh_simple_compute_key()
28 ossl_ecdh_compute_key(unsigned char **psec, size_t *pseclen, const EC_POINT *pub_key, const EC_KEY *ecdh) ossl_ecdh_compute_key() argument
49 ossl_ecdh_simple_compute_key(unsigned char **pout, size_t *poutlen, const EC_POINT *pub_key, const EC_KEY *ecdh) ossl_ecdh_simple_compute_key() argument
H A Dec_kmeth.c228 const EC_KEY *ecdh)) in EC_KEY_METHOD_set_compute_key()
302 const EC_KEY *ecdh)) in EC_KEY_METHOD_get_compute_key()
224 EC_KEY_METHOD_set_compute_key(EC_KEY_METHOD *meth, int (*ckey)(unsigned char **psec, size_t *pseclen, const EC_POINT *pub_key, const EC_KEY *ecdh)) EC_KEY_METHOD_set_compute_key() argument
298 EC_KEY_METHOD_get_compute_key(const EC_KEY_METHOD *meth, int (**pck)(unsigned char **pout, size_t *poutlen, const EC_POINT *pub_key, const EC_KEY *ecdh)) EC_KEY_METHOD_get_compute_key() argument
H A Dec_local.h177 const EC_POINT *pub_key, const EC_KEY *ecdh);
647 const EC_POINT *pub_key, const EC_KEY *ecdh);
670 const EC_POINT *pub_key, const EC_KEY *ecdh);
672 const EC_POINT *pub_key, const EC_KEY *ecdh);
/third_party/openssl/crypto/ec/
H A Decdh_ossl.c29 const EC_POINT *pub_key, const EC_KEY *ecdh) in ossl_ecdh_compute_key()
31 if (ecdh->group->meth->ecdh_compute_key == NULL) { in ossl_ecdh_compute_key()
36 return ecdh->group->meth->ecdh_compute_key(psec, pseclen, pub_key, ecdh); in ossl_ecdh_compute_key()
50 const EC_POINT *pub_key, const EC_KEY *ecdh) in ossl_ecdh_simple_compute_key()
61 if ((ctx = BN_CTX_new_ex(ecdh->libctx)) == NULL) in ossl_ecdh_simple_compute_key()
70 priv_key = EC_KEY_get0_private_key(ecdh); in ossl_ecdh_simple_compute_key()
76 group = EC_KEY_get0_group(ecdh); in ossl_ecdh_simple_compute_key()
82 if (EC_KEY_get_flags(ecdh) & EC_FLAG_COFACTOR_ECDH) { in ossl_ecdh_simple_compute_key()
28 ossl_ecdh_compute_key(unsigned char **psec, size_t *pseclen, const EC_POINT *pub_key, const EC_KEY *ecdh) ossl_ecdh_compute_key() argument
49 ossl_ecdh_simple_compute_key(unsigned char **pout, size_t *poutlen, const EC_POINT *pub_key, const EC_KEY *ecdh) ossl_ecdh_simple_compute_key() argument
H A Dec_kmeth.c228 const EC_KEY *ecdh)) in EC_KEY_METHOD_set_compute_key()
302 const EC_KEY *ecdh)) in EC_KEY_METHOD_get_compute_key()
224 EC_KEY_METHOD_set_compute_key(EC_KEY_METHOD *meth, int (*ckey)(unsigned char **psec, size_t *pseclen, const EC_POINT *pub_key, const EC_KEY *ecdh)) EC_KEY_METHOD_set_compute_key() argument
298 EC_KEY_METHOD_get_compute_key(const EC_KEY_METHOD *meth, int (**pck)(unsigned char **pout, size_t *poutlen, const EC_POINT *pub_key, const EC_KEY *ecdh)) EC_KEY_METHOD_get_compute_key() argument
H A Dec_local.h177 const EC_POINT *pub_key, const EC_KEY *ecdh);
647 const EC_POINT *pub_key, const EC_KEY *ecdh);
670 const EC_POINT *pub_key, const EC_KEY *ecdh);
672 const EC_POINT *pub_key, const EC_KEY *ecdh);
/third_party/node/src/crypto/
H A Dcrypto_ec.cc15 #include <openssl/ecdh.h>
160 ECDH* ecdh; in GenerateKeys() local
161 ASSIGN_OR_RETURN_UNWRAP(&ecdh, args.Holder()); in GenerateKeys()
163 if (!EC_KEY_generate_key(ecdh->key_.get())) in GenerateKeys()
201 ECDH* ecdh; in ComputeSecret() local
202 ASSIGN_OR_RETURN_UNWRAP(&ecdh, args.Holder()); in ComputeSecret()
206 if (!ecdh->IsKeyPairValid()) in ComputeSecret()
211 ecdh->group_, in ComputeSecret()
224 int field_size = EC_GROUP_get_degree(ecdh->group_); in ComputeSecret()
230 bs->Data(), bs->ByteLength(), pub.get(), ecdh in ComputeSecret()
245 ECDH* ecdh; GetPublicKey() local
268 ECDH* ecdh; GetPrivateKey() local
294 ECDH* ecdh; SetPrivateKey() local
350 ECDH* ecdh; SetPublicKey() local
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/
H A Dcrypto_openssl.c1971 struct crypto_ecdh *ecdh; in crypto_ecdh_init() local
1976 ecdh = os_zalloc(sizeof(*ecdh)); in crypto_ecdh_init()
1977 if (!ecdh) in crypto_ecdh_init()
1980 ecdh->ec = crypto_ec_init(group); in crypto_ecdh_init()
1981 if (!ecdh->ec) in crypto_ecdh_init()
1984 ec_params = EC_KEY_new_by_curve_name(ecdh->ec->nid); in crypto_ecdh_init()
2009 if (EVP_PKEY_keygen(kctx, &ecdh->pkey) != 1) { in crypto_ecdh_init()
2020 return ecdh; in crypto_ecdh_init()
2022 crypto_ecdh_deinit(ecdh); in crypto_ecdh_init()
2028 crypto_ecdh_get_pubkey(struct crypto_ecdh *ecdh, int inc_y) crypto_ecdh_get_pubkey() argument
2088 crypto_ecdh_set_peerkey(struct crypto_ecdh *ecdh, int inc_y, const u8 *key, size_t len) crypto_ecdh_set_peerkey() argument
2183 crypto_ecdh_deinit(struct crypto_ecdh *ecdh) crypto_ecdh_deinit() argument
[all...]
H A Dcrypto_wolfssl.c1728 struct crypto_ecdh *ecdh = NULL; in crypto_ecdh_init() local
1735 ecdh = os_zalloc(sizeof(*ecdh)); in crypto_ecdh_init()
1736 if (!ecdh) in crypto_ecdh_init()
1739 ecdh->ec = crypto_ec_init(group); in crypto_ecdh_init()
1740 if (!ecdh->ec) in crypto_ecdh_init()
1743 ret = wc_ecc_make_key_ex(&rng, ecdh->ec->key.dp->size, &ecdh->ec->key, in crypto_ecdh_init()
1744 ecdh->ec->key.dp->id); in crypto_ecdh_init()
1751 return ecdh; in crypto_ecdh_init()
1759 crypto_ecdh_deinit(struct crypto_ecdh *ecdh) crypto_ecdh_deinit() argument
1768 crypto_ecdh_get_pubkey(struct crypto_ecdh *ecdh, int inc_y) crypto_ecdh_get_pubkey() argument
1800 crypto_ecdh_set_peerkey(struct crypto_ecdh *ecdh, int inc_y, const u8 *key, size_t len) crypto_ecdh_set_peerkey() argument
[all...]
H A Dcrypto.h926 struct wpabuf * crypto_ecdh_get_pubkey(struct crypto_ecdh *ecdh, int inc_y);
927 struct wpabuf * crypto_ecdh_set_peerkey(struct crypto_ecdh *ecdh, int inc_y,
929 void crypto_ecdh_deinit(struct crypto_ecdh *ecdh);
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/
H A Dcrypto_wolfssl.c1710 struct crypto_ecdh *ecdh = NULL; in crypto_ecdh_init() local
1717 ecdh = os_zalloc(sizeof(*ecdh)); in crypto_ecdh_init()
1718 if (!ecdh) in crypto_ecdh_init()
1721 ecdh->ec = crypto_ec_init(group); in crypto_ecdh_init()
1722 if (!ecdh->ec) in crypto_ecdh_init()
1725 ret = wc_ecc_make_key_ex(&rng, ecdh->ec->key.dp->size, &ecdh->ec->key, in crypto_ecdh_init()
1726 ecdh->ec->key.dp->id); in crypto_ecdh_init()
1733 return ecdh; in crypto_ecdh_init()
1741 crypto_ecdh_deinit(struct crypto_ecdh *ecdh) crypto_ecdh_deinit() argument
1750 crypto_ecdh_get_pubkey(struct crypto_ecdh *ecdh, int inc_y) crypto_ecdh_get_pubkey() argument
1782 crypto_ecdh_set_peerkey(struct crypto_ecdh *ecdh, int inc_y, const u8 *key, size_t len) crypto_ecdh_set_peerkey() argument
1829 crypto_ecdh_prime_len(struct crypto_ecdh *ecdh) crypto_ecdh_prime_len() argument
[all...]
H A Dcrypto_openssl.c2059 struct crypto_ecdh *ecdh; in crypto_ecdh_init() local
2064 ecdh = os_zalloc(sizeof(*ecdh)); in crypto_ecdh_init()
2065 if (!ecdh) in crypto_ecdh_init()
2068 ecdh->ec = crypto_ec_init(group); in crypto_ecdh_init()
2069 if (!ecdh->ec) in crypto_ecdh_init()
2072 ec_params = EC_KEY_new_by_curve_name(ecdh->ec->nid); in crypto_ecdh_init()
2097 if (EVP_PKEY_keygen(kctx, &ecdh->pkey) != 1) { in crypto_ecdh_init()
2108 return ecdh; in crypto_ecdh_init()
2110 crypto_ecdh_deinit(ecdh); in crypto_ecdh_init()
2118 struct crypto_ecdh *ecdh; crypto_ecdh_init2() local
2142 crypto_ecdh_get_pubkey(struct crypto_ecdh *ecdh, int inc_y) crypto_ecdh_get_pubkey() argument
2202 crypto_ecdh_set_peerkey(struct crypto_ecdh *ecdh, int inc_y, const u8 *key, size_t len) crypto_ecdh_set_peerkey() argument
2297 crypto_ecdh_deinit(struct crypto_ecdh *ecdh) crypto_ecdh_deinit() argument
2307 crypto_ecdh_prime_len(struct crypto_ecdh *ecdh) crypto_ecdh_prime_len() argument
[all...]
H A Dcrypto.h987 * @ecdh: ECDH context from crypto_ecdh_init() or crypto_ecdh_init2()
992 struct wpabuf * crypto_ecdh_get_pubkey(struct crypto_ecdh *ecdh, int inc_y);
996 * @ecdh: ECDH context from crypto_ecdh_init() or crypto_ecdh_init2()
1003 struct wpabuf * crypto_ecdh_set_peerkey(struct crypto_ecdh *ecdh, int inc_y,
1008 * @ecdh: ECDH context from crypto_ecdh_init() or crypto_ecdh_init2()
1010 void crypto_ecdh_deinit(struct crypto_ecdh *ecdh);
1017 size_t crypto_ecdh_prime_len(struct crypto_ecdh *ecdh);
/third_party/mbedtls/include/mbedtls/
H A Ddebug.h55 #define MBEDTLS_SSL_DEBUG_ECDH(level, ecdh, attr) \
56 mbedtls_debug_printf_ecdh(ssl, level, __FILE__, __LINE__, ecdh, attr)
67 #define MBEDTLS_SSL_DEBUG_ECDH(level, ecdh, attr) do { } while (0)
/third_party/mbedtls/library/
H A Dpsa_crypto_ecp.c24 #include <mbedtls/ecdh.h>
544 mbedtls_ecdh_context ecdh; in mbedtls_psa_key_agreement_ecdh() local
547 mbedtls_ecdh_init(&ecdh); in mbedtls_psa_key_agreement_ecdh()
560 mbedtls_ecdh_get_params(&ecdh, their_key, MBEDTLS_ECDH_THEIRS)); in mbedtls_psa_key_agreement_ecdh()
565 mbedtls_ecdh_get_params(&ecdh, ecp, MBEDTLS_ECDH_OURS)); in mbedtls_psa_key_agreement_ecdh()
571 mbedtls_ecdh_calc_secret(&ecdh, in mbedtls_psa_key_agreement_ecdh()
586 mbedtls_ecdh_free(&ecdh); in mbedtls_psa_key_agreement_ecdh()
H A Ddebug.c420 const mbedtls_ecdh_context *ecdh, in mbedtls_debug_printf_ecdh_internal()
424 const mbedtls_ecdh_context *ctx = ecdh; in mbedtls_debug_printf_ecdh_internal()
426 const mbedtls_ecdh_context_mbed *ctx = &ecdh->ctx.mbed_ecdh; in mbedtls_debug_printf_ecdh_internal()
449 const mbedtls_ecdh_context *ecdh, in mbedtls_debug_printf_ecdh()
453 mbedtls_debug_printf_ecdh_internal(ssl, level, file, line, ecdh, attr); in mbedtls_debug_printf_ecdh()
455 switch (ecdh->var) { in mbedtls_debug_printf_ecdh()
457 mbedtls_debug_printf_ecdh_internal(ssl, level, file, line, ecdh, in mbedtls_debug_printf_ecdh()
417 mbedtls_debug_printf_ecdh_internal(const mbedtls_ssl_context *ssl, int level, const char *file, int line, const mbedtls_ecdh_context *ecdh, mbedtls_debug_ecdh_attr attr) mbedtls_debug_printf_ecdh_internal() argument
447 mbedtls_debug_printf_ecdh(const mbedtls_ssl_context *ssl, int level, const char *file, int line, const mbedtls_ecdh_context *ecdh, mbedtls_debug_ecdh_attr attr) mbedtls_debug_printf_ecdh() argument
H A Ddebug_internal.h159 * \param ecdh the ECDH context
167 const mbedtls_ecdh_context *ecdh,
/third_party/nghttp2/examples/
H A Dlibevent-server.c162 EC_KEY *ecdh; in create_ssl_ctx() local
163 ecdh = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1); in create_ssl_ctx()
164 if (!ecdh) { in create_ssl_ctx()
168 SSL_CTX_set_tmp_ecdh(ssl_ctx, ecdh); in create_ssl_ctx()
169 EC_KEY_free(ecdh); in create_ssl_ctx()
/third_party/libwebsockets/lib/tls/openssl/
H A Dopenssl-server.c165 EC_KEY *ecdh, *EC_key = NULL; local
426 ecdh = EC_KEY_new_by_curve_name(ecdh_nid);
427 if (NULL == ecdh) {
431 SSL_CTX_set_tmp_ecdh(vhost->tls.ssl_ctx, ecdh);
432 EC_KEY_free(ecdh);
/third_party/openssl/ohos_lite/crypto/ec/
H A Dec_local.h181 const EC_POINT *pub_key, const EC_KEY *ecdh);
615 const EC_POINT *pub_key, const EC_KEY *ecdh);
635 const EC_POINT *pub_key, const EC_KEY *ecdh);
637 const EC_POINT *pub_key, const EC_KEY *ecdh);
/third_party/libwebsockets/test-apps/android/app/src/main/jni/
H A DNativeLibs.mk159 TARGET_X86_OPENSSL_CONFIG := no-asm no-shared no-idea no-mdc2 no-rc5 no-zlib no-zlib-dynamic enable-tlsext no-ssl2 no-ssl3 enable-ec enable-ecdh enable-ecp
162 TARGET_X86_64_OPENSSL_CONFIG := no-asm no-shared no-idea no-mdc2 no-rc5 no-zlib no-zlib-dynamic enable-tlsext no-ssl2 no-ssl3 enable-ec enable-ecdh enable-ecp enable-ec_nistp_64_gcc_128
165 TARGET_ARM_OPENSSL_CONFIG := no-shared no-idea no-mdc2 no-rc5 no-zlib no-zlib-dynamic enable-tlsext no-ssl2 no-ssl3 enable-ec enable-ecdh enable-ecp
168 TARGET_ARM_V7A_OPENSSL_CONFIG := no-shared no-idea no-mdc2 no-rc5 no-zlib no-zlib-dynamic enable-tlsext no-ssl2 no-ssl3 enable-ec enable-ecdh enable-ecp
171 TARGET_ARM_V7A_HARD_OPENSSL_CONFIG := no-shared no-idea no-mdc2 no-rc5 no-zlib no-zlib-dynamic enable-tlsext no-ssl2 no-ssl3 enable-ec enable-ecdh enable-ecp
174 TARGET_ARM64_V8A_OPENSSL_CONFIG := no-shared no-idea no-mdc2 no-rc5 no-zlib no-zlib-dynamic enable-tlsext no-ssl2 no-ssl3 enable-ec enable-ecdh enable-ecp
177 TARGET_MIPS_OPENSSL_CONFIG := no-shared no-idea no-mdc2 no-rc5 no-zlib no-zlib-dynamic enable-tlsext no-ssl2 no-ssl3 enable-ec enable-ecdh enable-ecp
180 TARGET_MIPS64_OPENSSL_CONFIG := no-shared no-idea no-mdc2 no-rc5 no-zlib no-zlib-dynamic enable-tlsext no-ssl2 no-ssl3 enable-ec enable-ecdh enable-ecp
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
H A Dpasn_supplicant.c690 pubkey = crypto_ecdh_get_pubkey(pasn->ecdh, 0); in wpas_pasn_build_auth_1()
691 pubkey = wpabuf_zeropad(pubkey, crypto_ecdh_prime_len(pasn->ecdh)); in wpas_pasn_build_auth_1()
865 crypto_ecdh_deinit(pasn->ecdh); in wpas_pasn_reset()
866 pasn->ecdh = NULL; in wpas_pasn_reset()
1071 pasn->ecdh = crypto_ecdh_init(group); in wpas_pasn_start()
1072 if (!pasn->ecdh) { in wpas_pasn_start()
1310 if (!wpa_s->pasn.ecdh) in wpas_pasn_auth_stop()
1500 secret = crypto_ecdh_set_peerkey(pasn->ecdh, inc_y, in wpas_pasn_auth_rx()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/
H A Ddpp_crypto.c484 struct crypto_ecdh *ecdh; in dpp_ecdh() local
490 ecdh = crypto_ecdh_init2(crypto_ec_key_group(own), own); in dpp_ecdh()
491 if (!ecdh) { in dpp_ecdh()
503 secret_buf = crypto_ecdh_set_peerkey(ecdh, 1, wpabuf_head(peer_pub), in dpp_ecdh()
522 crypto_ecdh_deinit(ecdh); in dpp_ecdh()
1992 pfs->ecdh = crypto_ecdh_init(pfs->curve->ike_group); in dpp_pfs_init()
1993 if (!pfs->ecdh) in dpp_pfs_init()
1996 pub = crypto_ecdh_get_pubkey(pfs->ecdh, 0); in dpp_pfs_init()
2030 pfs->secret = crypto_ecdh_set_peerkey(pfs->ecdh, 0, peer_ie + 2, in dpp_pfs_process()
2046 crypto_ecdh_deinit(pfs->ecdh); in dpp_pfs_free()
[all...]
/third_party/mbedtls/3rdparty/everest/library/
H A Dx25519.c26 #include <mbedtls/ecdh.h>
/third_party/libwebsockets/lib/tls/
H A Dprivate-lib-tls.h93 #include <openssl/ecdh.h>

Completed in 32 milliseconds

12345