]> git.ipfire.org Git - thirdparty/hostap.git/commit
FT/RRB: Pad RRB messages to at least minimum Ethernet frame length
authorJouni Malinen <jouni@codeaurora.org>
Tue, 26 Mar 2019 20:26:07 +0000 (22:26 +0200)
committerJouni Malinen <jouni@codeaurora.org>
Tue, 26 Mar 2019 20:50:17 +0000 (22:50 +0200)
commit2ffd8076ded3283503c83219fc9ee885c710804a
tree53dc2595f4ef2e6310ddc4889416fbe224cc8542
parent555c93e2d82210e60a619ec3c854b08352650897
FT/RRB: Pad RRB messages to at least minimum Ethernet frame length

Ethernet frames have minimum length of 64 octets and shorter frames may
end up getting arbitrary padding in the end. This would result in the
FT/RRB receiver rejecting the frame as an incorrectly protected one.
Work around this by padding the message so that it is never shorter than
the minimum Ethernet frame.

Unfortunately, this padding is apparently not enough with all Ethernet
devices and it is still possible to see extra two octet padding at the
end of the message even if larger frames are used (e.g., showed up with
128 byte frames). For now, work around this by trying to do AES-SIV
decryption with two octets shorter frame (ignore last two octets) if the
first attempt fails.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/ap/wpa_auth_ft.c