Lines Matching refs:cipher
396 struct wpa_ptk *ptk, int akmp, int cipher, in wpa_pmk_to_ptk() argument
454 ptk->tk_len = wpa_cipher_key_len(cipher); in wpa_pmk_to_ptk()
459 cipher); in wpa_pmk_to_ptk()
669 u8 *ick, size_t *ick_len, int akmp, int cipher, in fils_pmk_to_ptk() argument
712 ptk->tk_len = wpa_cipher_key_len(cipher); in fils_pmk_to_ptk()
1438 bool pasn_use_sha384(int akmp, int cipher) in pasn_use_sha384() argument
1440 return (akmp == WPA_KEY_MGMT_PASN && (cipher == WPA_CIPHER_CCMP_256 || in pasn_use_sha384()
1441 cipher == WPA_CIPHER_GCMP_256)) || in pasn_use_sha384()
1464 struct wpa_ptk *ptk, int akmp, int cipher, in pasn_pmk_to_ptk() argument
1500 ptk->tk_len = wpa_cipher_key_len(cipher); in pasn_pmk_to_ptk()
1509 cipher); in pasn_pmk_to_ptk()
1517 if (pasn_use_sha384(akmp, cipher)) { in pasn_pmk_to_ptk()
1563 u8 pasn_mic_len(int akmp, int cipher) in pasn_mic_len() argument
1565 if (pasn_use_sha384(akmp, cipher)) in pasn_mic_len()
1579 int wpa_ltf_keyseed(struct wpa_ptk *ptk, int akmp, int cipher) in wpa_ltf_keyseed() argument
1596 if (pasn_use_sha384(akmp, cipher)) { in wpa_ltf_keyseed()
1648 int pasn_mic(const u8 *kck, int akmp, int cipher, in pasn_mic() argument
1689 if (pasn_use_sha384(akmp, cipher)) { in pasn_mic()
1724 int pasn_auth_frame_hash(int akmp, int cipher, const u8 *data, size_t len, in pasn_auth_frame_hash() argument
1727 if (pasn_use_sha384(akmp, cipher)) { in pasn_auth_frame_hash()
1831 int wpa_cipher_valid_group(int cipher) in wpa_cipher_valid_group() argument
1833 return wpa_cipher_valid_pairwise(cipher) || in wpa_cipher_valid_group()
1834 cipher == WPA_CIPHER_GTK_NOT_USED; in wpa_cipher_valid_group()
1838 int wpa_cipher_valid_mgmt_group(int cipher) in wpa_cipher_valid_mgmt_group() argument
1840 return cipher == WPA_CIPHER_GTK_NOT_USED || in wpa_cipher_valid_mgmt_group()
1841 cipher == WPA_CIPHER_AES_128_CMAC || in wpa_cipher_valid_mgmt_group()
1842 cipher == WPA_CIPHER_BIP_GMAC_128 || in wpa_cipher_valid_mgmt_group()
1843 cipher == WPA_CIPHER_BIP_GMAC_256 || in wpa_cipher_valid_mgmt_group()
1844 cipher == WPA_CIPHER_BIP_CMAC_256; in wpa_cipher_valid_mgmt_group()
2430 struct wpa_ptk *ptk, u8 *ptk_name, int akmp, int cipher, in wpa_pmk_r1_to_ptk() argument
2483 ptk->tk_len = wpa_cipher_key_len(cipher); in wpa_pmk_r1_to_ptk()
2705 const char * wpa_cipher_txt(int cipher) in wpa_cipher_txt() argument
2707 switch (cipher) { in wpa_cipher_txt()
3006 int wpa_cipher_key_len(int cipher) in wpa_cipher_key_len() argument
3008 switch (cipher) { in wpa_cipher_key_len()
3027 int wpa_cipher_rsc_len(int cipher) in wpa_cipher_rsc_len() argument
3029 switch (cipher) { in wpa_cipher_rsc_len()
3042 enum wpa_alg wpa_cipher_to_alg(int cipher) in wpa_cipher_to_alg() argument
3044 switch (cipher) { in wpa_cipher_to_alg()
3069 int wpa_cipher_valid_pairwise(int cipher) in wpa_cipher_valid_pairwise() argument
3072 return cipher == WPA_CIPHER_CCMP_256 || in wpa_cipher_valid_pairwise()
3073 cipher == WPA_CIPHER_GCMP_256 || in wpa_cipher_valid_pairwise()
3074 cipher == WPA_CIPHER_CCMP || in wpa_cipher_valid_pairwise()
3075 cipher == WPA_CIPHER_GCMP; in wpa_cipher_valid_pairwise()
3077 return cipher == WPA_CIPHER_CCMP_256 || in wpa_cipher_valid_pairwise()
3078 cipher == WPA_CIPHER_GCMP_256 || in wpa_cipher_valid_pairwise()
3079 cipher == WPA_CIPHER_CCMP || in wpa_cipher_valid_pairwise()
3080 cipher == WPA_CIPHER_GCMP || in wpa_cipher_valid_pairwise()
3081 cipher == WPA_CIPHER_TKIP; in wpa_cipher_valid_pairwise()
3086 u32 wpa_cipher_to_suite(int proto, int cipher) in wpa_cipher_to_suite() argument
3088 if (cipher & WPA_CIPHER_CCMP_256) in wpa_cipher_to_suite()
3090 if (cipher & WPA_CIPHER_GCMP_256) in wpa_cipher_to_suite()
3092 if (cipher & WPA_CIPHER_CCMP) in wpa_cipher_to_suite()
3095 if (cipher & WPA_CIPHER_GCMP) in wpa_cipher_to_suite()
3097 if (cipher & WPA_CIPHER_TKIP) in wpa_cipher_to_suite()
3100 if (cipher & WPA_CIPHER_NONE) in wpa_cipher_to_suite()
3103 if (cipher & WPA_CIPHER_GTK_NOT_USED) in wpa_cipher_to_suite()
3105 if (cipher & WPA_CIPHER_AES_128_CMAC) in wpa_cipher_to_suite()
3107 if (cipher & WPA_CIPHER_BIP_GMAC_128) in wpa_cipher_to_suite()
3109 if (cipher & WPA_CIPHER_BIP_GMAC_256) in wpa_cipher_to_suite()
3111 if (cipher & WPA_CIPHER_BIP_CMAC_256) in wpa_cipher_to_suite()
3883 int wpa_pasn_add_rsne(struct wpabuf *buf, const u8 *pmkid, int akmp, int cipher) in wpa_pasn_add_rsne() argument
3912 suite = wpa_cipher_to_suite(WPA_PROTO_RSN, cipher); in wpa_pasn_add_rsne()