API参考
载入中...
搜索中...
未找到
crypt_eal_init.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
21
22
#ifndef CRYPT_EAL_INIT_H
23
#define CRYPT_EAL_INIT_H
24
25
#include <stdint.h>
26
27
#ifdef __cplusplus
28
extern
"C"
{
29
#endif
// __cplusplus
30
31
#define CRYPT_EAL_INIT_CPU 0x01
32
#define CRYPT_EAL_INIT_BSL 0x02
33
#define CRYPT_EAL_INIT_RAND 0x04
34
#define CRYPT_EAL_INIT_PROVIDER 0x08
35
#define CRYPT_EAL_INIT_LOCK 0x10
36
#define CRYPT_EAL_INIT_PROVIDER_RAND 0x20
37
38
#define CRYPT_EAL_INIT_ALL (CRYPT_EAL_INIT_CPU | CRYPT_EAL_INIT_BSL | CRYPT_EAL_INIT_RAND | \
39
CRYPT_EAL_INIT_PROVIDER | CRYPT_EAL_INIT_PROVIDER_RAND | CRYPT_EAL_INIT_LOCK)
51
int32_t
CRYPT_EAL_Init
(uint64_t opts);
52
59
void
CRYPT_EAL_Cleanup
(uint64_t opts);
60
61
#ifdef __cplusplus
62
}
63
#endif
// __cplusplus
64
65
#endif
// CRYPT_EAL_INIT_H
CRYPT_EAL_Init
int32_t CRYPT_EAL_Init(uint64_t opts)
CRYPTO initialization
定义
crypt_asmcap.c:179
CRYPT_EAL_Cleanup
void CRYPT_EAL_Cleanup(uint64_t opts)
release the CRYPTO initialization memory.
定义
crypt_asmcap.c:242
include
crypto
crypt_eal_init.h
制作者
1.15.0