package tls

  1. Overview
  2. Docs

Module Crypto.CiphersSource

Sourcetype keyed =
  1. | K_CBC : 'k State.cbc_cipher * (Cstruct.t -> 'k) -> keyed
Sourcetype aead_keyed =
  1. | K_AEAD : 'k State.aead_cipher * (Cstruct.t -> 'k) * bool -> aead_keyed
Sourceval get_aead_cipher : secret:Cstruct.t -> nonce:State.nonce -> Ciphersuite.aead_cipher -> State.cipher_st
Sourceval 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.