]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Use XOR instead of concatenation for calculation of IV from implicit IV
authorArne Schwabe <arne@rfc2549.org>
Thu, 12 Dec 2024 14:38:45 +0000 (15:38 +0100)
committerGert Doering <gert@greenie.muc.de>
Thu, 12 Dec 2024 14:52:43 +0000 (15:52 +0100)
commitbaa9192851006e2dbb90b410011e61ecf2e01870
treef67598244feadc8644c07ad3910761c6a6a4758b
parent387c2076af14a0f1ba97b6ca0175d81d1e8391a5
Use XOR instead of concatenation for calculation of IV from implicit IV

This change prepares the extended packet id data where also the packet id
part of the IV will be derived using xor.  Using xor also in the AEAD
case where this degenerates to a concatenation allows using the same
IV generation code later.

Change-Id: I74216d776d3e0a8dc987ec7b1671c8e8dcccdbd6
Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: MaxF <max@max-fillinger.net>
Acked-by: Antonio Quartulli <antonio@mandelbit.com>
Acked-by: Steffan Karger <steffan@karger.me>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20241212143845.4090-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg30097.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/crypto.c
src/openvpn/crypto.h
src/openvpn/ssl.c
tests/unit_tests/openvpn/test_ssl.c