Module sodiumoxide::crypto::hash::sha256 [] [src]

SHA-256.

There has been considerable degradation of public confidence in the security conjectures for many hash functions, including SHA-256. However, for the moment, there do not appear to be alternatives that inspire satisfactory levels of confidence. One can hope that NIST's SHA-3 competition will improve the situation.

Structs

Digest

Digest-structure

Constants

BLOCKBYTES

Block size of the hash function.

DIGESTBYTES

Number of bytes in a Digest.

Functions

hash

hash hashes a message m. It returns a hash h.