aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_crypto_slow.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-09-09 09:57:15 -0400
committerNick Mathewson <nickm@torproject.org>2016-09-09 09:57:15 -0400
commit7c521096410b23f234d299e344efe879ceae7643 (patch)
treea94655b9bf069f1b0af9479ac15ccbac0779991b /src/test/test_crypto_slow.c
parent5e30e26c6d7ae33e23557bc18def36f98be4e1e6 (diff)
downloadtor-7c521096410b23f234d299e344efe879ceae7643.tar.gz
tor-7c521096410b23f234d299e344efe879ceae7643.zip
Disable a single pbkdf2 test vector
The other test vectors are pretty complete, and get full coverage, I believe. This one test vector accounted for half the time spent in test-slow. "Now that's slow!"
Diffstat (limited to 'src/test/test_crypto_slow.c')
-rw-r--r--src/test/test_crypto_slow.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/test_crypto_slow.c b/src/test/test_crypto_slow.c
index 26b3d40524..0d7d65ac73 100644
--- a/src/test/test_crypto_slow.c
+++ b/src/test/test_crypto_slow.c
@@ -421,12 +421,16 @@ test_crypto_pbkdf2_vectors(void *arg)
secret_to_key_compute_key(out, 20, spec, 5, "password", 8, 1));
test_memeq_hex(out, "4b007901b765489abead49d926f721d065a429c1");
+ /* This is the very slow one here. When enabled, it accounts for roughly
+ * half the time spent in test-slow. */
+ /*
base16_decode((char*)spec, sizeof(spec),
"73616c74" "18" , 10);
memset(out, 0x00, sizeof(out));
tt_int_op(20, OP_EQ,
secret_to_key_compute_key(out, 20, spec, 5, "password", 8, 1));
test_memeq_hex(out, "eefe3d61cd4da4e4e9945b3d6ba2158c2634e984");
+ */
base16_decode((char*)spec, sizeof(spec),
"73616c7453414c5473616c7453414c5473616c745"