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:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user