OXIESEC PANEL
- Current Dir:
/
/
usr
/
include
/
mysql
/
server
/
mysql
Server IP: 2a02:4780:11:1084:0:327f:3464:10
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
07/04/2024 10:47:16 PM
rwxr-xr-x
📄
auth_dialog_client.h
2.01 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
client_plugin.h
6.18 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
plugin.h
29.17 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
plugin_audit.h
5.44 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
plugin_auth.h
5.27 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
plugin_auth_common.h
4.4 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
plugin_data_type.h
1.27 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
plugin_encryption.h
4.33 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
plugin_ftparser.h
7.65 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
plugin_function.h
1.4 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
plugin_password_validation.h
1.58 KB
06/05/2024 05:31:10 PM
rw-r--r--
📁
psi
-
07/04/2024 10:47:16 PM
rwxr-xr-x
📄
service_base64.h
2.86 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
service_debug_sync.h
13.18 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
service_encryption.h
5.52 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
service_encryption_scheme.h
5.51 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
service_json.h
4.44 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
service_kill_statement.h
2.02 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
service_logger.h
3.47 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
service_md5.h
2.07 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
service_my_crypt.h
4.07 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
service_my_print_error.h
2.27 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
service_my_snprintf.h
3.63 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
service_print_check_msg.h
1.52 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
service_progress_report.h
3.28 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
service_sha1.h
2.11 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
service_sha2.h
5.17 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
service_sql.h
4.57 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
service_thd_alloc.h
4.38 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
service_thd_autoinc.h
1.65 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
service_thd_error_context.h
3.34 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
service_thd_mdl.h
1.25 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
service_thd_rnd.h
1.86 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
service_thd_specifics.h
3.6 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
service_thd_timezone.h
2.24 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
service_thd_wait.h
3.61 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
service_wsrep.h
13.81 KB
06/05/2024 05:31:10 PM
rw-r--r--
📄
services.h
1.72 KB
06/05/2024 05:31:10 PM
rw-r--r--
Editing: service_my_crypt.h
Close
#ifndef MYSQL_SERVICE_MY_CRYPT_INCLUDED #define MYSQL_SERVICE_MY_CRYPT_INCLUDED /* Copyright (c) 2014 Google Inc. Copyright (c) 2014, 2015 MariaDB Corporation This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA */ /** @file my crypt service AES encryption functions, and a function to generate random bytes. Include my_config.h before this file to use CTR and GCM modes (they only work if server was compiled with openssl). */ #ifdef __cplusplus extern "C" { #endif /* return values from my_aes_encrypt/my_aes_decrypt functions */ #define MY_AES_OK 0 #define MY_AES_BAD_DATA -100 #define MY_AES_OPENSSL_ERROR -101 #define MY_AES_BAD_KEYSIZE -102 /* The block size for all supported algorithms */ #define MY_AES_BLOCK_SIZE 16 /* The max key length of all supported algorithms */ #define MY_AES_MAX_KEY_LENGTH 32 #define MY_AES_CTX_SIZE 1040 enum my_aes_mode { MY_AES_ECB, MY_AES_CBC #ifdef HAVE_EncryptAes128Ctr , MY_AES_CTR #endif #ifdef HAVE_EncryptAes128Gcm , MY_AES_GCM #endif }; extern struct my_crypt_service_st { int (*my_aes_crypt_init)(void *ctx, enum my_aes_mode mode, int flags, const unsigned char* key, unsigned int klen, const unsigned char* iv, unsigned int ivlen); int (*my_aes_crypt_update)(void *ctx, const unsigned char *src, unsigned int slen, unsigned char *dst, unsigned int *dlen); int (*my_aes_crypt_finish)(void *ctx, unsigned char *dst, unsigned int *dlen); int (*my_aes_crypt)(enum my_aes_mode mode, int flags, const unsigned char *src, unsigned int slen, unsigned char *dst, unsigned int *dlen, const unsigned char *key, unsigned int klen, const unsigned char *iv, unsigned int ivlen); unsigned int (*my_aes_get_size)(enum my_aes_mode mode, unsigned int source_length); unsigned int (*my_aes_ctx_size)(enum my_aes_mode mode); int (*my_random_bytes)(unsigned char* buf, int num); } *my_crypt_service; #ifdef MYSQL_DYNAMIC_PLUGIN #define my_aes_crypt_init(A,B,C,D,E,F,G) \ my_crypt_service->my_aes_crypt_init(A,B,C,D,E,F,G) #define my_aes_crypt_update(A,B,C,D,E) \ my_crypt_service->my_aes_crypt_update(A,B,C,D,E) #define my_aes_crypt_finish(A,B,C) \ my_crypt_service->my_aes_crypt_finish(A,B,C) #define my_aes_crypt(A,B,C,D,E,F,G,H,I,J) \ my_crypt_service->my_aes_crypt(A,B,C,D,E,F,G,H,I,J) #define my_aes_get_size(A,B)\ my_crypt_service->my_aes_get_size(A,B) #define my_aes_ctx_size(A)\ my_crypt_service->my_aes_ctx_size(A) #define my_random_bytes(A,B)\ my_crypt_service->my_random_bytes(A,B) #else int my_aes_crypt_init(void *ctx, enum my_aes_mode mode, int flags, const unsigned char* key, unsigned int klen, const unsigned char* iv, unsigned int ivlen); int my_aes_crypt_update(void *ctx, const unsigned char *src, unsigned int slen, unsigned char *dst, unsigned int *dlen); int my_aes_crypt_finish(void *ctx, unsigned char *dst, unsigned int *dlen); int my_aes_crypt(enum my_aes_mode mode, int flags, const unsigned char *src, unsigned int slen, unsigned char *dst, unsigned int *dlen, const unsigned char *key, unsigned int klen, const unsigned char *iv, unsigned int ivlen); int my_random_bytes(unsigned char* buf, int num); unsigned int my_aes_get_size(enum my_aes_mode mode, unsigned int source_length); unsigned int my_aes_ctx_size(enum my_aes_mode mode); #endif #ifdef __cplusplus } #endif #endif /* MYSQL_SERVICE_MY_CRYPT_INCLUDED */