The pwhash test requires a 32 bytes salt.
This commit is contained in:
parent
b2c5deccdd
commit
42d87bf926
@ -13,7 +13,7 @@ int main(void)
|
|||||||
char str_out[crypto_pwhash_scryptxsalsa208sha256_STRBYTES];
|
char str_out[crypto_pwhash_scryptxsalsa208sha256_STRBYTES];
|
||||||
unsigned char out[OUT_LEN];
|
unsigned char out[OUT_LEN];
|
||||||
char out_hex[OUT_LEN * 2 + 1];
|
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";
|
const char *passwd = "Correct Horse Battery Staple";
|
||||||
|
|
||||||
if (crypto_pwhash_scryptxsalsa208sha256(out, sizeof out,
|
if (crypto_pwhash_scryptxsalsa208sha256(out, sizeof out,
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
out_hex: [31aaf64490f0afc74344fbfaf0d611642feaa03a96d56154058559359eacc358c111f45a3983a469eccf0b524ac9902ac57d0ac19701a07877523a3d038bfb8207a4695864dc1fbfe5fa1b9e9103472ce89de027fc41cf9a3a5149390c4e4c902c387e59a52f5e6bb5acb9b3e82ab0847d8b0284e3b46e16cf59e69a9e576457]
|
out_hex: [5707165c270e26315cd0ac3620fee9d839ba6692d8cfbc213beb1c1a9f18797846c9122c6287afda48c8c5e4af3df87889a2b0633a7e21ba61fd34003337bb6086439460fca2f2c6701df34f8005c08996bba4adaed294c48fa60a18421c766df35aa4623a7fcf0eadd65c6dc6392a3e1f35045fa91a551212756f4ede68362f]
|
||||||
OK
|
OK
|
||||||
|
Loading…
Reference in New Issue
Block a user