pysim/pySim
Robert Falkenberg 75487aed90 Use zero padding for EF['ACC'] field
The ``EF_ACC`` field defines the access control class (ACC)
for a subscriber.

Without this patch, the implementation adds padding 1 towards
the most significant bits if the input is shorter than 2 bytes.

However, it should be padded with 0, otherwise additional ACCs
are allocated to the subscriber. (Probably only a single bit
shall be set to 1)

Excerpt from [ETSI TS 131 102, 4.2.15](https://www.etsi.org/deliver/etsi_ts/131100_131199/131102/04.15.00_60/ts_131102v041500p.pdf):

```
EF_ACC: Two bytes: B1, B2

B1.b8...B1.b4: high priority users (class 15...11)
B1.b3: always 0
B1.b2...B1.b2 and B2.b7...B2.b0: normal priority users (class 9...0) - to be evenly distributed across subscribers
```

**Legend:** Byte X, bit Y: BX.bY


Change-Id: I1b8dc01a6c48adad1ed8158de59b12519ed688e9
2021-04-07 16:23:11 +00:00
..
transport transport: Pass status word interpreter to exception handler 2021-04-04 10:54:46 +02:00
__init__.py cosmetic: missing newlines on last line of 2 files 2017-03-21 13:07:57 +01:00
card_handler.py Remove Python shebang from files where it's not needed 2021-03-01 17:33:46 +01:00
card_key_provider.py card_key_provider: Documentation with sphinx / autodoc 2021-04-04 10:52:34 +02:00
cards.py Use zero padding for EF['ACC'] field 2021-04-07 16:23:11 +00:00
commands.py Add more documentation to the classes/methods 2021-04-02 21:08:35 +02:00
exceptions.py Add more documentation to the classes/methods 2021-04-02 21:08:35 +02:00
filesystem.py pySim/filesystem: Remove left-over debug print statements 2021-04-07 00:33:02 +02:00
ts_31_102.py fix various file definitions 2021-04-02 22:05:28 +02:00
ts_31_103.py fix various file definitions 2021-04-02 22:05:28 +02:00
ts_51_011.py ts_51_011: Full encoder/decoder for EF.AD 2021-04-06 20:20:57 +02:00
ts_102_221.py ts_102_221.py: fix fixup_fcp_proprietary_tlv_map() 2021-04-07 16:21:52 +00:00
utils.py utils.py: Add missing dec_plmn function. 2021-04-06 22:53:18 +00:00