Lines Matching refs:cipher
22 def check_cipher(dev, ap, cipher, group_cipher=None): argument
23 if cipher not in dev.get_capability("pairwise"):
24 raise HwsimSkip("Cipher %s not supported" % cipher)
31 "rsn_pairwise": cipher}
35 group_cipher = cipher
38 pairwise=cipher, group=group_cipher, scan_freq="2412")
42 def check_group_mgmt_cipher(dev, ap, cipher, sta_req_cipher=None): argument
43 if cipher not in dev.get_capability("group_mgmt"):
44 raise HwsimSkip("Cipher %s not supported" % cipher)
51 "group_mgmt_cipher": cipher}
71 if cipher == "AES-128-CMAC":
74 group_mgmt = cipher
320 for cipher in ["CCMP", "GCMP", "CCMP-256", "GCMP-256"]:
321 if cipher not in dev[0].get_capability("pairwise"):
322 raise HwsimSkip("Cipher %s not supported" % cipher)
323 if cipher not in dev[0].get_capability("group"):
324 raise HwsimSkip("Group cipher %s not supported" % cipher)
334 for cipher in ["CCMP", "GCMP", "CCMP-256", "GCMP-256"]:
336 pairwise=cipher, group="CCMP", scan_freq="2412")
339 if dev[0].get_status_field("pairwise_cipher") != cipher:
492 for cipher in ["AES-128-CMAC", "BIP-GMAC-256"]:
493 if cipher not in group_mgmt:
494 raise HwsimSkip("Cipher %s not supported" % cipher)
585 def run_ap_cipher_replay_protection_ap(dev, apdev, cipher): argument
590 "rsn_pairwise": cipher}
600 pairwise=cipher, group=cipher, scan_freq="2412")
603 if cipher != "TKIP":
611 if cipher != "TKIP":
622 if cipher != "TKIP":
665 def run_ap_cipher_replay_protection_sta(dev, apdev, cipher, keytype=KT_PTK): argument
670 "rsn_pairwise": cipher}
685 pairwise=cipher, group=cipher, scan_freq="2412")
691 if cipher != "TKIP":
699 if cipher != "TKIP":
728 if cipher != "TKIP":
1125 def run_ap_wpa2_gtk_initial_rsc(dev, apdev, cipher): argument
1126 if cipher not in dev[0].get_capability("pairwise") or \
1127 cipher not in dev[0].get_capability("group"):
1128 raise HwsimSkip("Cipher %s not supported" % cipher)
1131 params["rsn_pairwise"] = cipher
1132 params["group_cipher"] = cipher
1142 pairwise=cipher, group=cipher, scan_freq="2412")
1165 def run_ap_wpa2_igtk_initial_rsc(dev, apdev, cipher): argument
1166 if cipher not in dev[0].get_capability("group_mgmt"):
1167 raise HwsimSkip("Cipher %s not supported" % cipher)
1173 params["group_mgmt_cipher"] = cipher
1184 group_mgmt=cipher,