package tls

  1. Overview
  2. Docs
type keyed =
  1. | K_CBC : 'k State.cbc_cipher * (Cstruct.t -> 'k) -> keyed
val get_block : Ciphersuite.block_cipher -> keyed
val get_aead : secret:Cstruct.t -> nonce:State.nonce -> Ciphersuite.aead_cipher -> State.cipher_st
val get_cipher : secret:Cstruct.t -> hmac_secret:State.hmac_key -> iv_mode:State.iv_mode -> nonce:State.nonce -> [< `AEAD of Ciphersuite.aead_cipher | `Block of Ciphersuite.block_cipher * Mirage_crypto.Hash.hash ] -> State.cipher_st
OCaml

Innovation. Community. Security.