ExSRTP.Cipher.AesCmHmacSha1 (ExSRTP v0.4.1)

View Source

Implementation of SRTP cipher using AES Counter Mode for encryption and HMAC-SHA1 for authentication, as specified in RFC 3711.

Summary

Types

t()

@type t() :: %ExSRTP.Cipher.AesCmHmacSha1{
  profile: ExSRTP.Policy.profile(),
  rtcp_auth_key: binary(),
  rtcp_salt: binary(),
  rtcp_session_key: binary(),
  rtp_auth_key: binary(),
  rtp_salt: binary(),
  rtp_session_key: binary()
}

Functions

new(profile, master_key, master_salt)

@spec new(
  profile :: ExSRTP.Policy.profile(),
  master_key :: binary(),
  master_salt :: binary()
) :: t()