Documentation ¶
Overview ¶
Package fastsha256 implements the SHA224 and SHA256 hash algorithms as defined in FIPS 180-4.
Index ¶
Constants ¶
View Source
const BlockSize = 64
The blocksize of SHA256 and SHA224 in bytes.
View Source
const Size = 32
The size of a SHA256 checksum in bytes.
View Source
const Size224 = 28
The size of a SHA224 checksum in bytes.
Variables ¶
This section is empty.
Functions ¶
func MidState256 ¶
MidState256 returns the internal hashing state after hashing the first chunk (BlockSize) of the data. This implemenation does not provide any mechanism to initialize the internal hashing state, so this information can't be used to skip hashing the first chunk on subsequent calls, but it is exposed so sophisticated callers can make use of it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.