MySQL 8.0.40
Source Code Documentation
iv_argument Class Reference

helper class to process an IV argument to aes_encrypt/aes_decrypt More...

Public Member Functions

 iv_argument ()
 
const unsigned char * retrieve_iv_ptr (enum my_aes_opmode aes_opmode, uint arg_count, Item **args, const char *func_name, THD *thd, bool *error_generated)
 Validate the arguments and retrieve the IV value. More...
 

Private Attributes

char iv_buff [MY_AES_IV_SIZE+1]
 
String tmp_iv_value
 

Detailed Description

helper class to process an IV argument to aes_encrypt/aes_decrypt

Constructor & Destructor Documentation

◆ iv_argument()

iv_argument::iv_argument ( )
inline

Member Function Documentation

◆ retrieve_iv_ptr()

const unsigned char * iv_argument::retrieve_iv_ptr ( enum my_aes_opmode  aes_opmode,
uint  arg_count,
Item **  args,
const char *  func_name,
THD thd,
bool *  error_generated 
)
inline

Validate the arguments and retrieve the IV value.

Processes a 3d optional IV argument to an Item_func function. Contains all the necessary stack buffers etc.

Parameters
aes_opmodethe encryption mode
arg_countnumber of parameters passed to the function
argsarray of arguments passed to the function
func_namethe name of the function (for errors)
thdthe current thread (for errors)
[out]error_generatedset to true if error was generated.
Returns
a pointer to the retrieved validated IV or NULL

Member Data Documentation

◆ iv_buff

char iv_argument::iv_buff[MY_AES_IV_SIZE+1]
private

◆ tmp_iv_value

String iv_argument::tmp_iv_value
private

The documentation for this class was generated from the following file: