xfrm: Define new XFRM netlink auth attribute with specified truncation bits
authorMartin Willi <martin@strongswan.org>
Wed, 25 Nov 2009 00:29:51 +0000 (00:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Nov 2009 23:48:37 +0000 (15:48 -0800)
commit4e242d1616781f9f1f0b01abf878700b259cd8b5
tree9dbfba661b5a5466da155f6f25fc9c30513e801b
parenta661c4199b300503dae694efa21f1354f763b97c
xfrm: Define new XFRM netlink auth attribute with specified truncation bits

The new XFRMA_ALG_AUTH_TRUNC attribute taking a xfrm_algo_auth as
argument allows the installation of authentication algorithms with
a truncation length specified in userspace, i.e. SHA256 with 128 bit
instead of 96 bit truncation.

Signed-off-by: Martin Willi <martin@strongswan.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/xfrm.h