summaryrefslogtreecommitdiff
path: root/src/test/test_crypto.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-10-18 11:35:49 -0700
committerNick Mathewson <nickm@torproject.org>2014-08-28 11:20:31 -0400
commit9b2d8c4e20a57ce849395a2135ac4e720bf99c42 (patch)
tree1e45c14f8fe94cbd8ac4f6c3a0f5af055ea0a1bc /src/test/test_crypto.c
parentcc3b04a8c1edbeb1a488e319e3c0d28acd227417 (diff)
downloadtor-9b2d8c4e20a57ce849395a2135ac4e720bf99c42.tar.gz
tor-9b2d8c4e20a57ce849395a2135ac4e720bf99c42.zip
Rename secret_to_key to secret_to_key_rfc2440
Diffstat (limited to 'src/test/test_crypto.c')
-rw-r--r--src/test/test_crypto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_crypto.c b/src/test/test_crypto.c
index 5d8edb6550..d0024750cf 100644
--- a/src/test/test_crypto.c
+++ b/src/test/test_crypto.c
@@ -708,7 +708,7 @@ test_crypto_s2k(void)
buf3 = tor_malloc(65536);
memset(buf3, 0, 65536);
- secret_to_key(buf+9, 20, "", 0, buf);
+ secret_to_key_rfc2440(buf+9, 20, "", 0, buf);
crypto_digest(buf2+9, buf3, 1024);
test_memeq(buf, buf2, 29);
@@ -716,7 +716,7 @@ test_crypto_s2k(void)
memcpy(buf2,"vrbacrda",8);
buf[8] = 96;
buf2[8] = 96;
- secret_to_key(buf+9, 20, "12345678", 8, buf);
+ secret_to_key_rfc2440(buf+9, 20, "12345678", 8, buf);
for (i = 0; i < 65536; i += 16) {
memcpy(buf3+i, "vrbacrda12345678", 16);
}