ExSRTP.ReplayList (ExSRTP v0.4.1)

View Source

Module implementing a replay list for SRTP/SRTCP packets.

Summary

Types

t()

@type t() :: %ExSRTP.ReplayList{
  all_ones: non_neg_integer(),
  mask: non_neg_integer(),
  max: non_neg_integer() | nil,
  window: non_neg_integer()
}

Functions

check_and_update(st, idx)

@spec check_and_update(t(), non_neg_integer()) ::
  {:ok, t()} | {:error, :too_old | :replay}

new(window)

@spec new(window :: non_neg_integer()) :: t()