Noise. Pattern
(Noise Protocol v0.3.0)
View Source
A handshake pattern (spec §7): pre-messages and message token sequences.
from_name/1 resolves a pattern name such as "IK", "XXpsk2" or
"NNpsk0+psk2" — every one-way, fundamental and deferred pattern from
spec §7.4-§7.6 plus the pskN modifiers of §9.4. Unknown patterns and
invalid modifiers (psk9 on a two-message pattern, fallback, …) raise
ArgumentError.
Summary
Functions
Whether role's token (:e or :s) is a pre-message, known to the peer up front.
Whether any message carries a psk token (spec §9.2 changes e handling).
Number of psk tokens, i.e. the number of pre-shared keys each party needs.
Whether role sends token (:e or :s) in one of its handshake messages.
Types
Functions
Whether any message carries a psk token (spec §9.2 changes e handling).
@spec psk_count(t()) :: non_neg_integer()
Number of psk tokens, i.e. the number of pre-shared keys each party needs.
Whether role sends token (:e or :s) in one of its handshake messages.