SSL.Protocol.TLS12Codec (ex_ssl v0.16.7)

Copy Markdown View Source

Bounded codecs for complete TLS 1.2 handshake messages.

SSL.Protocol.HandshakeFramer handles stream fragmentation. This module consumes exactly one encoded handshake message and retains its original bytes for transcript and signature verification.

Summary

Types

message()

@type message() :: map()

Functions

decode(encoded)

@spec decode(binary()) :: {:ok, message()} | {:error, term()}

encode_certificate(chain)

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

encode_certificate_verify(scheme, signature)

@spec encode_certificate_verify(non_neg_integer(), binary()) ::
  {:ok, binary()} | {:error, term()}

encode_client_key_exchange(public_key)

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

encode_finished(verify_data)

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