NetBSD/sys/netipsec
drochner b4da53f1e6 make the use of SHA2-HMAC by FAST_IPSEC compliant to current standards:
-RFC2104 says that the block size of the hash algorithm must be used
 for key/ipad/opad calculations. While formerly all ciphers used a block
 length of 64, SHA384 and SHA512 use 128 bytes. So we can't use the
 HMAC_BLOCK_LEN constant anymore. Add a new field to "struct auth_hash"
 for the per-cipher blocksize.
-Due to this, there can't be a single "CRYPTO_SHA2_HMAC" external name
 anymore. Replace this by 3 for the 3 different keysizes.
 This was done by Open/FreeBSD before.
-Also fix the number of authenticator bits used tor ESP and AH to
 conform to RFC4868, and remove uses of AH_HMAC_HASHLEN which did
 assume a fixed authenticator size of 12 bytes.

FAST_IPSEC will not interoperate with KAME IPSEC anymore if sha2 is used,
because the latter doesn't implement these standards. It should
interoperate with at least modern Free/OpenBSD now.
(I've only tested with NetBSD-current/FAST_IPSEC on both ends.)
2011-02-25 20:13:10 +00:00
..
ah_var.h
ah.h
esp_var.h
esp.h
files.netipsec
ipcomp_var.h
ipcomp.h
ipip_var.h
ipsec6.h
ipsec_input.c adopt a fix from OpenBSD: when scanning the IPv6 header chain, take 2011-02-21 22:54:45 +00:00
ipsec_mbuf.c
ipsec_netbsd.c
ipsec_osdep.h
ipsec_output.c do proper statistics counting for outbound packets, fixes PR kern/30182 2011-02-18 16:12:26 +00:00
ipsec_private.h
ipsec_var.h
ipsec.c sprinkle some "const", documenting that the SA is not supposed to 2011-02-18 19:06:45 +00:00
ipsec.h sprinkle some "const", documenting that the SA is not supposed to 2011-02-18 19:06:45 +00:00
key_debug.c declare input to kdebug_*() functions which dump structures 2011-02-21 22:21:40 +00:00
key_debug.h declare input to kdebug_*() functions which dump structures 2011-02-21 22:21:40 +00:00
key_var.h
key.c treat "struct secpolicyindex" and "struct secasindex" as "const" once 2011-02-21 22:28:18 +00:00
key.h treat "struct secpolicyindex" and "struct secasindex" as "const" once 2011-02-21 22:28:18 +00:00
keydb.h more "const" 2011-02-18 19:56:01 +00:00
keysock.c
keysock.h
Makefile
xform_ah.c more "const" 2011-02-18 19:56:01 +00:00
xform_esp.c make the use of SHA2-HMAC by FAST_IPSEC compliant to current standards: 2011-02-25 20:13:10 +00:00
xform_ipcomp.c small modifications in dealing with the unknown result size of compression/ 2011-02-24 20:03:41 +00:00
xform_ipip.c more "const" 2011-02-18 19:56:01 +00:00
xform_tcp.c more "const" 2011-02-18 19:56:01 +00:00
xform.h make the use of SHA2-HMAC by FAST_IPSEC compliant to current standards: 2011-02-25 20:13:10 +00:00