|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
#include "crypto_drv_common.h"#include "hal_pke.h"#include "drv_pke_inner.h"#include "drv_common_pke.h"#include "ecc_ec_fp.h"#include "drv_pke.h"
| td_s32 drv_cipher_pke_deinit | ( | void | ) |
| td_s32 drv_cipher_pke_ecdsa_sign | ( | drv_pke_ecc_curve_type | curve_type, |
| const drv_pke_data * | priv_key, | ||
| const drv_pke_data * | hash, | ||
| const drv_pke_ecc_sig * | sig | ||
| ) |
| td_s32 drv_cipher_pke_ecdsa_verify | ( | drv_pke_ecc_curve_type | curve_type, |
| const drv_pke_ecc_point * | pub_key, | ||
| const drv_pke_data * | hash, | ||
| const drv_pke_ecc_sig * | sig | ||
| ) |
| td_s32 drv_cipher_pke_init | ( | void | ) |
Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2023-2023. All rights reserved.
Description: cipher driver pke header.
History:
2023-03-22, Create file.
| td_void drv_cipher_pke_init_ecc_param | ( | const pke_default_parameters * | ecc_params, |
| const td_u32 * | ecc_num | ||
| ) |
| td_s32 drv_cipher_pke_register_wait_func | ( | crypto_wait_t * | wait, |
| crypto_wait_timeout_interruptible | wait_func, | ||
| td_u32 | timeout_ms, | ||
| uintptr_t | check_word | ||
| ) |
Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2022-2022. All rights reserved. Description: the implementation of ecdsa.
Create: 2022-08-08
| td_s32 drv_cipher_pke_sm2_dsa_hash | ( | const drv_pke_data * | sm2_id, |
| const drv_pke_ecc_point * | pub_key, | ||
| const drv_pke_msg * | msg, | ||
| drv_pke_data * | hash | ||
| ) |
| td_s32 drv_cipher_pke_sm2_private_decrypt | ( | const drv_pke_data * | priv_key, |
| const drv_pke_data * | cipher_text, | ||
| const drv_pke_data * | plain_text | ||
| ) |
| td_s32 drv_cipher_pke_sm2_public_encrypt | ( | const drv_pke_ecc_point * | pub_key, |
| const drv_pke_data * | plain_text, | ||
| const drv_pke_data * | cipher_text | ||
| ) |