package nocrypto

  1. Overview
  2. Docs

Raw block cipher in all its glory.

type ekey
type dkey
val of_secret : Cstruct.t -> ekey * dkey
val e_of_secret : Cstruct.t -> ekey
val d_of_secret : Cstruct.t -> dkey
val key : int array
val block : int
val encrypt : key:ekey -> blocks:int -> Native.buffer -> int -> Native.buffer -> int -> unit
val decrypt : key:dkey -> blocks:int -> Native.buffer -> int -> Native.buffer -> int -> unit
OCaml

Innovation. Community. Security.