Onetimeauth.Authenticator
Authenticators.
type t
The type for authenticators.
val length : int
length is the byte length of authenticators.
length
val equal : t -> t -> bool
equal k k' determines in constant time if k and k' are bytewise equal.
equal k k'
k
k'
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.
of_bytes b
b
Invalid_argument
val to_bytes : t -> Bytes.t
to_bytes a are the bytes of a.
to_bytes a
a
val pp : Stdlib.Format.formatter -> t -> unit
pp ppf a is an unspecified formatter for authenticators.
pp ppf a