|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
#include "hal_keyslot.h"#include "hal_keyslot_reg.h"#include "crypto_drv_common.h"#include "crypto_common_macro.h"
宏定义 | |
| #define | KEYSLOT_TYPE_MCIPHER 0 |
| #define | KEYSLOT_TYPE_HMAC 1 |
| #define | KS_STAT_UN_LOCK 0x0 |
| #define | KS_STAT_REE_LOCK 0x1 |
| #define | KS_STAT_TEE_LOCK 0x2 |
| #define | KS_CPU_LOCK 1 |
| #define | KS_CPU_UNLOCK 0 |
函数 | |
| td_s32 | hal_keyslot_lock (td_u32 keyslot_num, crypto_keyslot_type keyslot_type) |
| td_s32 | hal_keyslot_unlock (td_u32 keyslot_num, crypto_keyslot_type keyslot_type) |
| #define KEYSLOT_TYPE_HMAC 1 |
| #define KEYSLOT_TYPE_MCIPHER 0 |
Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2023-2023. All rights reserved.
Description: hal keyslot.
History:
2023-03-22, Create file.
| #define KS_CPU_LOCK 1 |
| #define KS_CPU_UNLOCK 0 |
| #define KS_STAT_REE_LOCK 0x1 |
| #define KS_STAT_TEE_LOCK 0x2 |
| #define KS_STAT_UN_LOCK 0x0 |
| td_s32 hal_keyslot_lock | ( | td_u32 | keyslot_num, |
| crypto_keyslot_type | keyslot_type | ||
| ) |
Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2023-2023. All rights reserved.
Description: hal keyslot header.
History:
2023-03-22, Create file.
| td_s32 hal_keyslot_unlock | ( | td_u32 | keyslot_num, |
| crypto_keyslot_type | keyslot_type | ||
| ) |