|
iPXE
|
SHA-256 algorithm. More...
#include <stdint.h>#include <assert.h>#include <ipxe/rotate.h>#include <ipxe/crypto.h>#include <ipxe/sha256.h>Go to the source code of this file.
Data Structures | |
| struct | sha256_variables |
| SHA-256 variables. More... | |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| FILE_SECBOOT (PERMITTED) | |
| void | sha256_compress (struct sha256_digest_data *dd, const struct sha256_digest *digest) |
| Calculate SHA-256 digest of accumulated data. | |
| SHA256_ALGORITHM (sha256, sha256_algorithm, sha256_init, SHA256_DIGEST_SIZE) | |
| SHA-256 algorithm. | |
Variables | |
| static const uint32_t | k [SHA256_ROUNDS] |
| SHA-256 constants. | |
| static const struct sha256_digest | sha256_init |
| SHA-256 initial digest values. | |
SHA-256 algorithm.
Definition in file sha256.c.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| FILE_SECBOOT | ( | PERMITTED | ) |
| void sha256_compress | ( | struct sha256_digest_data * | dd, |
| const struct sha256_digest * | digest ) |
Calculate SHA-256 digest of accumulated data.
| dd | Digest and data block |
| digest | Copy of current digest value |
Definition at line 83 of file sha256.c.
References sha256_variables::a, sha256_variables::b, build_assert, sha256_variables::c, ch, container_of, sha256_variables::d, DBGC2, sha256_digest_data::digest, sha256_variables::e, sha256_variables::f, sha256_variables::g, h, sha256_digest::h, sha256_variables::h, k, ror32(), sha256_algorithm, SHA256_ROUNDS, typeof(), u, and sha256_variables::w.
| SHA256_ALGORITHM | ( | sha256 | , |
| sha256_algorithm | , | ||
| sha256_init | , | ||
| SHA256_DIGEST_SIZE | ) |
SHA-256 algorithm.
References sha256_algorithm, SHA256_DIGEST_SIZE, and sha256_init.
|
static |
SHA-256 constants.
Definition at line 55 of file sha256.c.
|
static |
SHA-256 initial digest values.
Definition at line 70 of file sha256.c.
Referenced by SHA256_ALGORITHM().