Lines Matching refs:secret_len
112 static int dpp_hkdf_expand(size_t hash_len, const u8 *secret, size_t secret_len, in dpp_hkdf_expand() argument
116 return hmac_sha256_kdf(secret, secret_len, NULL, in dpp_hkdf_expand()
121 return hmac_sha384_kdf(secret, secret_len, NULL, in dpp_hkdf_expand()
125 return hmac_sha512_kdf(secret, secret_len, NULL, in dpp_hkdf_expand()
234 u8 *secret, size_t *secret_len) in dpp_ecdh() argument
236 return crypto_ecdh(own, peer, secret, secret_len); in dpp_ecdh()
926 len[num_elem] = auth->secret_len; in dpp_derive_ke()
1523 size_t secret_len; in dpp_auth_init() local
1592 auth->Mx, &secret_len) < 0) in dpp_auth_init()
1594 auth->secret_len = secret_len; in dpp_auth_init()
1597 auth->Mx, auth->secret_len); in dpp_auth_init()
1598 auth->Mx_len = auth->secret_len; in dpp_auth_init()
1600 if (dpp_derive_k1(auth->Mx, auth->secret_len, auth->k1, in dpp_auth_init()
2082 if (dpp_bn2bin_pad(lx, auth->Lx, auth->secret_len) < 0) in dpp_auth_derive_l_responder()
2084 wpa_hexdump_key(MSG_DEBUG, "DPP: L.x", auth->Lx, auth->secret_len); in dpp_auth_derive_l_responder()
2085 auth->Lx_len = auth->secret_len; in dpp_auth_derive_l_responder()
2128 if (dpp_bn2bin_pad(lx, auth->Lx, auth->secret_len) < 0) in dpp_auth_derive_l_initiator()
2130 wpa_hexdump_key(MSG_DEBUG, "DPP: L.x", auth->Lx, auth->secret_len); in dpp_auth_derive_l_initiator()
2131 auth->Lx_len = auth->secret_len; in dpp_auth_derive_l_initiator()
2146 size_t secret_len; in dpp_auth_build_resp_ok() local
2209 auth->Nx, &secret_len) < 0) in dpp_auth_build_resp_ok()
2213 auth->Nx, auth->secret_len); in dpp_auth_build_resp_ok()
2214 auth->Nx_len = auth->secret_len; in dpp_auth_build_resp_ok()
2216 if (dpp_derive_k2(auth->Nx, auth->secret_len, auth->k2, in dpp_auth_build_resp_ok()
2400 size_t secret_len; in dpp_auth_req_rx() local
2497 if (dpp_ecdh(own_bi->pubkey, pi, auth->Mx, &secret_len) < 0) in dpp_auth_req_rx()
2499 auth->secret_len = secret_len; in dpp_auth_req_rx()
2502 auth->Mx, auth->secret_len); in dpp_auth_req_rx()
2503 auth->Mx_len = auth->secret_len; in dpp_auth_req_rx()
2505 if (dpp_derive_k1(auth->Mx, auth->secret_len, auth->k1, in dpp_auth_req_rx()
2949 size_t secret_len; in dpp_auth_resp_rx() local
3080 if (dpp_ecdh(auth->own_protocol_key, pr, auth->Nx, &secret_len) < 0) { in dpp_auth_resp_rx()
3089 auth->Nx, auth->secret_len); in dpp_auth_resp_rx()
3090 auth->Nx_len = auth->secret_len; in dpp_auth_resp_rx()
3092 if (dpp_derive_k2(auth->Nx, auth->secret_len, auth->k2, in dpp_auth_resp_rx()