summaryrefslogtreecommitdiff
path: root/src/test/test_crypto.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-08-30 12:03:20 -0400
committerNick Mathewson <nickm@torproject.org>2014-09-25 11:58:13 -0400
commit05a6439f1f2265a22ea6c52ba10c86925e72d2ac (patch)
treeef0520c3a9aa8cea918f48dc090310aaaf633e1c /src/test/test_crypto.c
parent8d84f3af7bd82bbe68fbfb8fc45eb38bd0138251 (diff)
downloadtor-05a6439f1f2265a22ea6c52ba10c86925e72d2ac.tar.gz
tor-05a6439f1f2265a22ea6c52ba10c86925e72d2ac.zip
Use preferred key-expansion means for pbkdf2, scrypt.
Use HKDF for RFC2440 s2k only.
Diffstat (limited to 'src/test/test_crypto.c')
-rw-r--r--src/test/test_crypto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_crypto.c b/src/test/test_crypto.c
index 5b80246bd0..3672684952 100644
--- a/src/test/test_crypto.c
+++ b/src/test/test_crypto.c
@@ -776,7 +776,7 @@ run_s2k_tests(const unsigned flags, const unsigned type,
secret_to_key_derivekey(buf2, sizeof(buf2), buf, speclen,
pw1, strlen(pw1)));
- tt_mem_op(buf2, !=, buf3, keylen);
+ tt_mem_op(buf2, !=, buf3, sizeof(buf2));
memset(buf3, 0, sizeof(buf3));
tt_int_op(S2K_OKAY, ==,