PostgreSQL Source Code
git master
|
#include "common/sha2.h"
Go to the source code of this file.
Data Structures | |
struct | pg_sha256_ctx |
struct | pg_sha512_ctx |
Typedefs | |
typedef struct pg_sha256_ctx | pg_sha256_ctx |
typedef struct pg_sha512_ctx | pg_sha512_ctx |
typedef struct pg_sha256_ctx | pg_sha224_ctx |
typedef struct pg_sha512_ctx | pg_sha384_ctx |
Functions | |
void | pg_sha224_init (pg_sha224_ctx *ctx) |
void | pg_sha224_update (pg_sha224_ctx *ctx, const uint8 *input0, size_t len) |
void | pg_sha224_final (pg_sha224_ctx *ctx, uint8 *dest) |
void | pg_sha256_init (pg_sha256_ctx *ctx) |
void | pg_sha256_update (pg_sha256_ctx *ctx, const uint8 *input0, size_t len) |
void | pg_sha256_final (pg_sha256_ctx *ctx, uint8 *dest) |
void | pg_sha384_init (pg_sha384_ctx *ctx) |
void | pg_sha384_update (pg_sha384_ctx *ctx, const uint8 *, size_t len) |
void | pg_sha384_final (pg_sha384_ctx *ctx, uint8 *dest) |
void | pg_sha512_init (pg_sha512_ctx *ctx) |
void | pg_sha512_update (pg_sha512_ctx *ctx, const uint8 *input0, size_t len) |
void | pg_sha512_final (pg_sha512_ctx *ctx, uint8 *dest) |
typedef struct pg_sha256_ctx pg_sha224_ctx |
Definition at line 1 of file sha2_int.h.
typedef struct pg_sha256_ctx pg_sha256_ctx |
typedef struct pg_sha512_ctx pg_sha384_ctx |
Definition at line 1 of file sha2_int.h.
typedef struct pg_sha512_ctx pg_sha512_ctx |
void pg_sha224_final | ( | pg_sha224_ctx * | ctx, |
uint8 * | dest | ||
) |
Definition at line 994 of file sha2.c.
References context, j, PG_SHA224_DIGEST_LENGTH, REVERSE32, and SHA256_Last().
Referenced by pg_cryptohash_final().
void pg_sha224_init | ( | pg_sha224_ctx * | ctx | ) |
Definition at line 978 of file sha2.c.
References context, PG_SHA256_BLOCK_LENGTH, PG_SHA256_DIGEST_LENGTH, and sha224_initial_hash_value.
Referenced by pg_cryptohash_init().
void pg_sha224_update | ( | pg_sha224_ctx * | ctx, |
const uint8 * | input0, | ||
size_t | len | ||
) |
Definition at line 988 of file sha2.c.
References context, data, len, and pg_sha256_update().
Referenced by pg_cryptohash_update().
void pg_sha256_final | ( | pg_sha256_ctx * | ctx, |
uint8 * | dest | ||
) |
Definition at line 577 of file sha2.c.
References context, j, PG_SHA256_DIGEST_LENGTH, REVERSE32, and SHA256_Last().
Referenced by pg_cryptohash_final().
void pg_sha256_init | ( | pg_sha256_ctx * | ctx | ) |
Definition at line 279 of file sha2.c.
References context, PG_SHA256_BLOCK_LENGTH, PG_SHA256_DIGEST_LENGTH, and sha256_initial_hash_value.
Referenced by pg_cryptohash_init().
void pg_sha256_update | ( | pg_sha256_ctx * | ctx, |
const uint8 * | input0, | ||
size_t | len | ||
) |
Definition at line 476 of file sha2.c.
References context, data, len, PG_SHA256_BLOCK_LENGTH, and SHA256_Transform().
Referenced by pg_cryptohash_update(), and pg_sha224_update().
void pg_sha384_final | ( | pg_sha384_ctx * | ctx, |
uint8 * | dest | ||
) |
Definition at line 950 of file sha2.c.
References context, j, PG_SHA384_DIGEST_LENGTH, REVERSE64, and SHA512_Last().
Referenced by pg_cryptohash_final().
void pg_sha384_init | ( | pg_sha384_ctx * | ctx | ) |
Definition at line 934 of file sha2.c.
References context, PG_SHA384_BLOCK_LENGTH, PG_SHA512_DIGEST_LENGTH, and sha384_initial_hash_value.
Referenced by pg_cryptohash_init().
void pg_sha384_update | ( | pg_sha384_ctx * | ctx, |
const uint8 * | data, | ||
size_t | len | ||
) |
Definition at line 944 of file sha2.c.
References context, data, len, and pg_sha512_update().
Referenced by pg_cryptohash_update().
void pg_sha512_final | ( | pg_sha512_ctx * | ctx, |
uint8 * | dest | ||
) |
Definition at line 905 of file sha2.c.
References context, j, PG_SHA512_DIGEST_LENGTH, REVERSE64, and SHA512_Last().
Referenced by pg_cryptohash_final().
void pg_sha512_init | ( | pg_sha512_ctx * | ctx | ) |
Definition at line 605 of file sha2.c.
References context, PG_SHA512_BLOCK_LENGTH, PG_SHA512_DIGEST_LENGTH, and sha512_initial_hash_value.
Referenced by pg_cryptohash_init().
void pg_sha512_update | ( | pg_sha512_ctx * | ctx, |
const uint8 * | input0, | ||
size_t | len | ||
) |
Definition at line 802 of file sha2.c.
References ADDINC128, context, data, len, PG_SHA512_BLOCK_LENGTH, and SHA512_Transform().
Referenced by pg_cryptohash_update(), and pg_sha384_update().