PostgreSQL Source Code
git master
|
Go to the source code of this file.
Functions | |
bool | pg_checksum_parse_type (char *name, pg_checksum_type *type) |
char * | pg_checksum_type_name (pg_checksum_type type) |
int | pg_checksum_init (pg_checksum_context *context, pg_checksum_type type) |
int | pg_checksum_update (pg_checksum_context *context, const uint8 *input, size_t len) |
int | pg_checksum_final (pg_checksum_context *context, uint8 *output) |
int pg_checksum_final | ( | pg_checksum_context * | context, |
uint8 * | output | ||
) |
Definition at line 176 of file checksum_helper.c.
References Assert, CHECKSUM_TYPE_CRC32C, CHECKSUM_TYPE_NONE, CHECKSUM_TYPE_SHA224, CHECKSUM_TYPE_SHA256, CHECKSUM_TYPE_SHA384, CHECKSUM_TYPE_SHA512, context, FIN_CRC32C, output, PG_CHECKSUM_MAX_LENGTH, pg_cryptohash_final(), pg_cryptohash_free(), PG_SHA224_DIGEST_LENGTH, PG_SHA256_DIGEST_LENGTH, PG_SHA384_DIGEST_LENGTH, PG_SHA512_DIGEST_LENGTH, and StaticAssertDecl.
Referenced by AddFileToBackupManifest(), finalize_manifest(), process_directory_recursively(), reconstruct_from_incremental_file(), verify_file_checksum(), and write_backup_label().
int pg_checksum_init | ( | pg_checksum_context * | context, |
pg_checksum_type | type | ||
) |
Definition at line 83 of file checksum_helper.c.
References CHECKSUM_TYPE_CRC32C, CHECKSUM_TYPE_NONE, CHECKSUM_TYPE_SHA224, CHECKSUM_TYPE_SHA256, CHECKSUM_TYPE_SHA384, CHECKSUM_TYPE_SHA512, context, INIT_CRC32C, pg_cryptohash_create(), pg_cryptohash_free(), pg_cryptohash_init(), PG_SHA224, PG_SHA256, PG_SHA384, PG_SHA512, and type.
Referenced by create_manifest_writer(), process_directory_recursively(), reconstruct_from_incremental_file(), sendFile(), sendFileWithContent(), verify_file_checksum(), and write_backup_label().
bool pg_checksum_parse_type | ( | char * | name, |
pg_checksum_type * | type | ||
) |
Definition at line 28 of file checksum_helper.c.
References CHECKSUM_TYPE_CRC32C, CHECKSUM_TYPE_NONE, CHECKSUM_TYPE_SHA224, CHECKSUM_TYPE_SHA256, CHECKSUM_TYPE_SHA384, CHECKSUM_TYPE_SHA512, name, pg_strcasecmp(), and type.
Referenced by json_manifest_finalize_file(), main(), and parse_basebackup_options().
char* pg_checksum_type_name | ( | pg_checksum_type | type | ) |
Definition at line 56 of file checksum_helper.c.
References Assert, CHECKSUM_TYPE_CRC32C, CHECKSUM_TYPE_NONE, CHECKSUM_TYPE_SHA224, CHECKSUM_TYPE_SHA256, CHECKSUM_TYPE_SHA384, CHECKSUM_TYPE_SHA512, and type.
Referenced by add_file_to_manifest(), AddFileToBackupManifest(), copy_file(), and write_reconstructed_file().
int pg_checksum_update | ( | pg_checksum_context * | context, |
const uint8 * | input, | ||
size_t | len | ||
) |
Definition at line 145 of file checksum_helper.c.
References CHECKSUM_TYPE_CRC32C, CHECKSUM_TYPE_NONE, CHECKSUM_TYPE_SHA224, CHECKSUM_TYPE_SHA256, CHECKSUM_TYPE_SHA384, CHECKSUM_TYPE_SHA512, COMP_CRC32C, context, input, len, and pg_cryptohash_update().
Referenced by checksum_file(), copy_file_blocks(), flush_manifest(), push_to_sink(), sendFile(), sendFileWithContent(), verify_file_checksum(), write_backup_label(), write_block(), and write_reconstructed_file().