package ttweetnacl

  1. Overview
  2. Docs

Module Crypto.VerifySource

Constant time bytes comparison.

Sourceval bytes : Bytes.t -> Bytes.t -> bool

bytes b0 b1 is true iff b0 and b1 are equal. Raises Invalid_argument if b0 or b1 are not of the same size.

Sourceval bytes_16 : Bytes.t -> Bytes.t -> bool

bytes_16 b0 b1 is true iff b0 and b1 are equal. Raises Invalid_argument if b0 or b1 not made of 16 bytes.

Sourceval bytes_32 : Bytes.t -> Bytes.t -> bool

bytes_32 b0 b1 is true iff b0 and b1 are equal. Raises Invalid_argument if b0 or b1 not made of 32 bytes.