From 42d87bf92646cdef6cea7243b10bd8101018a1aa Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Thu, 8 May 2014 20:39:14 -0700 Subject: [PATCH] The pwhash test requires a 32 bytes salt. --- test/default/pwhash.c | 2 +- test/default/pwhash.exp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/default/pwhash.c b/test/default/pwhash.c index b57200b1..73d0c64f 100644 --- a/test/default/pwhash.c +++ b/test/default/pwhash.c @@ -13,7 +13,7 @@ int main(void) char str_out[crypto_pwhash_scryptxsalsa208sha256_STRBYTES]; unsigned char out[OUT_LEN]; char out_hex[OUT_LEN * 2 + 1]; - const char *salt = "0a2c4e63%2AxC+E7"; + const char *salt = "[<~A 32-bytes salt for scrypt~>]"; const char *passwd = "Correct Horse Battery Staple"; if (crypto_pwhash_scryptxsalsa208sha256(out, sizeof out, diff --git a/test/default/pwhash.exp b/test/default/pwhash.exp index f0b0d47a..6af7bcef 100644 --- a/test/default/pwhash.exp +++ b/test/default/pwhash.exp @@ -1,2 +1,2 @@ -out_hex: [31aaf64490f0afc74344fbfaf0d611642feaa03a96d56154058559359eacc358c111f45a3983a469eccf0b524ac9902ac57d0ac19701a07877523a3d038bfb8207a4695864dc1fbfe5fa1b9e9103472ce89de027fc41cf9a3a5149390c4e4c902c387e59a52f5e6bb5acb9b3e82ab0847d8b0284e3b46e16cf59e69a9e576457] +out_hex: [5707165c270e26315cd0ac3620fee9d839ba6692d8cfbc213beb1c1a9f18797846c9122c6287afda48c8c5e4af3df87889a2b0633a7e21ba61fd34003337bb6086439460fca2f2c6701df34f8005c08996bba4adaed294c48fa60a18421c766df35aa4623a7fcf0eadd65c6dc6392a3e1f35045fa91a551212756f4ede68362f] OK