diff options
author | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2013-04-08 10:48:49 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2013-04-25 21:01:48 +0800 |
commit | d2049d8566bf74723f0c353621174b37ff3d75ec (patch) | |
tree | ab3405d718ebfd1c0c910741b437b860f3d28cba /net/xfrm/xfrm_algo.c | |
parent | 93b5e86a6d13c5dec18c6611933fb38d7d80f0d2 (diff) | |
download | blackbird-op-linux-d2049d8566bf74723f0c353621174b37ff3d75ec.tar.gz blackbird-op-linux-d2049d8566bf74723f0c353621174b37ff3d75ec.zip |
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/xfrm/xfrm_algo.c')
-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[] = { .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[] = { |