The kernel crypto API already supports rfc4106(gcm(aria)), but XFRM does not have the corresponding algorithm descriptors. Add XFRM AEAD algorithm descriptors for ARIA GCM with 64-bit, 96-bit and 128-bit ICV lengths. Tested with strongSwan using 256-bit ARIA keys and all three supported ICV lengths. Signed-off-by: Hong In-su --- net/xfrm/xfrm_algo.c | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/net/xfrm/xfrm_algo.c b/net/xfrm/xfrm_algo.c index 98ef2c48982a..d74f86d4e672 100644 --- a/net/xfrm/xfrm_algo.c +++ b/net/xfrm/xfrm_algo.c @@ -82,6 +82,42 @@ static struct xfrm_algo_desc aead_list[] = { .sadb_alg_maxbits = 256 } }, +{ + .name = "rfc4106(gcm(aria))", + + .uinfo = { + .aead = { + .geniv = "seqiv", + .icv_truncbits = 64, + } + }, + + .pfkey_supported = 0, +}, +{ + .name = "rfc4106(gcm(aria))", + + .uinfo = { + .aead = { + .geniv = "seqiv", + .icv_truncbits = 96, + } + }, + + .pfkey_supported = 0, +}, +{ + .name = "rfc4106(gcm(aria))", + + .uinfo = { + .aead = { + .geniv = "seqiv", + .icv_truncbits = 128, + } + }, + + .pfkey_supported = 0, +}, { .name = "rfc4309(ccm(aes))", -- 2.43.0