PING_MIC_SIZE

Constant PING_MIC_SIZE 

Source
pub const PING_MIC_SIZE: MicSize;
Expand description

MIC size callers should normally ask for on a ping.

A ping frame is otherwise nearly half MIC: with a 2-byte nonce the whole frame is 34 bytes, 16 of them the authenticator. Dropping to 8 takes a quarter off the airtime while leaving forgery resistance at 2^-64 — far out of reach at LoRa packet rates, and the echo payload is a random nonce and filler that is worth nothing to forge.

Not applied inside PeerConnection::ping, which honours whatever it is given: a caller measuring how 16-byte-MIC traffic fares should ping with a 16-byte MIC.