ipsec: the default offer names the null cipher beside aes-cbc
The UE is to announce the IPsec algorithms it supports (TS 24.229 5.1.1.2.2 d), and TS 33.203 7.2 has its first REGISTER carry "a list of identifiers for the integrity and encryption algorithms, which the UE supports". The null cipher is one a UE must support (7.1 by TS 33.210 5.3.3 and RFC 8221; GSMA IR.92 5.3), and imsd can install it, but its default offer named aes-cbc alone. Ice Norway has answered imsd's first REGISTER 403 (2026-11-01, -02), where the phone's own modem had carried a call with the CS domain detached (2026-09-02). On Odido it drew an answer that the imsd of that day did not log, and the Python stack's REGISTER minutes later a 403 (2026-09-16), with a SIM that another Fairphone 6's own IMS client had registered with (2026-07-15). That client's four mechanisms were answered with one naming ealg=null, as the Python stack's offer of the null cipher was (2026-07-13). Whether the offer is the reason for either answer is not measured. The default offer is aes-cbc, then null. A P-CSCF that selects the null cipher from it gets SAs that protect the signalling's integrity and do not encrypt it; EALG=aes-cbc gives 1.2.1's offer. Tested: the suites; the daemon of this commit against a stand-in P-CSCF on the workstation that refuses an offer without the null cipher (imsd 1.2.1 is answered 403 there, this commit's is challenged and selects the null mechanism); on the FP6 on KPN, in an earlier build of this change, on 1.2.0, a reregistration and a fresh registration with the default offer: KPN named aes-cbc, and answered the reregistration, the fresh registration's protected REGISTER and the reg-event SUBSCRIBEs 200.
This commit is contained in:
parent
ed2a009425
commit
d3c1ba4a29
6 changed files with 53 additions and 13 deletions
|
|
@ -83,8 +83,13 @@ export namespace imsd::ipsec {
|
|||
}
|
||||
|
||||
// The ESP ciphers offered in Security-Client when EALG names none, in
|
||||
// the order offered.
|
||||
std::vector<std::string> DefaultEalgOffer() { return {"aes-cbc"}; }
|
||||
// the order offered. The UE announces the IPsec algorithms it supports
|
||||
// (TS 24.229 5.1.1.2.2 d; TS 33.203 7.2), and of the ciphers it must
|
||||
// support (7.1 by TS 33.210 5.3.3: RFC 8221's NULL, AES-CBC and
|
||||
// AES-GCM) these are the two EncArgs can key. Whether the signalling is
|
||||
// encrypted is the P-CSCF's choice (TS 33.203 5.1.3); aes-cbc comes
|
||||
// first for a P-CSCF that goes by the UE's order.
|
||||
std::vector<std::string> DefaultEalgOffer() { return {"aes-cbc", "null"}; }
|
||||
|
||||
// An EALG setting ("aes-cbc, null") read as the ciphers to offer, in the
|
||||
// order written: case-insensitive, spaces and tabs ignored, "3des" for
|
||||
|
|
|
|||
Loading…
Reference in a new issue