ExSRTP.Cipher protocol (ExSRTP v0.4.1)
View SourceSummary
Types
@type packet() :: ExRTP.Packet.t()
@type t() :: term()
All the types that implement this protocol.
Functions
@spec decrypt_rtp(t(), data :: binary(), packet(), roc :: non_neg_integer()) :: {:ok, packet()} | {:error, :authentication_failed}
@spec encrypt_rtcp(t(), data :: binary(), index :: non_neg_integer()) :: iodata()
@spec encrypt_rtp(t(), packet(), roc :: non_neg_integer()) :: iodata()
@spec tag_size(t()) :: non_neg_integer()