MySQL 8.3.0
Source Code Documentation
my_kdf.cc File Reference
#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}
 

Function Documentation

◆ create_kdf_key()

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)

Parameters
keyInput key
key_lengthInput key length
[out]rkeyoutput key
rkey_sizeoutput key length
kdf_optionsKDF function options
Returns
0 on success and 1 on failure

Variable Documentation

◆ max_kdf_iterations_size

const int max_kdf_iterations_size {65535}

◆ min_kdf_iterations_size

const int min_kdf_iterations_size {1000}