MySQL 8.0.39
Source Code Documentation
my_kdf.h File Reference
#include <openssl/conf.h>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

class  Key_derivation_function
 
class  Key_pbkdf2_hmac_function
 Class to implement KDF method pbkdf2_hmac. More...
 

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...
 

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