MySQL 8.4.3
Source Code Documentation
|
Go to the source code of this file.
Classes | |
struct | sql_digest_storage |
Structure to store token count/array for a statement on which digest is to be calculated. More... | |
Macros | |
#define | MAX_DIGEST_STORAGE_SIZE (1024 * 1024) |
#define | DIGEST_HASH_TO_STRING(_hash, _str) |
Write SHA-256 hash value in a string to be used as DIGEST for the statement. More... | |
#define | DIGEST_HASH_TO_STRING_LENGTH 64 |
SHA-256 = 32 bytes of binary = 64 printable characters. More... | |
#define | DIGEST_HASH_SIZE 32 |
DIGEST hash size, in bytes. More... | |
Typedefs | |
typedef struct sql_digest_storage | sql_digest_storage |
Functions | |
ulong | get_max_digest_length () |
void | compute_digest_hash (const sql_digest_storage *digest_storage, unsigned char *hash) |
Compute a digest hash. More... | |
void | compute_digest_text (const sql_digest_storage *digest_storage, String *digest_text) |
Compute a digest text. More... | |
#define DIGEST_HASH_SIZE 32 |
DIGEST hash size, in bytes.
256 bits, for SHA256.
#define DIGEST_HASH_TO_STRING | ( | _hash, | |
_str | |||
) |
Write SHA-256 hash value in a string to be used as DIGEST for the statement.
#define DIGEST_HASH_TO_STRING_LENGTH 64 |
SHA-256 = 32 bytes of binary = 64 printable characters.
#define MAX_DIGEST_STORAGE_SIZE (1024 * 1024) |
typedef struct sql_digest_storage sql_digest_storage |
void compute_digest_hash | ( | const sql_digest_storage * | digest_storage, |
unsigned char * | hash | ||
) |
Compute a digest hash.
digest_storage | The digest | |
[out] | hash | The computed digest hash. This parameter is a buffer of size DIGEST_HASH_SIZE . |
void compute_digest_text | ( | const sql_digest_storage * | digest_storage, |
String * | digest_text | ||
) |
Compute a digest text.
A 'digest text' is a textual representation of a query, where:
digest_storage | The digest | |
[out] | digest_text | The digest text |
ulong get_max_digest_length | ( | ) |