diff options
author | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2013-04-08 03:48:49 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2013-04-25 09:01:48 -0400 |
commit | d2049d8566bf74723f0c353621174b37ff3d75ec (patch) | |
tree | ab3405d718ebfd1c0c910741b437b860f3d28cba /net | |
parent | 93b5e86a6d13c5dec18c6611933fb38d7d80f0d2 (diff) |
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 <tstdenis@elliptictech.com>
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'net')
-rw-r--r-- | net/xfrm/xfrm_algo.c | 13 |
1 files changed, 13 insertions, 0 deletions
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[] = { | |||
311 | .sadb_alg_maxbits = 128 | 311 | .sadb_alg_maxbits = 128 |
312 | } | 312 | } |
313 | }, | 313 | }, |
314 | { | ||
315 | /* rfc4494 */ | ||
316 | .name = "cmac(aes)", | ||
317 | |||
318 | .uinfo = { | ||
319 | .auth = { | ||
320 | .icv_truncbits = 96, | ||
321 | .icv_fullbits = 128, | ||
322 | } | ||
323 | }, | ||
324 | |||
325 | .pfkey_supported = 0, | ||
326 | }, | ||
314 | }; | 327 | }; |
315 | 328 | ||
316 | static struct xfrm_algo_desc ealg_list[] = { | 329 | static struct xfrm_algo_desc ealg_list[] = { |