ExSRTP.ReplayList (ExSRTP v0.4.1)
View SourceModule implementing a replay list for SRTP/SRTCP packets.
Summary
Types
@type t() :: %ExSRTP.ReplayList{ all_ones: non_neg_integer(), mask: non_neg_integer(), max: non_neg_integer() | nil, window: non_neg_integer() }
Functions
@spec check_and_update(t(), non_neg_integer()) :: {:ok, t()} | {:error, :too_old | :replay}
@spec new(window :: non_neg_integer()) :: t()