Expand description
RFC 8291 Web Push message encryption, aes128gcm (RFC 8188), one record.
The sender encrypts straight to the device’s subscription keys, so the pusher forwards
bytes it cannot open. Every body is padded to BODY_LEN, so its size says nothing
about the message inside.
Constants§
- BODY_
LEN - Small enough for every push service, Firefox for Android’s (about 3015) included.
- HEADER_
LEN - Salt (16), record size (4), key id length (1), the sender’s public key (65).
- MAX_
PLAINTEXT - What fits once the header, the tag and the padding delimiter are paid for.