API参考
载入中...
搜索中...
未找到
app_enc.h
1/*
2 * This file is part of the openHiTLS project.
3 *
4 * openHiTLS is licensed under the Mulan PSL v2.
5 * You can use this software according to the terms and conditions of the Mulan PSL v2.
6 * You may obtain a copy of Mulan PSL v2 at:
7 *
8 * http://license.coscl.org.cn/MulanPSL2
9 *
10 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
11 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
12 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
13 * See the Mulan PSL v2 for more details.
14 */
15#ifndef HITLS_APP_ENC_H
16#define HITLS_APP_ENC_H
17
18#include <stdint.h>
19#include <limits.h>
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24#define REC_ITERATION_TIMES 10000
25#define REC_MAX_FILE_LENGEN 512
26#define REC_MAX_FILENAME_LENGTH PATH_MAX
27#define REC_MAX_MAC_KEY_LEN 64
28#define REC_MAX_KEY_LENGTH 64
29#define REC_MAX_IV_LENGTH 16
30#define REC_HEX_BASE 16
31#define REC_SALT_LEN 8
32#define REC_HEX_BUF_LENGTH 8
33#define REC_MIN_PRE_LENGTH 6
34#define REC_DOUBLE 2
35#define MAX_BUFSIZE 4096
36#define XTS_MIN_DATALEN 16
37#define BUF_SAFE_BLOCK 16
38#define BUF_READABLE_BLOCK 32
39#define IS_SUPPORT_GET_EOF 1
40
41int32_t HITLS_EncMain(int argc, char *argv[]);
42
43#ifdef __cplusplus
44}
45#endif
46#endif