From: Jussi Kivilinna Date: Mon, 8 Apr 2013 07:48:49 +0000 (+0300) Subject: xfrm: add rfc4494 AES-CMAC-96 support X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d2049d8566bf74723f0c353621174b37ff3d75ec;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git xfrm: add rfc4494 AES-CMAC-96 support Now that CryptoAPI has support for CMAC, we can add support for AES-CMAC-96 (rfc4494). Cc: Tom St Denis Signed-off-by: Jussi Kivilinna Acked-by: David S. Miller Signed-off-by: Herbert Xu --- diff --git a/net/xfrm/xfrm_algo.c b/net/xfrm/xfrm_algo.c index 6fb9d00a75dc..ab4ef72f0b1d 100644 --- a/net/xfrm/xfrm_algo.c +++ b/net/xfrm/xfrm_algo.c @@ -311,6 +311,19 @@ static struct xfrm_algo_desc aalg_list[] = { .sadb_alg_maxbits = 128 } }, +{ + /* rfc4494 */ + .name = "cmac(aes)", + + .uinfo = { + .auth = { + .icv_truncbits = 96, + .icv_fullbits = 128, + } + }, + + .pfkey_supported = 0, +}, }; static struct xfrm_algo_desc ealg_list[] = {