]> git.ipfire.org Git - people/ms/strongswan.git/commit
prf-plus: Fail after counter has wrapped around
authorTobias Brunner <tobias@strongswan.org>
Fri, 18 Oct 2019 14:53:35 +0000 (16:53 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 21 Oct 2019 11:53:11 +0000 (13:53 +0200)
commit768e013790d82e88ef41c33ef69a7edec59558db
treef5fecad0c90bbad372061a292130b3b7c8719789
parentc75010080ad74d5353e560ae6adaabf40a1eafcd
prf-plus: Fail after counter has wrapped around

The behavior is undefined if this happens (RFC 7296, section 2.13).
Instead of switching to the non-counter mode, or letting the counter
wrap, this makes it clear that the usage was not as intended.
src/libstrongswan/crypto/prf_plus.c
src/libstrongswan/tests/Makefile.am
src/libstrongswan/tests/suites/test_prf_plus.c [new file with mode: 0644]
src/libstrongswan/tests/tests.h