Lines Matching refs:tls_cs
73 static int eap_teap_tls_prf(u16 tls_cs, const u8 *secret, size_t secret_len, in eap_teap_tls_prf() argument
78 if (tls_cipher_suite_mac_sha384(tls_cs)) in eap_teap_tls_prf()
86 int eap_teap_derive_eap_msk(u16 tls_cs, const u8 *simck, u8 *msk) in eap_teap_derive_eap_msk() argument
93 if (eap_teap_tls_prf(tls_cs, simck, EAP_TEAP_SIMCK_LEN, in eap_teap_derive_eap_msk()
103 int eap_teap_derive_eap_emsk(u16 tls_cs, const u8 *simck, u8 *emsk) in eap_teap_derive_eap_emsk() argument
111 if (eap_teap_tls_prf(tls_cs, simck, EAP_TEAP_SIMCK_LEN, in eap_teap_derive_eap_emsk()
121 int eap_teap_derive_cmk_basic_pw_auth(u16 tls_cs, const u8 *s_imck_msk, u8 *cmk) in eap_teap_derive_cmk_basic_pw_auth() argument
132 res = eap_teap_tls_prf(tls_cs, s_imck_msk, EAP_TEAP_SIMCK_LEN, in eap_teap_derive_cmk_basic_pw_auth()
145 int eap_teap_derive_imck(u16 tls_cs, in eap_teap_derive_imck() argument
180 if (eap_teap_tls_prf(tls_cs, emsk, emsk_len, in eap_teap_derive_imck()
188 res = eap_teap_tls_prf(tls_cs, in eap_teap_derive_imck()
219 res = eap_teap_tls_prf(tls_cs, prev_s_imck_msk, EAP_TEAP_SIMCK_LEN, in eap_teap_derive_imck()
317 static int eap_teap_tls_mac(u16 tls_cs, const u8 *cmk, size_t cmk_len, in eap_teap_tls_mac() argument
327 if (tls_cipher_suite_mac_sha1(tls_cs)) { in eap_teap_tls_mac()
330 } else if (tls_cipher_suite_mac_sha256(tls_cs)) { in eap_teap_tls_mac()
333 } else if (tls_cipher_suite_mac_sha384(tls_cs)) { in eap_teap_tls_mac()
339 tls_cs); in eap_teap_tls_mac()
356 int eap_teap_compound_mac(u16 tls_cs, const struct teap_tlv_crypto_binding *cb, in eap_teap_compound_mac() argument
417 res = eap_teap_tls_mac(tls_cs, cmk, EAP_TEAP_CMK_LEN, in eap_teap_compound_mac()