commit | 2c0ff3a1677a232f2617b5aba1a1002f16e7c7d3 | [log] [tgz] |
---|---|---|
author | Harald Welte <laforge@gnumonks.org> | Wed Dec 07 12:34:13 2011 +0100 |
committer | Sylvain Munaut <tnt@246tNt.com> | Thu Dec 08 19:39:49 2011 +0100 |
tree | 269319e149bd2cff51dc3c736a27b11a0112a0de | |
parent | 5dffefbf0c49340033c0854b592a2741da0935a0 [diff] [blame] |
correctly compute the ICCID (19 digits, including luhn checksum)
diff --git a/pySim/cards.py b/pySim/cards.py index 3ceaa63..8f7fda7 100644 --- a/pySim/cards.py +++ b/pySim/cards.py
@@ -31,7 +31,7 @@ self._scc = scc def _e_iccid(self, iccid): - return swap_nibbles(iccid) + return swap_nibbles(rpad(iccid, 20)) def _e_imsi(self, imsi): """Converts a string imsi into the value of the EF"""