package elpi

  1. Overview
  2. Docs
ELPI - Embeddable λProlog Interpreter

Install

Dune Dependency

Authors

Maintainers

Sources

elpi-1.20.0.tbz
sha256=95cb590084203a0e5df8b7c82ed5ac05572c7a6577cd36587c97c3942c47b5c0
sha512=95c0160d237a5786daff5f4748b9c9c41dc1192fe235c6d60b79febfec56c3673815eb2d7983ea595e54927369a4d60a8a2a6008f7053bc7d7bb1871628f1697

doc/elpi.util/Elpi_util/Util/Digest/BLAKE256/index.html

Module Digest.BLAKE256Source

BLAKE256 is the BLAKE2b hash function producing 256-bit (32-byte) digests. It is cryptographically secure, and the digests are large enough to thwart brute-force attacks.

  • since 5.2
Sourcetype t = string

The type of digests.

Sourceval hash_length : int

The length of digests, in bytes.

Sourceval compare : t -> t -> int

Compare two digests, with the same specification as Stdlib.compare.

Sourceval equal : t -> t -> bool

Test two digests for equality.

Sourceval string : string -> t

Return the digest of the given string.

Sourceval bytes : bytes -> t

Return the digest of the given byte sequence.

Sourceval substring : string -> int -> int -> t

substring s ofs len returns the digest of the substring of s starting at index ofs and containing len characters.

Sourceval subbytes : bytes -> int -> int -> t

subbytes s ofs len returns the digest of the subsequence of s starting at index ofs and containing len bytes.

Sourceval channel : in_channel -> int -> t

Read characters from the channel and return their digest. See Digest.channel for the full specification.

Sourceval file : string -> t

Return the digest of the file whose name is given.

Sourceval output : out_channel -> t -> unit

Write a digest on the given output channel.

Sourceval input : in_channel -> t

Read a digest from the given input channel.

Sourceval to_hex : t -> string

Return the printable hexadecimal representation of the given digest.

Sourceval of_hex : string -> t

Convert a hexadecimal representation back into the corresponding digest.

  • raises Invalid_argument

    if the length of the argument is not 2 * hash_length, or if the arguments contains non-hexadecimal characters.

OCaml

Innovation. Community. Security.