MySQL 8.0.39
Source Code Documentation
|
Redo log - encryption. More...
#include "univ.i"
Go to the source code of this file.
Functions | |
Log - encryption management. | |
bool | log_file_header_fill_encryption (const Encryption_metadata &encryption_metadata, bool encrypt_key, byte *buf) |
Writes encryption information to log header. More... | |
dberr_t | log_encryption_read (log_t &log) |
Reads the log encryption header to get the redo log encryption information. More... | |
dberr_t | log_encryption_read (log_t &log, const Log_file &file) |
Reads the log encryption header to get the redo log encryption information. More... | |
dberr_t | log_encryption_generate_metadata (log_t &log) |
Enables the redo log encryption and generates new encryption metadata. More... | |
dberr_t | log_encryption_on_master_key_changed (log_t &log) |
Re-encrypts the redo log's encryption metadata using the current master key and writes it encrypted to the log encryption header in the log file containing the current checkpoint lsn (log.last_checkpoint_lsn)). More... | |
bool | log_can_encrypt (const log_t &log) |
Redo log - encryption.
bool log_can_encrypt | ( | const log_t & | log | ) |
Enables the redo log encryption and generates new encryption metadata.
Writes the generated metadata to the log encryption header in the log file containing the current checkpoint lsn (log.last_checkpoint_lsn).
[in,out] | log | redo log |
Re-encrypts the redo log's encryption metadata using the current master key and writes it encrypted to the log encryption header in the log file containing the current checkpoint lsn (log.last_checkpoint_lsn)).
Reads the log encryption header to get the redo log encryption information.
Read is done using the file which contains the current checkpoint_lsn. Updates: log.m_encryption_metadata and log.m_encryption_buf.
[in,out] | log | redo log |
Reads the log encryption header to get the redo log encryption information.
Read is done using the provided file. Updates: log.m_encryption_metadata and log.m_encryption_buf.
[in,out] | log | redo log |
[in] | file | redo file to read from |
bool log_file_header_fill_encryption | ( | const Encryption_metadata & | encryption_metadata, |
bool | encrypt_key, | ||
byte * | buf | ||
) |
Writes encryption information to log header.
[in] | encryption_metadata | encryption metadata (algorithm, key, iv) |
[in] | encrypt_key | encrypt with master key |
[in,out] | buf | log file encryption header |