netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] xfrm: ESP Traffic Flow Confidentiality padding
@ 2010-11-30 15:49 Martin Willi
  2010-11-30 15:49 ` [PATCH 1/5] xfrm: Add Traffic Flow Confidentiality padding XFRM attribute Martin Willi
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Martin Willi @ 2010-11-30 15:49 UTC (permalink / raw)
  To: Herbert Xu; +Cc: linux-crypto, netdev

The following patchset adds Traffic Flow Confidentiality padding. The
first patch introduces a new Netlink XFRM attribute to configure TFC via
userspace. The second patch removes an existing padlen option in ESP; It
is not used at all, and I currently don't see the purpose of the field,
nor how it should interact with TFC padding enabled. Patch three and four
implement the padding logic in IPv4 and IPv6 ESP.

Padding is specified with a length to pad the encapsulated data to.
Support for TFC padding as specified in RFC4303 must be negotiated
explicitly by the key management protocol, hence the optional flag. The
fallback with ESP padding field expansion is limited to 255 padding
bytes. If this is insufficient, padding length is randomized to hide
the real length as good as possible.

The last patch adds an option to pad all packets to the PMTU. It works
fine for simple scenarios, but I'm not sure if my PMTU lookup works in
all cases (nested transforms?). Any pointer would be appreciated.

Martin Willi (5):
      xfrm: Add Traffic Flow Confidentiality padding XFRM attribute
      xfrm: Remove unused ESP padlen field
      xfrm: Traffic Flow Confidentiality for IPv4 ESP
      xfrm: Traffic Flow Confidentiality for IPv6 ESP
      xfrm: Add TFC padding option to automatically pad to PMTU

 include/linux/xfrm.h |    8 +++++++
 include/net/esp.h    |    3 --
 include/net/xfrm.h   |    1 +
 net/ipv4/esp4.c      |   58 +++++++++++++++++++++++++++++++++++--------------
 net/ipv6/esp6.c      |   58 +++++++++++++++++++++++++++++++++++--------------
 net/xfrm/xfrm_user.c |   16 ++++++++++++-
 6 files changed, 105 insertions(+), 39 deletions(-)

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2010-12-06 15:22 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-30 15:49 [PATCH 0/5] xfrm: ESP Traffic Flow Confidentiality padding Martin Willi
2010-11-30 15:49 ` [PATCH 1/5] xfrm: Add Traffic Flow Confidentiality padding XFRM attribute Martin Willi
2010-11-30 15:49 ` [PATCH 2/5] xfrm: Remove unused ESP padlen field Martin Willi
2010-11-30 15:49 ` [PATCH 3/5] xfrm: Traffic Flow Confidentiality for IPv4 ESP Martin Willi
2010-12-03  7:34   ` Herbert Xu
2010-12-03  8:32     ` Martin Willi
2010-12-03  8:39       ` Herbert Xu
2010-12-06 15:10         ` Martin Willi
2010-12-06 15:22           ` Herbert Xu
2010-11-30 15:49 ` [PATCH 4/5] xfrm: Traffic Flow Confidentiality for IPv6 ESP Martin Willi
2010-11-30 15:49 ` [PATCH 5/5] xfrm: Add TFC padding option to automatically pad to PMTU Martin Willi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).