Lines Matching refs:prf
41 const struct ikev2_prf_alg *prf; in ikev2_derive_keys() local
50 prf = ikev2_get_prf(data->proposal.prf); in ikev2_derive_keys()
52 if (integ == NULL || prf == NULL || encr == NULL) { in ikev2_derive_keys()
94 if (ikev2_prf_hash(prf->id, buf, data->i_nonce_len + data->r_nonce_len, in ikev2_derive_keys()
111 skeyseed, prf->hash_len); in ikev2_derive_keys()
113 ret = ikev2_derive_sk_keys(prf, integ, encr, skeyseed, buf, buf_len, in ikev2_derive_keys()
190 transform_id == data->proposal.prf) in ikev2_parse_transform()
191 prop->prf = transform_id; in ikev2_parse_transform()
326 prop.prf = -1; in ikev2_process_sar1()
333 if (!found && prop.integ != -1 && prop.prf != -1 && in ikev2_process_sar1()
356 data->proposal.encr, data->proposal.prf, in ikev2_process_sar1()
608 const struct ikev2_prf_alg *prf; in ikev2_process_auth_secret() local
617 if (ikev2_derive_auth_data(data->proposal.prf, data->r_sign_msg, in ikev2_process_auth_secret()
631 prf = ikev2_get_prf(data->proposal.prf); in ikev2_process_auth_secret()
632 if (prf == NULL) in ikev2_process_auth_secret()
635 if (auth_len != prf->hash_len || in ikev2_process_auth_secret()
641 auth_data, prf->hash_len); in ikev2_process_auth_secret()
941 WPA_PUT_BE16(t->transform_id, data->proposal.prf); in ikev2_build_sai()
1051 const struct ikev2_prf_alg *prf; in ikev2_build_auth() local
1055 prf = ikev2_get_prf(data->proposal.prf); in ikev2_build_auth()
1056 if (prf == NULL) in ikev2_build_auth()
1067 if (ikev2_derive_auth_data(data->proposal.prf, data->i_sign_msg, in ikev2_build_auth()
1073 wpabuf_put(msg, prf->hash_len)) < 0) { in ikev2_build_auth()