History

macsec: Add support for GCM-AES-256 cipher suite

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.

Felix Walter committed 8 years ago

Commit ccfdec91 parent e8b18af2 files · +67 −16Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/if_macsec.h+8−3
@@ -18,12 +18,17 @@ · 17 unmodified lines
1818 #define MACSEC_GENL_NAME "macsec"
1919 #define MACSEC_GENL_VERSION 1
2020
21−#define MACSEC_MAX_KEY_LEN 128
21+#define MACSEC_MAX_KEY_LEN 256
2222
2323 #define MACSEC_KEYID_LEN 16
2424
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
2732
2833 #define MACSEC_MIN_ICV_LEN 8
2934 #define MACSEC_MAX_ICV_LEN 32