ExSRTP.Cipher protocol (ExSRTP v0.4.1)

View Source

Summary

Types

t()

All the types that implement this protocol.

Types

packet()

@type packet() :: ExRTP.Packet.t()

t()

@type t() :: term()

All the types that implement this protocol.

Functions

decrypt_rtcp(value, data)

@spec decrypt_rtcp(t(), data :: binary()) ::
  {:ok, binary()} | {:error, :authentication_failed}

decrypt_rtp(value, data, packet, roc)

@spec decrypt_rtp(t(), data :: binary(), packet(), roc :: non_neg_integer()) ::
  {:ok, packet()} | {:error, :authentication_failed}

encrypt_rtcp(value, data, index)

@spec encrypt_rtcp(t(), data :: binary(), index :: non_neg_integer()) :: iodata()

encrypt_rtp(value, packet, roc)

@spec encrypt_rtp(t(), packet(), roc :: non_neg_integer()) :: iodata()

tag_size(value)

@spec tag_size(t()) :: non_neg_integer()