laforge submitted this change.
OTA: Adjust IV length for AES
Change-Id: I854c844418244c100c328f9e76c0f37850d3db00
---
M pySim/ota.py
1 file changed, 1 insertion(+), 1 deletion(-)
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.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
To view, visit change 30305. To unsubscribe, or for help writing mail filters, visit settings.