From 5d26311efc7db495bcf030bb8a3cce4c5a75a7fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Ams=C3=BCss?= Date: Fri, 25 Nov 2022 04:00:55 +0100 Subject: [PATCH] OTA: Adjust IV length for AES Change-Id: I854c844418244c100c328f9e76c0f37850d3db00 --- pySim/ota.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pySim/ota.py b/pySim/ota.py index bc4b0a71..80c823eb 100644 --- a/pySim/ota.py +++ b/pySim/ota.py @@ -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