SSL.Crypto.TrafficState (ex_ssl v0.16.7)

Copy Markdown View Source

Immutable key material and record sequence state for one TLS traffic epoch.

Summary

Types

cipher_suite()

@type cipher_suite() ::
  :tls_aes_128_gcm_sha256
  | :tls_aes_256_gcm_sha384
  | :tls_chacha20_poly1305_sha256

t()

@type t() :: %SSL.Crypto.TrafficState{
  cipher_suite: cipher_suite(),
  generation: non_neg_integer(),
  iv: binary(),
  key: binary(),
  secret: binary(),
  sequence: non_neg_integer()
}

Functions

advance(state)

@spec advance(term()) :: {:ok, t()} | {:error, term()}

nonce(traffic_state)

@spec nonce(t()) :: {:ok, binary()} | {:error, term()}