Add definitions for new cipher suites from IEEE Std 802.11ac-2013
This adds initial parts for supporting the new GCMP-256, CCMP-256, BIP-GMAC-128, BIP-GMAC-256, and BIP-CMAC-256 cipher suites. Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
13b24a766f
commit
30675c3416
10 changed files with 273 additions and 11 deletions
|
@ -2678,6 +2678,24 @@ static int ctrl_iface_get_capability_pairwise(int res, char *strict,
|
|||
return len;
|
||||
}
|
||||
|
||||
if (capa->enc & WPA_DRIVER_CAPA_ENC_CCMP_256) {
|
||||
ret = os_snprintf(pos, end - pos, "%sCCMP-256",
|
||||
first ? "" : " ");
|
||||
if (ret < 0 || ret >= end - pos)
|
||||
return pos - buf;
|
||||
pos += ret;
|
||||
first = 0;
|
||||
}
|
||||
|
||||
if (capa->enc & WPA_DRIVER_CAPA_ENC_GCMP_256) {
|
||||
ret = os_snprintf(pos, end - pos, "%sGCMP-256",
|
||||
first ? "" : " ");
|
||||
if (ret < 0 || ret >= end - pos)
|
||||
return pos - buf;
|
||||
pos += ret;
|
||||
first = 0;
|
||||
}
|
||||
|
||||
if (capa->enc & WPA_DRIVER_CAPA_ENC_CCMP) {
|
||||
ret = os_snprintf(pos, end - pos, "%sCCMP", first ? "" : " ");
|
||||
if (ret < 0 || ret >= end - pos)
|
||||
|
@ -2734,6 +2752,24 @@ static int ctrl_iface_get_capability_group(int res, char *strict,
|
|||
return len;
|
||||
}
|
||||
|
||||
if (capa->enc & WPA_DRIVER_CAPA_ENC_CCMP_256) {
|
||||
ret = os_snprintf(pos, end - pos, "%sCCMP-256",
|
||||
first ? "" : " ");
|
||||
if (ret < 0 || ret >= end - pos)
|
||||
return pos - buf;
|
||||
pos += ret;
|
||||
first = 0;
|
||||
}
|
||||
|
||||
if (capa->enc & WPA_DRIVER_CAPA_ENC_GCMP_256) {
|
||||
ret = os_snprintf(pos, end - pos, "%sGCMP-256",
|
||||
first ? "" : " ");
|
||||
if (ret < 0 || ret >= end - pos)
|
||||
return pos - buf;
|
||||
pos += ret;
|
||||
first = 0;
|
||||
}
|
||||
|
||||
if (capa->enc & WPA_DRIVER_CAPA_ENC_CCMP) {
|
||||
ret = os_snprintf(pos, end - pos, "%sCCMP", first ? "" : " ");
|
||||
if (ret < 0 || ret >= end - pos)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue