<p>laforge has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/pysim/+/23259">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">pySim/utils.py: Attempt to support pycryptodpme<br><br>This should resolve the following error when using with pycryptodome<br>instead of pycrypto:<br><br>TypeError: new() missing 1 required positional argument: 'mode'<br><br>Change-Id: Ibd3ca00d62b864909f5e89e0feb350268157a4ca<br>Related: OS#5060<br>---<br>M pySim/utils.py<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/59/23259/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/pySim/utils.py b/pySim/utils.py</span><br><span>index 2d77f0f..7225222 100644</span><br><span>--- a/pySim/utils.py</span><br><span>+++ b/pySim/utils.py</span><br><span>@@ -246,7 +246,7 @@</span><br><span>     # We pass in hex string and now need to work on bytes</span><br><span>        ki_bytes = bytes(h2b(ki_hex))</span><br><span>        op_bytes = bytes(h2b(op_hex))</span><br><span style="color: hsl(0, 100%, 40%);">-   aes = AES.new(ki_bytes)</span><br><span style="color: hsl(120, 100%, 40%);">+       aes = AES.new(ki_bytes, AES.MODE_ECB)</span><br><span>        opc_bytes = aes.encrypt(op_bytes)</span><br><span>    return s2h(strxor(opc_bytes, op_bytes))</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/pysim/+/23259">change 23259</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/pysim/+/23259"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: pysim </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ibd3ca00d62b864909f5e89e0feb350268157a4ca </div>
<div style="display:none"> Gerrit-Change-Number: 23259 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>