BeeCrypt
4.2.1
|
SHA-256 hash function, headers. More...
#include "beecrypt/beecrypt.h"
Go to the source code of this file.
Data Structures | |
struct | sha256Param |
Holds all the parameters necessary for the SHA-256 algorithm. More... | |
Functions | |
void | sha256Process (sha256Param *sp) |
This function performs the core of the SHA-256 hash algorithm; it processes a block of 64 bytes. More... | |
int | sha256Reset (sha256Param *sp) |
This function resets the parameter block so that it's ready for a new hash. More... | |
int | sha256Update (sha256Param *sp, const byte *data, size_t size) |
This function should be used to pass successive blocks of data to be hashed. More... | |
int | sha256Digest (sha256Param *sp, byte *digest) |
This function finishes the current hash computation and copies the digest value into digest. More... | |
Variables | |
const hashFunction | sha256 |
Holds the full API description of the SHA-256 algorithm. More... | |
SHA-256 hash function, headers.
int sha256Digest | ( | sha256Param * | sp, |
byte * | digest | ||
) |
This function finishes the current hash computation and copies the digest value into digest.
sp | The hash function's parameter block. |
digest | The place to store the 32-byte digest. |
0 | on success. |
void sha256Process | ( | sha256Param * | sp | ) |
This function performs the core of the SHA-256 hash algorithm; it processes a block of 64 bytes.
sp | The hash function's parameter block. |
int sha256Reset | ( | sha256Param * | sp | ) |
This function resets the parameter block so that it's ready for a new hash.
sp | The hash function's parameter block. |
0 | on success. |
int sha256Update | ( | sha256Param * | sp, |
const byte * | data, | ||
size_t | size | ||
) |
This function should be used to pass successive blocks of data to be hashed.
sp | The hash function's parameter block. |
data | |
size |
0 | on success. |
sha256 |
Holds the full API description of the SHA-256 algorithm.