diff options
author | Nicolas Mora <git@babelouest.org> | 2021-01-31 20:09:57 -0500 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2021-02-01 19:32:20 +0100 |
commit | 3a2e401b85ca245f68f23ad0114a31d77119bda7 (patch) | |
tree | 4e66bc5cae53a0c7198266b77436e28681ffb2fc /testsuite | |
parent | 5e506e86bbb9dc3405e0a02df706e8761408f52d (diff) | |
download | nettle-3a2e401b85ca245f68f23ad0114a31d77119bda7.tar.gz |
Add tests for pbkdf2_hmac_sha384 and pbkdf2_hmac_sha512
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/.gitignore | 4 | ||||
-rw-r--r-- | testsuite/pbkdf2-test.c | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/.gitignore b/testsuite/.gitignore index 280ee45b..6a80f5e6 100644 --- a/testsuite/.gitignore +++ b/testsuite/.gitignore @@ -104,6 +104,10 @@ /xts-test /cmac-test /siv-test +/bcrypt-test +/ed448-test +/shake256-test +/x86-ibt-test /test.in /test1.out diff --git a/testsuite/pbkdf2-test.c b/testsuite/pbkdf2-test.c index 365c8a0d..2161befa 100644 --- a/testsuite/pbkdf2-test.c +++ b/testsuite/pbkdf2-test.c @@ -114,6 +114,12 @@ test_main (void) PBKDF2_HMAC_TEST(pbkdf2_hmac_sha256, LDATA("passwd"), 1, LDATA("salt"), SHEX("55ac046e56e3089fec1691c22544b605")); + PBKDF2_HMAC_TEST(pbkdf2_hmac_sha384, LDATA("passwd"), 1, LDATA("salt"), + SHEX("cd3443723a41cf1460cca9efeede428a")); + + PBKDF2_HMAC_TEST(pbkdf2_hmac_sha512, LDATA("passwd"), 1, LDATA("salt"), + SHEX("c74319d99499fc3e9013acff597c23c5")); + /* From TC26 document, MR 26.2.001-2012 */ hmac_gosthash94cp_set_key (&gosthash94cpctx, LDATA("password")); |