3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 01:19:23 +01:00

crypto: Add new cipher definitions

This commit is contained in:
Denis Kenzior 2022-10-20 10:59:36 -05:00
parent f1a713a0fa
commit ec3085e932
2 changed files with 14 additions and 0 deletions

View File

@ -500,9 +500,17 @@ int crypto_cipher_key_len(enum crypto_cipher cipher)
case CRYPTO_CIPHER_TKIP:
return 32;
case CRYPTO_CIPHER_CCMP:
case CRYPTO_CIPHER_GCMP:
return 16;
case CRYPTO_CIPHER_CCMP_256:
case CRYPTO_CIPHER_GCMP_256:
return 32;
case CRYPTO_CIPHER_BIP_CMAC:
case CRYPTO_CIPHER_BIP_GMAC:
return 16;
case CRYPTO_CIPHER_BIP_CMAC_256:
case CRYPTO_CIPHER_BIP_GMAC_256:
return 32;
}
return 0;

View File

@ -31,6 +31,12 @@ enum crypto_cipher {
CRYPTO_CIPHER_TKIP = 0x000fac02,
CRYPTO_CIPHER_CCMP = 0x000fac04,
CRYPTO_CIPHER_BIP_CMAC = 0x000fac06,
CRYPTO_CIPHER_GCMP = 0x000fac08,
CRYPTO_CIPHER_GCMP_256 = 0x000fac09,
CRYPTO_CIPHER_CCMP_256 = 0x000fac0a,
CRYPTO_CIPHER_BIP_GMAC = 0x000fac0b,
CRYPTO_CIPHER_BIP_GMAC_256 = 0x000fac0c,
CRYPTO_CIPHER_BIP_CMAC_256 = 0x000fac0d,
};
enum crypto_akm {