Expand description
Decode a wake-up datagram and optionally authenticate it on the host.
Modules§
- verify
- Offline verification for a single management recipient and a prevalidated GWA signing key. The wire layout is defined in BSI Detailspecification §2.1. The simulator’s freshness policy is strictly less than 30 seconds of skew. TR-03109-1 v1.1 §3.2.4.3 describes a ±30-second window, while its test specification, table 4.52 rejects packets at the two endpoints.
Structs§
- Unverified
Wake Up - Structurally parsed, unauthenticated fields borrowed from one complete datagram.
- Wake
UpPrefix - The exact 32 octets signed by the GWA in a version-one wake-up.
Enums§
- Parse
Error - The structural check that failed. All inputs are treated as untrusted.
- Signature
Width - Width of one plain ECDSA signature component, selected from the trusted signing key’s curve. Selecting a width makes no algorithm-policy decision.
Constants§
- ECDSA_
PLAIN_ SHA256_ OID - DER OID contents for plain ECDSA with SHA-256 (0.4.0.127.0.7.1.1.4.1.3).
Functions§
- parse
- Inspect a complete version-one message with fixed space and bounded work.
- valid_
recipient - Check the structural constraints of a nine-octet wake-up recipient identifier. An application can use this when commissioning its own gateway ID.