diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-04-28 20:31:32 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-04-28 20:31:32 +0000 |
commit | ddb15b8f679c0c6b095a734947fe3ae668607887 (patch) | |
tree | c60355dee5276253aff49bf5adf782e4fcba79ed /src/or/test.c | |
parent | 5d1510883ea583b12b1d66156c31f03700c79245 (diff) | |
download | tor-ddb15b8f679c0c6b095a734947fe3ae668607887.tar.gz tor-ddb15b8f679c0c6b095a734947fe3ae668607887.zip |
Remove IVs from cipher code, since AES-ctr has none.
svn:r1742
Diffstat (limited to 'src/or/test.c')
-rw-r--r-- | src/or/test.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/or/test.c b/src/or/test.c index 48e4a4f9ae..536511949d 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -260,7 +260,6 @@ test_crypto() env1 = crypto_new_cipher_env(CRYPTO_CIPHER_IDENTITY); test_neq(env1, 0); test_eq(crypto_cipher_generate_key(env1), 0); - test_eq(crypto_cipher_set_iv(env1, ""), 0); test_eq(crypto_cipher_encrypt_init_cipher(env1), 0); for(i = 0; i < 1024; ++i) { data1[i] = (char) i*73; @@ -283,8 +282,6 @@ test_crypto() test_neq(env2, 0); j = crypto_cipher_generate_key(env1); crypto_cipher_set_key(env2, crypto_cipher_get_key(env1)); - crypto_cipher_set_iv(env1, "12345678901234567890"); - crypto_cipher_set_iv(env2, "12345678901234567890"); crypto_cipher_encrypt_init_cipher(env1); crypto_cipher_decrypt_init_cipher(env2); @@ -318,7 +315,6 @@ test_crypto() env2 = crypto_new_cipher_env(); test_neq(env2, 0); crypto_cipher_set_key(env2, crypto_cipher_get_key(env1)); - crypto_cipher_set_iv(env2, "12345678901234567890"); crypto_cipher_encrypt_init_cipher(env2); for (j = 0; j < 1024-16; j += 17) { crypto_cipher_encrypt(env2, data1+j, 17, data3+j); |