aka: a command on a logical channel from 4 to 19 carries the extended class byte

The AUTHENTICATE and the GET RESPONSE went out with the channel number
as their class byte. That is the coding of the standard logical
channels, 0 to 3 (ETSI TS 102 221 10.1.1, table 10.3: the channel in
bits b2 and b1). For the extended ones, 4 to 19, table 10.4a has
'01x0 xxxx' with the channel less four in the low four bits: a command
for channel 4 starts with 40. As 04 it is a command for channel 0 with
a secure-messaging bit set.

The channel is the one the modem returns when imsd opens a logical
channel for the AKA run; imsd does not log it, so whether a
registration ever got one above 3 is not on record.

tests/Aka pins the class byte of channels 0, 1, 3, 4, 5 and 19, the
AUTHENTICATE on channels 3 and 4 and the GET RESPONSE on channel 7.
This commit is contained in:
Jorijn van der Graaf 2026-11-23 14:47:32 +01:00
commit 460343e578
Signed by: jorijnvdgraaf
GPG key ID: 2937E59CDCC1BCFB
3 changed files with 32 additions and 6 deletions

View file

@ -253,7 +253,10 @@ What the suites pin:
form (the RFC's §4.1–4.2.3 examples, idempotence on `inet_ntop`-shaped
text, what is refused), the address-list parser, hex/base64, MD5.
- `Aka` — the AKAv1-MD5 digest, identity derivation, the `qmicli`/`mmcli`
text parsers, the AUTHENTICATE APDU and its response parser.
text parsers, the AUTHENTICATE APDU and its response parser, the class
byte of a command on a logical channel (the channel itself for 0 to 3,
`4X` for 4 to 19 — TS 102 221 10.1.1; AUTHENTICATE on channels 3 and
4, GET RESPONSE on channel 7).
- `Ipsec` — the exact `ip xfrm` argv lists for the SA pairs, the `EALG`
setting, the Security-Server mechanism selection against one offered
cipher and against two (KPN's entry and Odido's, O2's six with the SPIs