3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 04:32:37 +01:00

netdev: Add support for CCMP|GCMP-256

These are similar to CCMP/GCMP, just a different key size which is
already taken care of by calling crypto_cipher_key_len
This commit is contained in:
Denis Kenzior 2022-10-21 10:56:17 -05:00
parent 5998043bd2
commit b3c3b08785

View File

@ -1565,6 +1565,8 @@ static bool netdev_copy_tk(uint8_t *tk_buf, const uint8_t *tk,
switch (cipher) {
case CRYPTO_CIPHER_CCMP:
case CRYPTO_CIPHER_GCMP:
case CRYPTO_CIPHER_GCMP_256:
case CRYPTO_CIPHER_CCMP_256:
/*
* 802.11-2020 12.8.3 Mapping PTK to CCMP keys:
* "A STA shall use the temporal key as the CCMP key