Lines Matching full:cipher
129 * @cipher: Negotiated pairwise cipher
144 struct wpa_ptk *ptk, int akmp, int cipher)
170 ptk->tk_len = wpa_cipher_key_len(cipher);
519 int wpa_cipher_valid_group(int cipher)
521 return wpa_cipher_valid_pairwise(cipher) ||
522 cipher == WPA_CIPHER_GTK_NOT_USED;
527 int wpa_cipher_valid_mgmt_group(int cipher)
529 return cipher == WPA_CIPHER_AES_128_CMAC ||
530 cipher == WPA_CIPHER_BIP_GMAC_128 ||
531 cipher == WPA_CIPHER_BIP_GMAC_256 ||
532 cipher == WPA_CIPHER_BIP_CMAC_256;
604 "%s: invalid group cipher 0x%x (%08x)",
635 "pairwise cipher", __func__);
695 "%s: Unsupported management group cipher 0x%x (%08x)",
965 struct wpa_ptk *ptk, u8 *ptk_name, int akmp, int cipher)
990 ptk->tk_len = wpa_cipher_key_len(cipher);
1133 * wpa_cipher_txt - Convert cipher suite to a text string
1134 * @cipher: Cipher suite (WPA_CIPHER_* enum)
1135 * Returns: Pointer to a text string of the cipher suite name
1137 const char * wpa_cipher_txt(int cipher)
1139 switch (cipher) {
1310 /* Skip Version and Group Data Cipher Suite */
1312 /* Skip Pairwise Cipher Suite Count and List */
1386 int wpa_cipher_key_len(int cipher)
1388 switch (cipher) {
1407 int wpa_cipher_rsc_len(int cipher)
1409 switch (cipher) {
1422 int wpa_cipher_to_alg(int cipher)
1424 switch (cipher) {
1448 int wpa_cipher_valid_pairwise(int cipher)
1450 return cipher == WPA_CIPHER_CCMP_256 ||
1451 cipher == WPA_CIPHER_GCMP_256 ||
1452 cipher == WPA_CIPHER_CCMP ||
1453 cipher == WPA_CIPHER_GCMP ||
1454 cipher == WPA_CIPHER_TKIP;
1458 u32 wpa_cipher_to_suite(int proto, int cipher)
1460 if (cipher & WPA_CIPHER_CCMP_256)
1462 if (cipher & WPA_CIPHER_GCMP_256)
1464 if (cipher & WPA_CIPHER_CCMP)
1467 if (cipher & WPA_CIPHER_GCMP)
1469 if (cipher & WPA_CIPHER_TKIP)
1472 if (cipher & WPA_CIPHER_NONE)
1475 if (cipher & WPA_CIPHER_GTK_NOT_USED)
1477 if (cipher & WPA_CIPHER_AES_128_CMAC)
1479 if (cipher & WPA_CIPHER_BIP_GMAC_128)
1481 if (cipher & WPA_CIPHER_BIP_GMAC_256)
1483 if (cipher & WPA_CIPHER_BIP_CMAC_256)
1688 /* Select group cipher based on the enabled pairwise cipher suites */