-
Notifications
You must be signed in to change notification settings - Fork 0
/
ErrorCodes.h
24 lines (22 loc) · 1.17 KB
/
ErrorCodes.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef __ERROR_CODES_H__
#define __ERROR_CODES_H__
#define ERROR_CODE_COMMAND_LINE_ERROR -1
#define ERROR_CODE_NO_ERROR 0
#define ERROR_CODE_KEY_FILE_OPEN_ERROR 1
#define ERROR_CODE_SRC_FILE_OPEN_ERROR 2
#define ERROR_CODE_DST_FILE_OPEN_ERROR 3
#define ERROR_CODE_GETFILESIZEEX_ERROR 4
#define ERROR_CODE_MEMORY_ALLOCATION_ERROR 5
#define ERROR_CODE_FILE_READ_ERROR 6
#define ERROR_CODE_FILE_WRITE_ERROR 7
#define ERROR_CODE_CIPHER_UNKNOWN_ERROR 8
#define ERROR_CODE_CIPHER_TBYTE_SIZE_NOT_1_ERROR 9
#define ERROR_CODE_CIPHER_TDIAL_TOO_SHORT_ERROR 10
#define ERROR_CODE_CIPHER_CONTEXT_IS_NULL_ERROR 11
#define ERROR_CODE_CIPHER_BLOCK_PROCESSOR_IS_NULL_ERROR 12
#define ERROR_CODE_CIPHER_KEY_BUF_IS_NULL_ERROR 13
#define ERROR_CODE_CIPHER_WRONG_KEY_LEN_ERROR 14
#define ERROR_CODE_CIPHER_WRONG_DEPTH_ERROR 15
#define ERROR_CODE_CIPHER_SRC_IS_NULL_ERROR 16
#define ERROR_CODE_CIPHER_DST_IS_NULL_ERROR 17
#endif // __ERROR_CODES_H__