Crypto.Password: Add two countertests to the testsuite for sanity.

parent 51a8c9f5
......@@ -1631,8 +1631,12 @@ dnl test_false(P("invalid salt", "$1$`!@#%^&*$E6hD76/pKTS8qToBCkux30"))
cond_resolv(Nettle.bcrypt_hash, [[
test_true(P("yawinpassword",
"$2a$04$MzVXtd4o0y4DOlyHMMLMDeE4/eezrsT5Xad.2lmGr/NkCpwBgvn3e"))
test_false(P("xawinpassword",
"$2a$04$MzVXtd4o0y4DOlyHMMLMDeE4/eezrsT5Xad.2lmGr/NkCpwBgvn3e"))
test_true(P("Bootq9sH5",
"$2y$10$1b2lPgo4XumibnJGN3r3sOsXFfVVYlebFjlw47qpaslC4KIwu9dAK"))
test_false(P("Bootq9sH6",
"$2y$10$1b2lPgo4XumibnJGN3r3sOsXFfVVYlebFjlw47qpaslC4KIwu9dAK"))
test_false(P("1234", "$2y$"))
]])
cond_resolv(Crypto.SHA1, [[
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment