buddy.core.hash

Basic crypto primitives that used for more high level abstractions.

blake2b

(blake2b input length)

BLAKE2 is a cryptographic hash function faster than MD5, SHA-1, SHA-2, and SHA-3, yet is at least as secure as the latest standard SHA-3.

blake2b-128

(blake2b-128 input)

BLAKE2 cryptographic hash function with fixed output digest size to 128 bits.

blake2b-256

(blake2b-256 input)

BLAKE2 cryptographic hash function with fixed output digest size to 256 bits.

blake2b-512

(blake2b-512 input)

BLAKE2 cryptographic hash function with fixed output digest size to 512 bits.

digest

(digest input alg-or-engine)

Generic function for create cryptographic hash.

end!

(end! engine)

IDigest

protocol

members

-digest

(-digest input engine)

Low level interface, always returns bytes

IEngine

protocol

Hash engine common interface definition.

members

-end

(-end _)

Return the computed mac and reset the engine.

-reset

(-reset _)

Reset the hash engine to its initial state.

-update

(-update _ input offset length)

Update bytes in a current instance.

md5

(md5 input)

reset!

(reset! engine)

resolve-digest-engine

(resolve-digest-engine engine)

ripemd128

(ripemd128 input)

ripemd160

(ripemd160 input)

ripemd256

(ripemd256 input)

ripemd320

(ripemd320 input)

sha1

(sha1 input)

sha256

(sha256 input)

sha3-256

(sha3-256 input)

sha3-384

(sha3-384 input)

sha3-512

(sha3-512 input)

sha384

(sha384 input)

sha512

(sha512 input)

skein

(skein input state)(skein input state length)

Skein is a cryptographic hash function based on Threefish tweakable block cipher compressed using Unique Block Iteration and is one of five finalists in the NIST hash function competition for SHA3.

skein-1024

(skein-1024 input)

Skein cryptographic hash function with fixed output digest size to 256.

skein-256

(skein-256 input)

Skein cryptographic hash function with fixed output digest size to 256.

skein-512

(skein-512 input)

Skein cryptographic hash function with fixed output digest size to 256.

update!

(update! engine input)(update! engine input offset)(update! engine input offset length)

whirlpool

(whirlpool input)