netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: stephen@dino.dnsalias.com (Stephen J. Bevan)
To: Dawid Ciezarkiewicz <dpc@asn.pl>
Cc: netdev@vger.kernel.org
Subject: [RFC] Ethernet Cheap Cryptography
Date: Tue, 17 Oct 2006 20:21:46 -0700	[thread overview]
Message-ID: <17717.40394.531846.695392@localhost.localdomain> (raw)
In-Reply-To: <200610151820.22867.dpc@asn.pl>

Dawid Ciezarkiewicz writes:
 >  I'd be thankful for your opinions about that idea. Please forgive me any
 > nuances that I didn't know about.

* I suggest extending the documentation with some motivating examples
  of why someone would want to use this rather than IPsec for IP
  and/or in what scenarios you'd envisage someone wanting to encrypt
  ARP, PPPoE, ... etc.  Perhaps, you can somehow mesh it with 802.1x
  to provide link-level encryption to augment 802.1x link-level
  authentication?

* Your implementation allows the key to be changed but not in a way
  that allows both sides to do so without disrupting traffic i.e. you
  don't have something akin to IKE phase2 re-keying.  Without that
  then if someone can sniff the traffic long enough they are going to
  get a big sample of data to try and crack the keys with.
  
* You write "frames will be delivered in order, so on the other side
  IV can be always in sync."  If any switches between the two linux
  boxes are running any kind of link aggregation then you can't
  guarantee that the frames will be delivered in order.  IEEE 802.3ad
  requires that packets belonging to the same session travel down the
  same port to avoid re-ordering but implementations vary as to
  whether they actually guarantee it or not since most higher level
  protcols can survive some re-ordering.

* Given your desire not to change the size of the payload you have no
  space for MAC.  This makes it easier (but by no means easy) to alter
  the payload in such a way that it is still decrypted and considered
  valid.

* For the same reason as above you don't have a sequence number.  This
  combined with the lack of MAC weakens the defense against replay
  attacks i.e. where third party captures a packet and then re-sends
  it at a later time.  The fact that IVs must be in sync for the
  packet to be accepted makes it harder for an attacker but since they
  know how the IV is calculated they know what message to look for
  before replaying a packet.

* A variation of the above is that the attacker doesn't care about
  injecting packets per se, rather they use the above to cause packet
  loss by causing the receiver to update its IV based on a replayed
  packet thereby causing the next "real" packet to be dropped because
  the IV is out of sync.

  parent reply	other threads:[~2006-10-18  3:22 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-15 16:20 [RFC] Ethernet Cheap Cryptography Dawid Ciezarkiewicz
2006-10-15 21:35 ` James Morris
2006-10-15 22:15   ` Dawid Ciezarkiewicz
2006-10-18  3:21 ` Stephen J. Bevan [this message]
2006-10-18  3:25   ` David Miller
2006-10-18  9:51     ` Dawid Ciezarkiewicz
2006-10-18 10:16       ` David Miller
2006-10-18 11:35         ` Dawid Ciezarkiewicz
2006-10-18  9:15   ` Dawid Ciezarkiewicz
2006-10-18 14:31     ` Dawid Ciezarkiewicz
2006-10-19  3:57     ` Stephen J. Bevan
2006-10-19 15:58       ` Pawel Foremski
2006-10-20  2:18         ` Stephen J. Bevan
2006-10-20  2:59           ` David Miller
2006-10-21  2:17             ` Stephen J. Bevan
2006-10-21  2:20               ` David Miller
2006-10-20 20:18           ` Pawel Foremski
2006-10-21  1:58             ` Stephen J. Bevan
2006-10-21  2:28               ` Stephen Hemminger
2006-10-21 15:33                 ` Pawel Foremski
2006-10-21 15:12               ` Pawel Foremski
2006-10-22  0:05                 ` Stephen J. Bevan
2006-10-20 19:50       ` Dawid Ciezarkiewicz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=17717.40394.531846.695392@localhost.localdomain \
    --to=stephen@dino.dnsalias.com \
    --cc=dpc@asn.pl \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).