Skip to content

Commit

Permalink
xfrm: add rfc4494 AES-CMAC-96 support
Browse files Browse the repository at this point in the history
Now that CryptoAPI has support for CMAC, we can add support for AES-CMAC-96
(rfc4494).

Cc: Tom St Denis <[email protected]>
Signed-off-by: Jussi Kivilinna <[email protected]>
Acked-by: David S. Miller <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
jkivilin authored and herbertx committed Apr 25, 2013
1 parent 93b5e86 commit d2049d8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions net/xfrm/xfrm_algo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = {
Expand Down

0 comments on commit d2049d8

Please sign in to comment.