#include <openssl/sha.h>#include <string.h>#include <openssl/mem.h>#include "../../internal.h"#include "../digest/md32_common.h"#include "internal.h"

Go to the source code of this file.
Macros | |
| #define | Ch(x, y, z) (((x) & (y)) ^ ((~(x)) & (z))) |
| #define | Maj(x, y, z) (((x) & (y)) ^ ((x) & (z)) ^ ((y) & (z))) |
| #define | ROUND_00_15(i, a, b, c, d, e, f, g, h) |
| #define | ROUND_16_63(i, a, b, c, d, e, f, g, h, X) |
| #define | Sigma0(x) |
| #define | sigma0(x) (CRYPTO_rotr_u32((x), 7) ^ CRYPTO_rotr_u32((x), 18) ^ ((x) >> 3)) |
| #define | Sigma1(x) |
| #define | sigma1(x) (CRYPTO_rotr_u32((x), 17) ^ CRYPTO_rotr_u32((x), 19) ^ ((x) >> 10)) |
Functions | |
| uint8_t * | SHA224 (const uint8_t *data, size_t len, uint8_t out[SHA224_DIGEST_LENGTH]) |
| int | SHA224_Final (uint8_t out[SHA224_DIGEST_LENGTH], SHA256_CTX *ctx) |
| int | SHA224_Init (SHA256_CTX *sha) |
| int | SHA224_Update (SHA256_CTX *ctx, const void *data, size_t len) |
| uint8_t * | SHA256 (const uint8_t *data, size_t len, uint8_t out[SHA256_DIGEST_LENGTH]) |
| static void | sha256_block_data_order (uint32_t *state, const uint8_t *in, size_t num) |
| int | SHA256_Final (uint8_t out[SHA256_DIGEST_LENGTH], SHA256_CTX *c) |
| static int | sha256_final_impl (uint8_t *out, SHA256_CTX *c) |
| int | SHA256_Init (SHA256_CTX *sha) |
| void | SHA256_Transform (SHA256_CTX *c, const uint8_t data[SHA256_CBLOCK]) |
| void | SHA256_TransformBlocks (uint32_t state[8], const uint8_t *data, size_t num_blocks) |
| int | SHA256_Update (SHA256_CTX *c, const void *data, size_t len) |
Variables | |
| static const uint32_t | K256 [64] |
| #define sigma0 | ( | x | ) | (CRYPTO_rotr_u32((x), 7) ^ CRYPTO_rotr_u32((x), 18) ^ ((x) >> 3)) |
| #define sigma1 | ( | x | ) | (CRYPTO_rotr_u32((x), 17) ^ CRYPTO_rotr_u32((x), 19) ^ ((x) >> 10)) |
| int SHA224_Final | ( | uint8_t | out[SHA224_DIGEST_LENGTH], |
| SHA256_CTX * | ctx | ||
| ) |
| int SHA224_Init | ( | SHA256_CTX * | sha | ) |
| int SHA224_Update | ( | SHA256_CTX * | ctx, |
| const void * | data, | ||
| size_t | len | ||
| ) |
| int SHA256_Final | ( | uint8_t | out[SHA256_DIGEST_LENGTH], |
| SHA256_CTX * | c | ||
| ) |
|
static |
| int SHA256_Init | ( | SHA256_CTX * | sha | ) |
| void SHA256_Transform | ( | SHA256_CTX * | c, |
| const uint8_t | data[SHA256_CBLOCK] | ||
| ) |
| int SHA256_Update | ( | SHA256_CTX * | c, |
| const void * | data, | ||
| size_t | len | ||
| ) |