folly::crypto

Cryptographic hashing primitives.

Types

NameDescription
Blake2xb An implementation of the BLAKE2x XOF (extendable output function) hash function using BLAKE2b as the underlying hash. This hash function can produce cryptographic hashes of arbitrary length (between 1 and 2^32 - 2 bytes) from inputs of arbitrary size. Like BLAKE2b, it can be keyed, and can accept optional salt and personlization parameters.
LtHash Templated homomorphic hash, using LtHash (lattice-based crypto). Template parameters: B = element size in bits, N = number of elements.

Type Aliases

NameDescription
LtHash16_1024 Fastest and smallest LtHash specialization, with over 200 bits of security.
LtHash20_1008 Higher-security LtHash specialization; slower and larger than LtHash16_1024.
LtHash32_1024 Higher-security LtHash specialization; slower and larger than LtHash16_1024.

Functions

NameDescription
operator+ Addition operators
operator- Subtraction operators