/** Run unit tests for our secret-to-key passphrase hashing functionality. */
static void
- test_crypto_s2k(void *arg)
-test_crypto_s2k_rfc2440(void)
++test_crypto_s2k_rfc2440(void *arg)
{
char buf[29];
char buf2[29];
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);
+ tt_mem_op(buf,==, buf2, 29);
memcpy(buf,"vrbacrda",8);
memcpy(buf2,"vrbacrda",8);