Module Onetimeauth.Authenticator

Authenticators.

type t

The type for authenticators.

val length : int

length is the byte length of authenticators.

val equal : t -> t -> bool

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

val of_bytes : Bytes.t -> t

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

val to_bytes : t -> Bytes.t

to_bytes a are the bytes of a.

val pp : Stdlib.Format.formatter -> t -> unit

pp ppf a is an unspecified formatter for authenticators.