Attention is currently required from: laforge, pespin, dexter.
Christian Amsüss has posted comments on this change. (
https://gerrit.osmocom.org/c/pysim/+/29033 )
Change subject: Add new pySim.ota library, implement SIM OTA crypto
......................................................................
Patch Set 7:
(1 comment)
Patchset:
PS7:
so somewhere in the changes from 5 -> 7 we have a
regression in the command encoding. […]
That's not a regression, that's part
of the fix. The plaintext going into this used to have PCNT=0 and a few trailing bytes,
now it has the correct PCNT for the trailing bytes, changing all the ciphertext from that
point.
I'm not sure where the expected-good value in the assert came from, but if it came
from external then that external source had the same bug, and if it was generated by this
code and checked against an known card implementation, then that just happened to pass
because in most situations the lack of padding indication doesn't break command
execution.
--
To view, visit
https://gerrit.osmocom.org/c/pysim/+/29033
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I193ff4712c8503279c017b4b1324f0c3d38b9f84
Gerrit-Change-Number: 29033
Gerrit-PatchSet: 7
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: Christian Amsüss <chrysn(a)fsfe.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <pmaier(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: laforge <laforge(a)osmocom.org>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: dexter <pmaier(a)sysmocom.de>
Gerrit-Comment-Date: Wed, 24 Aug 2022 12:08:22 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: comment