nvethernet:macsec: Added support to use AES_256

Bug 3673435

Change-Id: Ifeedf740f23595e887de0cb8b67dc07f901b089e
Signed-off-by: Sanath Kumar Gampa <sgampa@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2730247
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com>
Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com>
Reviewed-by: Mahesh Patil <maheshp@nvidia.com>
Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Sanath Kumar Gampa
2022-06-17 09:00:50 +05:30
committed by Revanth Kumar Uppala
parent 0913e1b2ed
commit cafe9a309c
2 changed files with 3 additions and 3 deletions

View File

@@ -910,7 +910,7 @@ static int macsec_create_rx_sa(struct sk_buff *skb, struct genl_info *info)
table_config->index = kt_idx;
kt_config.flags |= OSI_LUT_FLAGS_ENTRY_VALID;
for (i = 0; i < OSI_KEY_LEN_128; i++) {
for (i = 0; i < OSI_KEY_LEN_256; i++) {
kt_config.entry.sak[i] = rx_sa.sak[i];
}
@@ -1138,7 +1138,7 @@ static int macsec_create_tx_sa(struct sk_buff *skb, struct genl_info *info)
table_config->index = kt_idx;
kt_config.flags |= OSI_LUT_FLAGS_ENTRY_VALID;
for (i = 0; i < OSI_KEY_LEN_128; i++) {
for (i = 0; i < OSI_KEY_LEN_256; i++) {
kt_config.entry.sak[i] = tx_sa.sak[i];
}

View File

@@ -114,7 +114,7 @@ static const struct nla_policy nv_macsec_sa_genl_policy[NUM_NV_MACSEC_SA_ATTR] =
[NV_MACSEC_SA_ATTR_PN] = { .type = NLA_U32 },
[NV_MACSEC_SA_ATTR_LOWEST_PN] = { .type = NLA_U32 },
[NV_MACSEC_SA_ATTR_KEY] = { .type = NLA_BINARY,
.len = OSI_KEY_LEN_128,},
.len = OSI_KEY_LEN_256,},
};
static const struct nla_policy nv_macsec_tz_genl_policy[NUM_NV_MACSEC_TZ_ATTR] = {