Lines Matching refs:prf
37 const struct ikev2_prf_alg *prf; in ikev2_derive_keys() local
46 prf = ikev2_get_prf(data->proposal.prf); in ikev2_derive_keys()
48 if (integ == NULL || prf == NULL || encr == NULL) { in ikev2_derive_keys()
90 if (ikev2_prf_hash(prf->id, buf, data->i_nonce_len + data->r_nonce_len, in ikev2_derive_keys()
107 skeyseed, prf->hash_len); in ikev2_derive_keys()
109 ret = ikev2_derive_sk_keys(prf, integ, encr, skeyseed, buf, buf_len, in ikev2_derive_keys()
184 prop->prf = transform_id; in ikev2_parse_transform()
318 prop.prf = -1; in ikev2_process_sai1()
325 if (!found && prop.integ != -1 && prop.prf != -1 && in ikev2_process_sai1()
347 data->proposal.encr, data->proposal.prf, in ikev2_process_sai1()
539 const struct ikev2_prf_alg *prf; in ikev2_process_auth_secret() local
548 if (ikev2_derive_auth_data(data->proposal.prf, data->i_sign_msg, in ikev2_process_auth_secret()
562 prf = ikev2_get_prf(data->proposal.prf); in ikev2_process_auth_secret()
563 if (prf == NULL) in ikev2_process_auth_secret()
566 if (auth_len != prf->hash_len || in ikev2_process_auth_secret()
572 auth_data, prf->hash_len); in ikev2_process_auth_secret()
875 WPA_PUT_BE16(t->transform_id, data->proposal.prf); in ikev2_build_sar1()
984 const struct ikev2_prf_alg *prf; in ikev2_build_auth() local
988 prf = ikev2_get_prf(data->proposal.prf); in ikev2_build_auth()
989 if (prf == NULL) in ikev2_build_auth()
1000 if (ikev2_derive_auth_data(data->proposal.prf, data->r_sign_msg, in ikev2_build_auth()
1006 wpabuf_put(msg, prf->hash_len)) < 0) { in ikev2_build_auth()