Skip to content

Commit

Permalink
[IPSEC]: Add support for AES-XCBC-MAC
Browse files Browse the repository at this point in the history
The glue of xfrm.

Signed-off-by: Kazunori MIYAZAWA <miyazawa@linux-ipv6.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
Kazunori MIYAZAWA authored and David S. Miller committed Dec 7, 2006
1 parent 5b2becf commit 7cf4c1a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/linux/pfkeyv2.h
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ struct sadb_x_sec_ctx {
#define SADB_X_AALG_SHA2_384HMAC 6
#define SADB_X_AALG_SHA2_512HMAC 7
#define SADB_X_AALG_RIPEMD160HMAC 8
#define SADB_X_AALG_AES_XCBC_MAC 9
#define SADB_X_AALG_NULL 251 /* kame */
#define SADB_AALG_MAX 251

Expand Down
17 changes: 17 additions & 0 deletions net/xfrm/xfrm_algo.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,23 @@ static struct xfrm_algo_desc aalg_list[] = {
.sadb_alg_maxbits = 160
}
},
{
.name = "xcbc(aes)",

.uinfo = {
.auth = {
.icv_truncbits = 96,
.icv_fullbits = 128,
}
},

.desc = {
.sadb_alg_id = SADB_X_AALG_AES_XCBC_MAC,
.sadb_alg_ivlen = 0,
.sadb_alg_minbits = 128,
.sadb_alg_maxbits = 128
}
},
};

static struct xfrm_algo_desc ealg_list[] = {
Expand Down

0 comments on commit 7cf4c1a

Please sign in to comment.