File crypt_opfunc.h¶
FileList > cubrid > src > query > crypt_opfunc.h
Go to the source code of this file
#include "thread_compat.hpp"#include "tde.h"
Public Types¶
| Type | Name |
|---|---|
| enum | CIPHER_ENCRYPTION_TYPE |
| enum | HEX_LETTERCASE |
Public Functions¶
| Type | Name |
|---|---|
| void | crypt_crc32 (const char * src, int src_len, int * dest) |
| int | crypt_dblink_bin_to_str (const char * src, int src_len, char * dest, int dest_len, unsigned char * key, long tm) |
| int | crypt_dblink_decrypt (const unsigned char * cipher, int cipher_len, unsigned char * str_buffer, unsigned char * mk) |
| int | crypt_dblink_encrypt (const unsigned char * str, int str_len, unsigned char * cipher_buffer, unsigned char * mk) |
| int | crypt_dblink_str_to_bin (const char * src, int src_len, char * dest, int * dest_len, unsigned char * key) |
| int | crypt_default_decrypt (THREAD_ENTRY * thread_p, const char * src, int src_len, const char * key, int key_len, char ** dest_p, int * dest_len_p, CIPHER_ENCRYPTION_TYPE enc_type) |
| int | crypt_default_encrypt (THREAD_ENTRY * thread_p, const char * src, int src_len, const char * key, int key_len, char ** dest_p, int * dest_len_p, CIPHER_ENCRYPTION_TYPE enc_type) |
| int | crypt_generate_random_bytes (char * dest, int length) |
| int | crypt_md5_buffer_hex (const char * buffer, size_t len, char * resblock) |
| int | crypt_sha_one (THREAD_ENTRY * thread_p, const char * src, int src_len, char ** dest_p, int * dest_len_p) |
| int | crypt_sha_two (THREAD_ENTRY * thread_p, const char * src, int src_len, int need_hash_len, char ** dest_p, int * dest_len_p) |
| int | reverse_shake_dblink_password (char * confused, int length, char * passwd) |
| int | shake_dblink_password (const char * passwd, char * confused, int confused_size, struct timeval * chk_time) |
| char * | str_to_hex (THREAD_ENTRY * thread_p, const char * src, int src_len, char ** dest_p, int * dest_len_p, HEX_LETTERCASE lettercase) |
| void | str_to_hex_prealloced (const char * src, int src_len, char * dest, int dest_len, HEX_LETTERCASE lettercase) |
Macros¶
| Type | Name |
|---|---|
| define | DBLINK_CRYPT_KEY_LENGTH [**TDE\_DATA\_KEY\_LENGTH**](tde_8h.md#define-tde_data_key_length) |
Public Types Documentation¶
enum CIPHER_ENCRYPTION_TYPE¶
enum HEX_LETTERCASE¶
Public Functions Documentation¶
function crypt_crc32¶
function crypt_dblink_bin_to_str¶
int crypt_dblink_bin_to_str (
const char * src,
int src_len,
char * dest,
int dest_len,
unsigned char * key,
long tm
)
function crypt_dblink_decrypt¶
int crypt_dblink_decrypt (
const unsigned char * cipher,
int cipher_len,
unsigned char * str_buffer,
unsigned char * mk
)
function crypt_dblink_encrypt¶
int crypt_dblink_encrypt (
const unsigned char * str,
int str_len,
unsigned char * cipher_buffer,
unsigned char * mk
)
function crypt_dblink_str_to_bin¶
int crypt_dblink_str_to_bin (
const char * src,
int src_len,
char * dest,
int * dest_len,
unsigned char * key
)
function crypt_default_decrypt¶
int crypt_default_decrypt (
THREAD_ENTRY * thread_p,
const char * src,
int src_len,
const char * key,
int key_len,
char ** dest_p,
int * dest_len_p,
CIPHER_ENCRYPTION_TYPE enc_type
)
function crypt_default_encrypt¶
int crypt_default_encrypt (
THREAD_ENTRY * thread_p,
const char * src,
int src_len,
const char * key,
int key_len,
char ** dest_p,
int * dest_len_p,
CIPHER_ENCRYPTION_TYPE enc_type
)
function crypt_generate_random_bytes¶
function crypt_md5_buffer_hex¶
function crypt_sha_one¶
int crypt_sha_one (
THREAD_ENTRY * thread_p,
const char * src,
int src_len,
char ** dest_p,
int * dest_len_p
)
function crypt_sha_two¶
int crypt_sha_two (
THREAD_ENTRY * thread_p,
const char * src,
int src_len,
int need_hash_len,
char ** dest_p,
int * dest_len_p
)
function reverse_shake_dblink_password¶
function shake_dblink_password¶
int shake_dblink_password (
const char * passwd,
char * confused,
int confused_size,
struct timeval * chk_time
)
function str_to_hex¶
char * str_to_hex (
THREAD_ENTRY * thread_p,
const char * src,
int src_len,
char ** dest_p,
int * dest_len_p,
HEX_LETTERCASE lettercase
)
function str_to_hex_prealloced¶
void str_to_hex_prealloced (
const char * src,
int src_len,
char * dest,
int dest_len,
HEX_LETTERCASE lettercase
)
Macro Definition Documentation¶
define DBLINK_CRYPT_KEY_LENGTH¶
The documentation for this class was generated from the following file cubrid/src/query/crypt_opfunc.h