aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Amsüss <camsuess@sysmocom.de>2022-11-25 04:00:55 +0100
committerChristian Amsüss <camsuess@sysmocom.de>2022-11-25 04:00:55 +0100
commit5d26311efc7db495bcf030bb8a3cce4c5a75a7fd (patch)
tree54e33a55903ac962f21f799f6b3f282d7ddd0659
parent8e45b75711b4b767250870d4329f6ac2a8994740 (diff)
OTA: Adjust IV length for AESHEADmaster
-rw-r--r--pySim/ota.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pySim/ota.py b/pySim/ota.py
index bc4b0a7..80c823e 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