package nocrypto

  1. Overview
  2. Docs

BE counter function.

Each incrX cs i increments X-sized block of cs at the offset i by one, returning true if an overfow occurred (and the block is now zeroed-out).

Each addX cs i n adds n to the X-sized block.

val incr1 : Cstruct.t -> int -> bool
val incr2 : Cstruct.t -> int -> bool
val incr4 : Cstruct.t -> int -> bool
val incr8 : Cstruct.t -> int -> bool
val incr16 : Cstruct.t -> int -> bool
val add4 : Cstruct.t -> int -> int32 -> unit
val add8 : Cstruct.t -> int -> int64 -> unit
val add16 : Cstruct.t -> int -> int64 -> unit
OCaml

Innovation. Community. Security.