SSL.Protocol.TLS12 (ex_ssl v0.16.7)

Copy Markdown View Source

Pure, bounded TLS 1.2 ECDHE/EMS client protocol engine.

Summary

Types

t()

@type t() :: %SSL.Protocol.TLS12{
  client_identity: term(),
  client_random: term(),
  framer: term(),
  identity: term(),
  key_pair: term(),
  master_secret: term(),
  negotiated_protocol: term(),
  offer: term(),
  options: term(),
  peer: term(),
  phase: term(),
  premaster: term(),
  read_state: term(),
  request: term(),
  server_random: term(),
  suite: term(),
  transcript: term(),
  trust: term(),
  write_state: term()
}

Functions

encrypt(state, arg2, data)

@spec encrypt(t(), :application_data | :alert, iodata()) ::
  {:ok, binary(), t()} | {:error, term()}

feed(state, record)

@spec feed(t(), binary()) :: {:ok, t(), [binary()], [term()]} | {:error, term()}

new(hello, offer, trust, identity, options)

@spec new(binary(), SSL.Protocol.ClientOffer.t(), term(), term(), keyword()) ::
  {:ok, t()} | {:error, term()}