mirror of https://gerrit.osmocom.org/pysim
OTA: Adjust IV length for AES
Change-Id: I854c844418244c100c328f9e76c0f37850d3db00
This commit is contained in:
parent
8e45b75711
commit
5d26311efc
|
@ -154,7 +154,7 @@ from Crypto.Cipher import DES, DES3, AES
|
||||||
from Crypto.Hash import CMAC
|
from Crypto.Hash import CMAC
|
||||||
|
|
||||||
class OtaAlgo(abc.ABC):
|
class OtaAlgo(abc.ABC):
|
||||||
iv = b'\x00\x00\x00\x00\x00\x00\x00\x00'
|
iv = property(lambda self: bytes([0] * self.blocksize))
|
||||||
blocksize = None
|
blocksize = None
|
||||||
enum_name = None
|
enum_name = None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue