ExRingRing. Infrastructure. HashAlgorithms
(ex_ring_ring v0.1.0)
Copy Markdown
Hash algorithms registry and factory.
Summary
Functions
Gets the hash algorithm module.
Calculates hash using the specified algorithm.
Gets hash byte size for algorithm.
Checks if algorithm is supported.
Gets list of supported algorithms.
Functions
Gets the hash algorithm module.
@spec hash(atom(), term()) :: non_neg_integer()
Calculates hash using the specified algorithm.
@spec hash_byte_size(atom()) :: pos_integer()
Gets hash byte size for algorithm.
Checks if algorithm is supported.
@spec supported_algorithms() :: [atom()]
Gets list of supported algorithms.