fragattacks/src/pae
Mike Siedzik 2fc0675683 mka: Fix lowest acceptable Packet Number (LPN) calculation and use
The purpose of the Lowest Acceptable PN (lpn) parameters in the MACsec
SAK Use parameter set is to enforce delay protection. Per IEEE Std
802.1X-2010, Clause 9, "Each SecY uses MKA to communicate the lowest PN
used for transmission with the SAK within the last two seconds, allowing
receivers to bound transmission delays."

When encoding the SAK Use parameter set the KaY should set llpn and olpn
to the lowest PN transmitted by the latest SAK and oldest SAK (if
active) within the last two seconds. Because MKPDUs are transmitted
every 2 seconds (MKA_HELLO_TIME), the solution implemented here
calculates lpn based on the txsc->next_pn read during the previous MKPDU
transmit.

Upon receiving and decoding a SAK Use parameter set with delay
protection enabled, the KaY will update the SecY's lpn if the delay
protect lpn is greater than the SecY's current lpn (which is a product
of last PN received and replay protection and window size).

Signed-off-by: Michael Siedzik <msiedzik@extremenetworks.com>
2018-12-26 16:42:25 +02:00
..
ieee802_1x_cp.c mka: Add enable_encrypt op and call it from CP state machine 2016-11-20 00:35:23 +02:00
ieee802_1x_cp.h mka: Get rid of struct ieee802_1x_cp_conf 2016-08-28 21:56:17 +03:00
ieee802_1x_kay_i.h MKA: Mark frame structs packed 2018-12-25 17:29:15 +02:00
ieee802_1x_kay.c mka: Fix lowest acceptable Packet Number (LPN) calculation and use 2018-12-26 16:42:25 +02:00
ieee802_1x_kay.h mka: Fix lowest acceptable Packet Number (LPN) calculation and use 2018-12-26 16:42:25 +02:00
ieee802_1x_key.c MACsec: Add PAE implementation 2014-05-09 20:42:44 +03:00
ieee802_1x_key.h MACsec: Add PAE implementation 2014-05-09 20:42:44 +03:00
ieee802_1x_secy_ops.c mka: Fix lowest acceptable Packet Number (LPN) calculation and use 2018-12-26 16:42:25 +02:00
ieee802_1x_secy_ops.h mka: Fix lowest acceptable Packet Number (LPN) calculation and use 2018-12-26 16:42:25 +02:00
Makefile MACsec: Add PAE implementation 2014-05-09 20:42:44 +03:00