SHA-256 algorithm.
Definition in file sha256.h.
| void sha256_update |
( |
void * | ctx, |
|
|
const void * | data, |
|
|
size_t | len ) |
|
extern |
| void sha256_final |
( |
void * | ctx, |
|
|
void * | out ) |
|
extern |
Generate SHA-256 digest.
- Parameters
-
| ctx | SHA-256 context |
| out | Output buffer |
Definition at line 240 of file sha256.c.
240 {
244
245
247
248
250 do {
253 }
while ( ( context->
len % sizeof ( context->
ddd.
dd.
data ) ) !=
255
256
259
260
262}
typeof(acpi_finder=acpi_find)
ACPI table finder.
unsigned long long uint64_t
#define assert(condition)
Assert a condition at run-time.
#define cpu_to_be64(value)
void sha256_update(void *ctx, const void *data, size_t len)
Accumulate data with SHA-256 algorithm.
#define offsetof(type, field)
Get offset of a field within a structure.
References assert, cpu_to_be64, ctx, sha256_digest_data::data, sha256_digest_data_dwords::dd, sha256_context::ddd, sha256_digest_data::digest, sha256_context::digestsize, sha256_context::len, memcpy(), offsetof, out, pad, sha256_update(), and typeof().
SHA-256 algorithm.
Definition at line 265 of file sha256.c.
265 {
266 .name = "sha256",
273};
static void sha256_init(void *ctx)
Initialise SHA-256 algorithm.
void sha256_final(void *ctx, void *out)
Generate SHA-256 digest.
Referenced by __tls_cipher_suite(), __tls_cipher_suite(), __tls_cipher_suite(), __tls_cipher_suite(), __tls_cipher_suite(), __tls_cipher_suite(), __tls_cipher_suite(), __tls_cipher_suite(), __tls_cipher_suite(), __tls_cipher_suite(), __tls_cipher_suite(), __tls_cipher_suite(), __tls_cipher_suite(), __tls_cipher_suite(), DIGEST_TEST(), DIGEST_TEST(), DIGEST_TEST(), HASH_DF_TEST(), HASH_DF_TEST(), HASH_DF_TEST(), HASH_DF_TEST(), HASH_DF_TEST(), HASH_DF_TEST(), HASH_DF_TEST(), HASH_DF_TEST(), HASH_DF_TEST(), HASH_DF_TEST(), HASH_DF_TEST(), HASH_DF_TEST(), HASH_DF_TEST(), HASH_DF_TEST(), HASH_DF_TEST(), HASH_DF_TEST(), HASH_DF_TEST(), HASH_DF_TEST(), HASH_DF_TEST(), HASH_DF_TEST(), HMAC_TEST(), HMAC_TEST(), HMAC_TEST(), HMAC_TEST(), icert_cert(), PEERDIST_INFO_TEST(), peerdist_info_v1(), PUBKEY_SIGN_TEST(), PUBKEY_SIGN_TEST(), PUBKEY_SIGN_TEST(), sha256_test_exec(), and sha256sum_exec().