From 56d3d29ad2451bd0e753e7878827a08b458b726b Mon Sep 17 00:00:00 2001 From: Stanislaw Pitucha Date: Sat, 4 Aug 2012 19:50:54 +0100 Subject: Drop AES functions and pycrypto dependency At some point IV parameter has been removed making these functions dangerous to use unless keys are unique on every message. Since the functions were added the original consumer has disappeared too. With no more users it's better to get rid of the incomplete encryption system entirely. These were the only functions using pycrypto module directly, so it was also removed from the dependency list. Change-Id: I57b0a0a42dac455d5baae3d726aea1507121aa4d --- nova/tests/test_crypto.py | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'nova/tests') diff --git a/nova/tests/test_crypto.py b/nova/tests/test_crypto.py index 89de1247f..c9ee6ca02 100644 --- a/nova/tests/test_crypto.py +++ b/nova/tests/test_crypto.py @@ -29,23 +29,6 @@ from nova import utils FLAGS = flags.FLAGS -class SymmetricKeyTestCase(test.TestCase): - """Test case for Encrypt/Decrypt""" - def test_encrypt_decrypt(self): - key = 'c286696d887c9aa0611bbb3e2025a45a' - plain_text = "The quick brown fox jumped over the lazy dog." - - # No IV supplied (all 0's) - encrypt = crypto.encryptor(key) - cipher_text = encrypt(plain_text) - self.assertNotEquals(plain_text, cipher_text) - - decrypt = crypto.decryptor(key) - plain = decrypt(cipher_text) - - self.assertEquals(plain_text, plain) - - class X509Test(test.TestCase): def test_can_generate_x509(self): with utils.tempdir() as tmpdir: -- cgit