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()
607 const struct ikev2_prf_alg *prf; in ikev2_process_auth_secret() local
616 if (ikev2_derive_auth_data(data->proposal.prf, data->r_sign_msg, in ikev2_process_auth_secret()
630 prf = ikev2_get_prf(data->proposal.prf); in ikev2_process_auth_secret()
631 if (prf == NULL) in ikev2_process_auth_secret()
634 if (auth_len != prf->hash_len || in ikev2_process_auth_secret()
640 auth_data, prf->hash_len); in ikev2_process_auth_secret()
940 WPA_PUT_BE16(t->transform_id, data->proposal.prf); in ikev2_build_sai()
1050 const struct ikev2_prf_alg *prf; in ikev2_build_auth() local
1054 prf = ikev2_get_prf(data->proposal.prf); in ikev2_build_auth()
1055 if (prf == NULL) in ikev2_build_auth()
1066 if (ikev2_derive_auth_data(data->proposal.prf, data->i_sign_msg, in ikev2_build_auth()
1072 wpabuf_put(msg, prf->hash_len)) < 0) { in ikev2_build_auth()