This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
laforge gerrit-no-reply at lists.osmocom.orglaforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/23259 ) Change subject: pySim/utils.py: Attempt to support pycryptodpme ...................................................................... pySim/utils.py: Attempt to support pycryptodpme This should resolve the following error when using with pycryptodome instead of pycrypto: TypeError: new() missing 1 required positional argument: 'mode' Change-Id: Ibd3ca00d62b864909f5e89e0feb350268157a4ca Related: OS#5060 --- M pySim/utils.py 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/59/23259/1 diff --git a/pySim/utils.py b/pySim/utils.py index 2d77f0f..7225222 100644 --- a/pySim/utils.py +++ b/pySim/utils.py @@ -246,7 +246,7 @@ # We pass in hex string and now need to work on bytes ki_bytes = bytes(h2b(ki_hex)) op_bytes = bytes(h2b(op_hex)) - aes = AES.new(ki_bytes) + aes = AES.new(ki_bytes, AES.MODE_ECB) opc_bytes = aes.encrypt(op_bytes) return s2h(strxor(opc_bytes, op_bytes)) -- To view, visit https://gerrit.osmocom.org/c/pysim/+/23259 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: pysim Gerrit-Branch: master Gerrit-Change-Id: Ibd3ca00d62b864909f5e89e0feb350268157a4ca Gerrit-Change-Number: 23259 Gerrit-PatchSet: 1 Gerrit-Owner: laforge <laforge at osmocom.org> Gerrit-MessageType: newchange -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210305/11fd29b4/attachment.htm>