MySQL 8.4.2
Source Code Documentation
|
#include "mysys/my_kdf.h"
#include <openssl/evp.h>
#include <assert.h>
#include <cstring>
#include <memory>
Functions | |
int | create_kdf_key (const unsigned char *key, const unsigned int key_length, unsigned char *rkey, unsigned int rkey_size, vector< string > *kdf_options) |
Creates the required size of key using supplied key and KDF options. More... | |
Variables | |
const int | max_kdf_iterations_size {65535} |
const int | min_kdf_iterations_size {1000} |
int create_kdf_key | ( | const unsigned char * | key, |
const unsigned int | key_length, | ||
unsigned char * | rkey, | ||
unsigned int | rkey_size, | ||
vector< string > * | kdf_options | ||
) |
Creates the required size of key using supplied key and KDF options.
KDF: key derivation function (KDF) is a cryptographic algorithm that derives one or more secret keys from a secret value such as a main key, a password, or a passphrase using a pseudorandom function (which typically uses a cryptographic hash function or block cipher)
key | Input key | |
key_length | Input key length | |
[out] | rkey | output key |
rkey_size | output key length | |
kdf_options | KDF function options |
const int max_kdf_iterations_size {65535} |
const int min_kdf_iterations_size {1000} |