[PATCH 1/2] kdf: add missing null-terminator for self-test test-vector array
Jussi Kivilinna
jussi.kivilinna at iki.fi
Tue Jan 19 19:13:32 CET 2021
* cipher/kdf.c (selftest_pbkdf2): Add null-terminator to TV array.
--
This was causing kdf sefl-test to fail on s390x builds.
Signed-off-by: Jussi Kivilinna <jussi.kivilinna at iki.fi>
---
cipher/kdf.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/cipher/kdf.c b/cipher/kdf.c
index 3d707bd0..b916a3f8 100644
--- a/cipher/kdf.c
+++ b/cipher/kdf.c
@@ -452,7 +452,8 @@ selftest_pbkdf2 (int extended, selftest_report_func_t report)
"\x34\x8c\x89\xdb\xcb\xd3\x2b\x2f\x32\xd8\x14\xb8\x11\x6e\x84\xcf"
"\x2b\x17\x34\x7e\xbc\x18\x00\x18\x1c\x4e\x2a\x1f\xb8\xdd\x53\xe1"
"\xc6\x35\x51\x8c\x7d\xac\x47\xe9"
- }
+ },
+ { NULL }
};
const char *what;
const char *errtxt;
--
2.27.0
More information about the Gcrypt-devel
mailing list