Lines Matching full:curve
138 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
197 "DPP: Sign own Configurator Connector for reconfiguration with curve %s", in dpp_configurator_build_own_connector()
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()
249 if (!curve) { in dpp_reconfig_init()
302 auth->curve = curve; in dpp_reconfig_init()
307 if (dpp_configurator_build_own_connector(conf, curve) < 0) in dpp_reconfig_init()
310 if (random_get_bytes(auth->c_nonce, auth->curve->nonce_len)) { in dpp_reconfig_init()
340 clear_len = 4 + auth->curve->nonce_len + in dpp_reconfig_build_resp()
348 wpabuf_put_le16(clear, auth->curve->nonce_len); in dpp_reconfig_build_resp()
349 wpabuf_put_data(clear, auth->c_nonce, auth->curve->nonce_len); in dpp_reconfig_build_resp()
362 4 + auth->curve->nonce_len + in dpp_reconfig_build_resp()
388 wpabuf_put_le16(msg, auth->curve->nonce_len); in dpp_reconfig_build_resp()
389 wpabuf_put_data(msg, auth->e_nonce, auth->curve->nonce_len); in dpp_reconfig_build_resp()
414 if (aes_siv_encrypt(auth->ke, auth->curve->hash_len, in dpp_reconfig_build_resp()
541 if (c_nonce_len != auth->curve->nonce_len) { in dpp_reconfig_auth_req_rx()
543 "DPP: Unexpected C-nonce length %u (curve nonce len %zu)", in dpp_reconfig_auth_req_rx()
544 c_nonce_len, auth->curve->nonce_len); in dpp_reconfig_auth_req_rx()
583 clear_len = 4 + 1 + 4 + 1 + 2 * (4 + auth->curve->nonce_len) + in dpp_reconfig_build_conf()
601 wpabuf_put_le16(clear, auth->curve->nonce_len); in dpp_reconfig_build_conf()
602 wpabuf_put_data(clear, auth->c_nonce, auth->curve->nonce_len); in dpp_reconfig_build_conf()
606 wpabuf_put_le16(clear, auth->curve->nonce_len); in dpp_reconfig_build_conf()
607 wpabuf_put_data(clear, auth->e_nonce, auth->curve->nonce_len); in dpp_reconfig_build_conf()
644 if (aes_siv_encrypt(auth->ke, auth->curve->hash_len, in dpp_reconfig_build_conf()
730 if (!e_nonce || e_nonce_len != auth->curve->nonce_len) { in dpp_reconfig_auth_resp_rx()
791 if (aes_siv_decrypt(auth->ke, auth->curve->hash_len, in dpp_reconfig_auth_resp_rx()
807 if (!c_nonce || c_nonce_len != auth->curve->nonce_len || in dpp_reconfig_auth_resp_rx()
903 if (aes_siv_decrypt(auth->ke, auth->curve->hash_len, in dpp_reconfig_auth_conf_rx()
936 if (!c_nonce || c_nonce_len != auth->curve->nonce_len || in dpp_reconfig_auth_conf_rx()
945 if (!e_nonce || e_nonce_len != auth->curve->nonce_len || in dpp_reconfig_auth_conf_rx()