mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 13:02:44 +01:00
ie: Add AKMs from 802.11-2016
This commit is contained in:
parent
c4a2654703
commit
46a797043a
@ -41,6 +41,10 @@ enum crypto_akm {
|
||||
CRYPTO_AKM_TDLS = 0x000fac07,
|
||||
CRYPTO_AKM_SAE_SHA256 = 0x000fac08,
|
||||
CRYPTO_AKM_FT_OVER_SAE_SHA256 = 0x000fac09,
|
||||
CRYPTO_AKM_AP_PEER_KEY_SHA256 = 0x000fac0a,
|
||||
CRYPTO_AKM_8021X_SUITE_B_SHA256 = 0x000fac0b,
|
||||
CRYPTO_AKM_8021X_SUITE_B_SHA384 = 0x000fac0c,
|
||||
CRYPTO_AKM_FT_OVER_8021X_SHA384 = 0x000fac0d,
|
||||
};
|
||||
|
||||
/* Min & Max reported by crypto_cipher_key_len when ignoring WEP */
|
||||
|
20
src/ie.c
20
src/ie.c
@ -447,6 +447,18 @@ static int ie_parse_akm_suite(const uint8_t *data,
|
||||
case 9:
|
||||
*out = IE_RSN_AKM_SUITE_FT_OVER_SAE_SHA256;
|
||||
return 0;
|
||||
case 10:
|
||||
*out = IE_RSN_AKM_SUITE_AP_PEER_KEY_SHA256;
|
||||
return 0;
|
||||
case 11:
|
||||
*out = IE_RSN_AKM_SUITE_8021X_SUITE_B_SHA256;
|
||||
return 0;
|
||||
case 12:
|
||||
*out = IE_RSN_AKM_SUITE_8021X_SUITE_B_SHA384;
|
||||
return 0;
|
||||
case 13:
|
||||
*out = IE_RSN_AKM_SUITE_FT_OVER_8021X_SHA384;
|
||||
return 0;
|
||||
default:
|
||||
return -ENOENT;
|
||||
}
|
||||
@ -779,6 +791,14 @@ static bool ie_build_rsn_akm_suite(uint8_t *data, enum ie_rsn_akm_suite suite)
|
||||
RETURN_AKM(data, ieee_oui, 8);
|
||||
case IE_RSN_AKM_SUITE_FT_OVER_SAE_SHA256:
|
||||
RETURN_AKM(data, ieee_oui, 9);
|
||||
case IE_RSN_AKM_SUITE_AP_PEER_KEY_SHA256:
|
||||
RETURN_AKM(data, ieee_oui, 10);
|
||||
case IE_RSN_AKM_SUITE_8021X_SUITE_B_SHA256:
|
||||
RETURN_AKM(data, ieee_oui, 11);
|
||||
case IE_RSN_AKM_SUITE_8021X_SUITE_B_SHA384:
|
||||
RETURN_AKM(data, ieee_oui, 12);
|
||||
case IE_RSN_AKM_SUITE_FT_OVER_8021X_SHA384:
|
||||
RETURN_AKM(data, ieee_oui, 13);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
4
src/ie.h
4
src/ie.h
@ -246,6 +246,10 @@ enum ie_rsn_akm_suite {
|
||||
IE_RSN_AKM_SUITE_TDLS = 0x0040,
|
||||
IE_RSN_AKM_SUITE_SAE_SHA256 = 0x0080,
|
||||
IE_RSN_AKM_SUITE_FT_OVER_SAE_SHA256 = 0x0100,
|
||||
IE_RSN_AKM_SUITE_AP_PEER_KEY_SHA256 = 0x0200,
|
||||
IE_RSN_AKM_SUITE_8021X_SUITE_B_SHA256 = 0x0400,
|
||||
IE_RSN_AKM_SUITE_8021X_SUITE_B_SHA384 = 0x0800,
|
||||
IE_RSN_AKM_SUITE_FT_OVER_8021X_SHA384 = 0x1000,
|
||||
};
|
||||
|
||||
struct ie_tlv_iter {
|
||||
|
@ -2173,6 +2173,14 @@ static unsigned int ie_rsn_akm_suite_to_nl80211(enum ie_rsn_akm_suite akm)
|
||||
return CRYPTO_AKM_SAE_SHA256;
|
||||
case IE_RSN_AKM_SUITE_FT_OVER_SAE_SHA256:
|
||||
return CRYPTO_AKM_FT_OVER_SAE_SHA256;
|
||||
case IE_RSN_AKM_SUITE_AP_PEER_KEY_SHA256:
|
||||
return CRYPTO_AKM_AP_PEER_KEY_SHA256;
|
||||
case IE_RSN_AKM_SUITE_8021X_SUITE_B_SHA256:
|
||||
return CRYPTO_AKM_8021X_SUITE_B_SHA256;
|
||||
case IE_RSN_AKM_SUITE_8021X_SUITE_B_SHA384:
|
||||
return CRYPTO_AKM_8021X_SUITE_B_SHA384;
|
||||
case IE_RSN_AKM_SUITE_FT_OVER_8021X_SHA384:
|
||||
return CRYPTO_AKM_FT_OVER_8021X_SHA384;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user