pub enum NonceSource {
Pase,
Case(NodeId),
Group,
}rustcrypto only.Expand description
Where the Source Node ID in the AEAD nonce comes from (§4.8.1.1).
Variants§
Pase
A PASE session: “the Nonce Source Node ID SHALL be Unspecified Node ID”.
Safe despite being a constant, and the specification says why: “Because PASE negotiates strong one-time keys per session and the I2RKey and R2IKey are distinct for each direction of communication, the use of the Unspecified Node ID as the Nonce Source Node ID remains semantically secure.”
Case(NodeId)
A CASE session: “determined via the Secure Session Context associated with the Session Identifier” — the operational Node ID of whoever protected the message.
Group
A group message: the Source Node ID carried in the message itself.
“The S Flag of the message SHALL be 1 … If the S Flag of the message is 0 the message SHALL be dropped.”