Home
last modified time | relevance | path

Searched refs:curve (Results 1 – 25 of 52) sorted by relevance

123

/netbsd/src/external/bsd/wpa/dist/src/common/
Ddpp_pkex.c37 const struct dpp_curve_params *curve = pkex->own_bi->curve; in dpp_pkex_build_exchange_req() local
43 Qi = dpp_pkex_derive_Qi(curve, v2 ? NULL : pkex->own_mac, pkex->code, in dpp_pkex_build_exchange_req()
59 pkex->x = dpp_gen_keypair(curve); in dpp_pkex_build_exchange_req()
62 pkex->x = dpp_gen_keypair(curve); in dpp_pkex_build_exchange_req()
86 attr_len += 4 + 2 * curve->prime_len; in dpp_pkex_build_exchange_req()
111 wpabuf_put_le16(msg, curve->ike_group); in dpp_pkex_build_exchange_req()
133 wpabuf_put_le16(msg, 2 * curve->prime_len); in dpp_pkex_build_exchange_req()
138 if (dpp_test_gen_invalid_key(msg, curve) < 0) in dpp_pkex_build_exchange_req()
144 Mx = wpabuf_put(msg, curve->prime_len); in dpp_pkex_build_exchange_req()
145 My = wpabuf_put(msg, curve->prime_len); in dpp_pkex_build_exchange_req()
[all …]
Ddpp_crypto.c99 static int dpp_hash_vector(const struct dpp_curve_params *curve, in dpp_hash_vector() argument
103 if (curve->hash_len == 32) in dpp_hash_vector()
105 if (curve->hash_len == 48) in dpp_hash_vector()
107 if (curve->hash_len == 64) in dpp_hash_vector()
270 struct crypto_ec_key * dpp_gen_keypair(const struct dpp_curve_params *curve) in dpp_gen_keypair() argument
276 key = crypto_ec_key_gen(curve->ike_group); in dpp_gen_keypair()
284 struct crypto_ec_key * dpp_set_keypair(const struct dpp_curve_params **curve, in dpp_set_keypair() argument
302 *curve = dpp_get_curve_ike_group(group); in dpp_set_keypair()
303 if (!*curve) { in dpp_set_keypair()
333 int dpp_keygen(struct dpp_bootstrap_info *bi, const char *curve, in dpp_keygen() argument
[all …]
Ddpp_reconfig.c138 4 + auth->curve->nonce_len; in dpp_reconfig_build_req()
175 wpabuf_put_le16(msg, auth->curve->nonce_len); in dpp_reconfig_build_req()
176 wpabuf_put_data(msg, auth->c_nonce, auth->curve->nonce_len); in dpp_reconfig_build_req()
188 const struct dpp_curve_params *curve) in dpp_configurator_build_own_connector() argument
198 conf->curve->name); in dpp_configurator_build_own_connector()
199 conf->connector_key = dpp_gen_keypair(curve); in dpp_configurator_build_own_connector()
204 dppcon = wpabuf_alloc(1000 + 2 * curve->prime_len * 4 / 3); in dpp_configurator_build_own_connector()
217 curve) < 0) { in dpp_configurator_build_own_connector()
244 const struct dpp_curve_params *curve; in dpp_reconfig_init() local
248 curve = dpp_get_curve_ike_group(group); in dpp_reconfig_init()
[all …]
Ddpp_auth.c205 if (aes_siv_encrypt(auth->k1, auth->curve->hash_len, clear, siv_len, in dpp_auth_build_req()
391 if (aes_siv_encrypt(siv_key, auth->curve->hash_len, clear, siv_len, in dpp_auth_build_resp()
443 nonce_len = auth->curve->nonce_len; in dpp_auth_build_resp_ok()
451 nonce_len = auth->curve->nonce_len; in dpp_auth_build_resp_ok()
470 auth->own_protocol_key = dpp_gen_keypair(auth->curve); in dpp_auth_build_resp_ok()
473 auth->own_protocol_key = dpp_gen_keypair(auth->curve); in dpp_auth_build_resp_ok()
492 auth->curve->hash_len) < 0) in dpp_auth_build_resp_ok()
506 WPA_PUT_LE16(&r_auth[2], auth->curve->hash_len); in dpp_auth_build_resp_ok()
512 r_auth[4 + auth->curve->hash_len / 2] ^= 0x01; in dpp_auth_build_resp_ok()
515 if (aes_siv_encrypt(auth->ke, auth->curve->hash_len, in dpp_auth_build_resp_ok()
[all …]
Ddpp.c797 nonce_len = auth->curve->nonce_len; in dpp_build_conf_req_attr()
817 clear_len += 4 + auth->curve->hash_len; in dpp_build_conf_req_attr()
871 wpabuf_put_le16(clear, auth->curve->hash_len); in dpp_build_conf_req_attr()
872 wpabuf_put_data(clear, auth_i, auth->curve->hash_len); in dpp_build_conf_req_attr()
891 if (aes_siv_encrypt(auth->ke, auth->curve->hash_len, in dpp_build_conf_req_attr()
1558 const struct dpp_curve_params *curve) in dpp_build_jwk() argument
1571 json_add_string(buf, "crv", curve->jwk_crv); in dpp_build_jwk()
1574 if (json_add_base64url(buf, "x", pos, curve->prime_len) < 0) in dpp_build_jwk()
1577 pos += curve->prime_len; in dpp_build_jwk()
1578 if (json_add_base64url(buf, "y", pos, curve->prime_len) < 0) in dpp_build_jwk()
[all …]
Ddpp_i.h52 const struct dpp_curve_params *curve);
106 int dpp_keygen(struct dpp_bootstrap_info *bi, const char *curve,
108 struct crypto_ec_key * dpp_gen_keypair(const struct dpp_curve_params *curve);
117 int dpp_derive_pmkid(const struct dpp_curve_params *curve,
121 dpp_pkex_derive_Qi(const struct dpp_curve_params *curve, const u8 *mac_init,
125 dpp_pkex_derive_Qr(const struct dpp_curve_params *curve, const u8 *mac_resp,
149 const struct dpp_curve_params *curve);
Ddpp.h183 const struct dpp_curve_params *curve; member
285 const struct dpp_curve_params *curve; member
411 const struct dpp_curve_params *curve; member
666 const char *curve, int ap);
701 const struct dpp_curve_params *curve; member
711 struct crypto_ec_key * dpp_set_keypair(const struct dpp_curve_params **curve,
Ddpp_backup.c112 static struct wpabuf * dpp_build_key_alg(const struct dpp_curve_params *curve) in dpp_build_key_alg() argument
117 switch (curve->ike_group) { in dpp_build_key_alg()
159 alg = dpp_build_key_alg(auth->conf->curve); in dpp_build_key_pkg()
279 key_len = auth->curve->hash_len; in dpp_build_pw_recipient_info()
471 hash_len = auth->conf->curve->hash_len; in dpp_build_enveloped_data()
1151 key_len = auth->curve->hash_len; in dpp_conf_resp_env_data()
/netbsd/src/crypto/external/bsd/openssl/dist/crypto/ec/
Dec_asn1.c71 X9_62_CURVE *curve; member
148 ASN1_SIMPLE(ECPARAMETERS, curve, X9_62_CURVE),
309 static int ec_asn1_group2curve(const EC_GROUP *group, X9_62_CURVE *curve) in ec_asn1_group2curve() argument
316 if (!group || !curve || !curve->a || !curve->b) in ec_asn1_group2curve()
348 if (!ASN1_OCTET_STRING_set(curve->a, a_buf, len) in ec_asn1_group2curve()
349 || !ASN1_OCTET_STRING_set(curve->b, b_buf, len)) { in ec_asn1_group2curve()
356 if (!curve->seed) in ec_asn1_group2curve()
357 if ((curve->seed = ASN1_BIT_STRING_new()) == NULL) { in ec_asn1_group2curve()
361 curve->seed->flags &= ~(ASN1_STRING_FLAG_BITS_LEFT | 0x07); in ec_asn1_group2curve()
362 curve->seed->flags |= ASN1_STRING_FLAG_BITS_LEFT; in ec_asn1_group2curve()
[all …]
Dec_curve.c3135 const ec_list_element curve) in ec_group_new_from_data() argument
3149 if (curve.data == NULL) in ec_group_new_from_data()
3151 curve.meth != NULL ? curve.meth() : NULL); in ec_group_new_from_data()
3158 data = curve.data; in ec_group_new_from_data()
3171 if (curve.meth != 0) { in ec_group_new_from_data()
3172 meth = curve.meth(); in ec_group_new_from_data()
3195 EC_GROUP_set_curve_name(group, curve.nid); in ec_group_new_from_data()
3241 ASN1_OBJECT *asn1obj = OBJ_nid2obj(curve.nid); in ec_group_new_from_data()
3284 const ec_list_element *curve; in EC_GROUP_new_by_curve_name_ex() local
3286 if ((curve = ec_curve_nid2curve(nid)) == NULL in EC_GROUP_new_by_curve_name_ex()
[all …]
/netbsd/src/external/bsd/wpa/dist/wpa_supplicant/examples/
Ddpp-qrcode.py75 def dpp_display(curve): argument
90 if curve:
91 cmd += " curve=" + curve
127 dpp_display(args.curve)
/netbsd/src/external/ibm-public/postfix/dist/src/tls/
Dtls_misc.c1004 char *curve = 0; in ec_curve_name() local
1010 curve = mymalloc(++namelen); in ec_curve_name()
1011 if (!EVP_PKEY_get_group_name(pkey, curve, namelen, 0)) { in ec_curve_name()
1012 myfree(curve); in ec_curve_name()
1013 curve = 0; in ec_curve_name()
1024 curve = mystrdup(tmp); in ec_curve_name()
1026 return (curve); in ec_curve_name()
1162 SIG_PROP(TLScontext, srvr, curve) = locl_sig_curve; in tls_get_signature_params()
1230 SIG_PROP(TLScontext, !srvr, curve) = peer_sig_curve; in tls_get_signature_params()
/netbsd/src/crypto/external/bsd/openssh/dist/
Dssh-ecdsa.c229 char *curve = NULL; in ssh_ecdsa_deserialize_public() local
235 if ((r = sshbuf_get_cstring(b, &curve, NULL)) != 0) in ssh_ecdsa_deserialize_public()
237 if (key->ecdsa_nid != sshkey_curve_name_to_nid(curve)) { in ssh_ecdsa_deserialize_public()
273 free(curve); in ssh_ecdsa_deserialize_public()
DPROTOCOL.u2f67 string curve name
74 string curve name
101 string curve name
/netbsd/src/crypto/external/bsd/openssl/dist/ssl/
Dt1_lib.c1411 int tls_check_sigalg_curve(const SSL *s, int curve) in tls_check_sigalg_curve() argument
1430 && lu->curve != NID_undef in tls_check_sigalg_curve()
1431 && curve == lu->curve) in tls_check_sigalg_curve()
1540 int curve = ssl_get_EC_curve_nid(pkey); in tls12_check_peer_sigalg() local
1542 if (lu->curve != NID_undef && curve != lu->curve) { in tls12_check_peer_sigalg()
3187 int curve = -1; in find_sig_alg() local
3211 if (curve == -1) in find_sig_alg()
3212 curve = ssl_get_EC_curve_nid(tmppkey); in find_sig_alg()
3213 if (lu->curve != NID_undef && curve != lu->curve) in find_sig_alg()
3267 int curve = -1; in tls_choose_sigalg() local
[all …]
Dt1_trce.c1194 int curve; in ssl_print_server_keyex() local
1197 curve = (msg[1] << 8) | msg[2]; in ssl_print_server_keyex()
1199 ssl_trace_str(curve, ssl_groups_tbl), curve); in ssl_print_server_keyex()
/netbsd/src/external/bsd/file/dist/magic/magdir/
Dgimp73 0 string #\040GIMP\040Curves\040File GIMP curve file
75 !:mime text/x-gimp-curve
/netbsd/src/external/bsd/wpa/dist/src/ap/
Ddpp_hostapd.c160 if (peer_bi->curve != own_bi->curve) { in hostapd_dpp_nfc_handover_sel()
328 if (peer_bi->curve != own_bi->curve) { in hostapd_dpp_pkex_done()
331 peer_bi->curve->name, own_bi->curve->name); in hostapd_dpp_pkex_done()
897 if (peer_bi->curve != own_bi->curve) { in hostapd_dpp_auth_init()
900 peer_bi->curve->name, own_bi->curve->name); in hostapd_dpp_auth_init()
2441 ifaces->dpp_pb_bi->curve->nonce_len, in hostapd_dpp_pb_pkex_init()
2668 ifaces->dpp_pb_bi->curve->nonce_len)) { in hostapd_dpp_rx_pb_presence_announcement()
2688 ifaces->dpp_pb_bi->curve->nonce_len); in hostapd_dpp_rx_pb_presence_announcement()
2791 const struct dpp_curve_params *curve; in hostapd_dpp_rx_priv_peer_intro_update() local
2838 own_key = dpp_set_keypair(&curve, in hostapd_dpp_rx_priv_peer_intro_update()
[all …]
/netbsd/src/crypto/external/bsd/openssl/dist/doc/HOWTO/
Dkeys.txt70 The prime256v1, or NIST P-256, which stands for 'X9.62/SECG curve over
71 a 256-bit prime field', is the name of an elliptic curve which generates the
/netbsd/src/crypto/external/bsd/openssl/dist/crypto/objects/
Dobjects.txt102 # SECG curve OIDs from "SEC 2: Recommended Elliptic Curve Domain Parameters"
114 # NOTE: the curve secp192r1 is the same as prime192v1 defined above
119 # NOTE: the curve secp256r1 is the same as prime256v1 defined above
143 # WAP/TLS curve OIDs (http://www.wapforum.org/)
1588 # RFC 5639 curve OIDs (see http://www.ietf.org/rfc/rfc5639.txt)
1733 dstu4145le 2 0 : uacurve0 : DSTU curve 0
1734 dstu4145le 2 1 : uacurve1 : DSTU curve 1
1735 dstu4145le 2 2 : uacurve2 : DSTU curve 2
1736 dstu4145le 2 3 : uacurve3 : DSTU curve 3
1737 dstu4145le 2 4 : uacurve4 : DSTU curve 4
[all …]
/netbsd/src/tests/crypto/libcrypto/ecdh/
Decdhtest.c473 # define test_ecdh_kat(bio, curve, bits) \ argument
474 ecdh_kat(bio, curve, NID_brainpoolP##bits##r1, \
/netbsd/src/external/bsd/wpa/dist/wpa_supplicant/
Ddpp_supplicant.c183 if (peer_bi->curve != own_bi->curve) { in wpas_dpp_nfc_handover_sel()
898 if (peer_bi->curve != own_bi->curve) { in wpas_dpp_auth_init()
901 peer_bi->curve->name, own_bi->curve->name); in wpas_dpp_auth_init()
2982 if (peer_bi->curve != own_bi->curve) { in wpas_dpp_pkex_done()
2985 peer_bi->curve->name, own_bi->curve->name); in wpas_dpp_pkex_done()
3488 wpa_s->dpp_pb_bi->curve->nonce_len, in wpas_dpp_pb_pkex_init()
3625 wpa_s->dpp_pb_bi->curve->nonce_len)) { in wpas_dpp_rx_pb_presence_announcement()
3645 wpa_s->dpp_pb_bi->curve->nonce_len); in wpas_dpp_rx_pb_presence_announcement()
4391 char *curve = NULL; in wpas_dpp_configurator_sign() local
4397 curve = get_param(cmd, " curve="); in wpas_dpp_configurator_sign()
[all …]
/netbsd/src/external/ibm-public/postfix/dist/
DRELEASE_NOTES-3.2162 [Feature 20161217] Postfix 3.2 enables elliptic curve negotiation
169 Postfix will skip curve names that aren't supported by the OpenSSL
/netbsd/src/external/mit/xorg/lib/libGLU/
DMakefile58 curve.cc \
/netbsd/src/crypto/external/bsd/openssl/dist/crypto/err/
Dopenssl.txt547 EC_R_CURVE_DOES_NOT_SUPPORT_ECDH:160:curve does not support ecdh
548 EC_R_CURVE_DOES_NOT_SUPPORT_ECDSA:170:curve does not support ecdsa
549 EC_R_CURVE_DOES_NOT_SUPPORT_SIGNING:159:curve does not support signing
566 EC_R_INVALID_CURVE:141:invalid curve
604 EC_R_POINT_IS_NOT_ON_CURVE:107:point is not on curve
615 EC_R_WRONG_CURVE_PARAMETERS:145:wrong curve parameters
1006 PROV_R_INVALID_CURVE:176:invalid curve
1238 SM2_R_INVALID_CURVE:108:invalid curve
1533 SSL_R_UNSUPPORTED_ELLIPTIC_CURVE:315:unsupported elliptic curve
1542 SSL_R_WRONG_CURVE:378:wrong curve

123