OTA: Adjust IV length for AES

Change-Id: I854c844418244c100c328f9e76c0f37850d3db00
This commit is contained in:
Christian Amsüss 2022-11-25 04:00:55 +01:00
parent 8e45b75711
commit 5d26311efc
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ from Crypto.Cipher import DES, DES3, AES
from Crypto.Hash import CMAC
class OtaAlgo(abc.ABC):
iv = b'\x00\x00\x00\x00\x00\x00\x00\x00'
iv = property(lambda self: bytes([0] * self.blocksize))
blocksize = None
enum_name = None