This adds support for the GCM-AES-256 cipher suite as specified in IEEE 802.1AEbn-2011. The prepared cipher suite selection mechanism is used, with GCM-AES-128 being the default cipher suite as defined in the standard.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -18,12 +18,17 @@ · 17 unmodified lines | ||
| 18 | 18 | #define MACSEC_GENL_NAME "macsec" |
| 19 | 19 | #define MACSEC_GENL_VERSION 1 |
| 20 | 20 | |
| 21 | −#define MACSEC_MAX_KEY_LEN 128 | |
| 21 | +#define MACSEC_MAX_KEY_LEN 256 | |
| 22 | 22 | |
| 23 | 23 | #define MACSEC_KEYID_LEN 16 |
| 24 | 24 | |
| 25 | −#define MACSEC_DEFAULT_CIPHER_ID 0x0080020001000001ULL | |
| 26 | −#define MACSEC_DEFAULT_CIPHER_ALT 0x0080C20001000001ULL | |
| 25 | +/* cipher IDs as per IEEE802.1AEbn-2011 */ | |
| 26 | +#define MACSEC_CIPHER_ID_GCM_AES_128 0x0080C20001000001ULL | |
| 27 | +#define MACSEC_CIPHER_ID_GCM_AES_256 0x0080C20001000002ULL | |
| 28 | + | |
| 29 | +#define MACSEC_DEFAULT_CIPHER_ID MACSEC_CIPHER_ID_GCM_AES_128 | |
| 30 | +/* deprecated cipher ID for GCM-AES-128 */ | |
| 31 | +#define MACSEC_DEFAULT_CIPHER_ALT 0x0080020001000001ULL | |
| 27 | 32 | |
| 28 | 33 | #define MACSEC_MIN_ICV_LEN 8 |
| 29 | 34 | #define MACSEC_MAX_ICV_LEN 32 |