|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|

宏定义 | |
| #define | EXT_ID_KM 0x55 |
| #define | id_2_handle(id, key) (td_handle)((((EXT_ID_KM) & 0xff) << 24) | ((((key) & 0xff)<< 16)) | (((id) & 0xffff))) |
| #define | handle_2_modid(handle) (((handle) >> 24) & 0xff) |
| #define | handle_2_id(handle) (((handle)) & 0xffff) |
| #define | handle_get_type(handle) (((handle) >> 16) & 0xff) |
| #define | KEYSLOT_MCIPHER_KEYSLOT_CNT 8 |
| #define | KEYSLOT_HMAC_KEYSLOT_CNT 2 |
| #define | EXT_MODULE_ID_KM 0x55 |
函数 | |
| td_s32 | drv_keyslot_init (td_void) |
| td_s32 | drv_keyslot_deinit (td_void) |
| td_s32 | drv_keyslot_create (td_handle *keyslot_handle, crypto_keyslot_type keyslot_type) |
| td_s32 | drv_keyslot_destroy (td_handle keyslot_handle) |
| #define EXT_ID_KM 0x55 |
Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2023-2023. All rights reserved.
Description: cipher driver keyslot.
History:
2023-03-22, Create file.
| #define EXT_MODULE_ID_KM 0x55 |
| #define handle_2_id | ( | handle | ) | (((handle)) & 0xffff) |
| #define handle_2_modid | ( | handle | ) | (((handle) >> 24) & 0xff) |
| #define handle_get_type | ( | handle | ) | (((handle) >> 16) & 0xff) |
| #define id_2_handle | ( | id, | |
| key | |||
| ) | (td_handle)((((EXT_ID_KM) & 0xff) << 24) | ((((key) & 0xff)<< 16)) | (((id) & 0xffff))) |
| #define KEYSLOT_HMAC_KEYSLOT_CNT 2 |
| #define KEYSLOT_MCIPHER_KEYSLOT_CNT 8 |
| td_s32 drv_keyslot_create | ( | td_handle * | keyslot_handle, |
| crypto_keyslot_type | keyslot_type | ||
| ) |