From e76238505bde3316fc5133cb9a520fb0d6cba6ac Mon Sep 17 00:00:00 2001 From: Frank Morgner Date: Mon, 30 Sep 2013 08:50:44 +0200 Subject: [PATCH] iv is mandatory in python-crypto now --- virtualsmartcard/src/vpicc/virtualsmartcard/CryptoUtils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtualsmartcard/src/vpicc/virtualsmartcard/CryptoUtils.py b/virtualsmartcard/src/vpicc/virtualsmartcard/CryptoUtils.py index d9b3487..029d6cc 100644 --- a/virtualsmartcard/src/vpicc/virtualsmartcard/CryptoUtils.py +++ b/virtualsmartcard/src/vpicc/virtualsmartcard/CryptoUtils.py @@ -56,7 +56,7 @@ def get_cipher(cipherspec, key, iv = None): cipher = None if iv is None: - cipher = c_class.new(key, mode) + cipher = c_class.new(key, mode, '\x00'*get_cipher_blocklen(cipherspec)) else: cipher = c_class.new(key, mode, iv)