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.
This commit is contained in:
Tobias Brunner
2019-10-21 13:53:11 +02:00
parent c75010080a
commit 768e013790
4 changed files with 206 additions and 37 deletions
+1
View File
@@ -55,6 +55,7 @@ libstrongswan_tests_SOURCES = tests.h tests.c \
suites/test_printf.c \
suites/test_rng_tester.c \
suites/test_mgf1.c \
suites/test_prf_plus.c \
suites/test_ntru.c \
suites/test_ed25519.c \
suites/test_ed448.c \