]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Change hash iv to a be a fixed sized array master
authorArne Schwabe <arne@rfc2549.org>
Thu, 6 Aug 2026 10:29:21 +0000 (12:29 +0200)
committerGert Doering <gert@greenie.muc.de>
Thu, 6 Aug 2026 10:44:36 +0000 (12:44 +0200)
commitd1106970f76e955b0a5fa19b566e97bba98d4c9b
treea12fc4f3450f09ed0236b7f38fed04a53be1faca
parent5978a46e3db1013f327bb315d283d5816c3a4526
Change hash iv to a be a fixed sized array

While for our own hash function, always using an uint32_t works well, it does
not work very well if we move to another hash function like siphash that
requires a larger key.

To avoid allocating a specific context, change the API to be a fixed size
array of size 4. This define allows use to easily change it to a larger
value if we use hash functions that require larger keys.

Change-Id: If47c7d920b2fa4047b7db03fcde821899839324d
Signed-off-by: Arne Schwabe <arne@rfc2549.org>
Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1571
Message-Id: <20260806102926.28206-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg38162.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/list.c
src/openvpn/list.h
src/openvpn/mroute.c
src/openvpn/mroute.h
src/openvpn/multi.c
tests/unit_tests/openvpn/test_misc.c