package ttweetnacl

  1. Overview
  2. Docs

Module Onetimeauth.AuthenticatorSource

Authenticators.

Sourcetype t

The type for authenticators.

Sourceval length : int

length is the byte length of authenticators.

Sourceval equal : t -> t -> bool

equal k k' determines in constant time if k and k' are bytewise equal.

Sourceval of_bytes : Bytes.t -> t

of_bytes b is an authenticator from bytes b. Raises Invalid_argument if b's length differs from length.

Sourceval to_bytes : t -> Bytes.t

to_bytes a are the bytes of a.

Sourceval pp : Format.formatter -> t -> unit

pp ppf a is an unspecified formatter for authenticators.