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)