From ddb15b8f679c0c6b095a734947fe3ae668607887 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 28 Apr 2004 20:31:32 +0000 Subject: Remove IVs from cipher code, since AES-ctr has none. svn:r1742 --- src/or/test.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/or/test.c') 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); -- cgit v1.2.3-54-g00ecf