SHA-256 hash function, headers.
More...
Go to the source code of this file.
|
void | sha256Process (sha256Param *sp) |
| This function performs the core of the SHA-256 hash algorithm; it processes a block of 64 bytes.
|
|
int | sha256Reset (sha256Param *sp) |
| This function resets the parameter block so that it's ready for a new hash.
|
|
int | sha256Update (sha256Param *sp, const byte *data, size_t size) |
| This function should be used to pass successive blocks of data to be hashed.
|
|
int | sha256Digest (sha256Param *sp, byte *digest) |
| This function finishes the current hash computation and copies the digest value into digest.
|
|
◆ sha256Digest()
This function finishes the current hash computation and copies the digest value into digest.
- Parameters
-
sp | The hash function's parameter block. |
digest | The place to store the 32-byte digest. |
- Return values
-
◆ sha256Process()
This function performs the core of the SHA-256 hash algorithm; it processes a block of 64 bytes.
- Parameters
-
sp | The hash function's parameter block. |
◆ sha256Reset()
This function resets the parameter block so that it's ready for a new hash.
- Parameters
-
sp | The hash function's parameter block. |
- Return values
-
◆ sha256Update()
This function should be used to pass successive blocks of data to be hashed.
- Parameters
-
sp | The hash function's parameter block. |
data | |
size | |
- Return values
-
◆ sha256
Holds the full API description of the SHA-256 algorithm.