SSL.Protocol.Resumption (ex_ssl v1.0.0)

Copy Markdown View Source

Pure TLS 1.3 resumption ticket binder construction over exact ClientHello bytes.

Summary

Functions

Verifies identity-zero's binder over exact bytes, retaining legal additional identities.

Functions

bind(encoded_client_hello, ticket, prefix \\ <<>>)

@spec bind(binary(), SSL.SessionTicket.t(), binary()) ::
  {:ok, binary()} | {:error, atom()}

psk_extension(ticket, now_ms)

@spec psk_extension(SSL.SessionTicket.t(), integer()) ::
  {:ok, binary()} | {:error, atom()}

verify_binder(encoded, psk, hash, prefix \\ <<>>)

@spec verify_binder(binary(), binary(), :sha256 | :sha384, binary()) ::
  :ok | {:error, atom()}

Verifies identity-zero's binder over exact bytes, retaining legal additional identities.