WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
drv_pke_ecdsa.c 文件参考
#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"
drv_pke_ecdsa.c 的引用(Include)关系图:

函数

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)
 
td_void drv_cipher_pke_init_ecc_param (const pke_default_parameters *ecc_params, const td_u32 *ecc_num)
 
td_s32 drv_cipher_pke_init (void)
 
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_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_public_encrypt (const drv_pke_ecc_point *pub_key, const drv_pke_data *plain_text, const drv_pke_data *cipher_text)
 
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)
 

函数说明

◆ drv_cipher_pke_deinit()

td_s32 drv_cipher_pke_deinit ( void  )

◆ drv_cipher_pke_ecdsa_sign()

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 
)

◆ drv_cipher_pke_ecdsa_verify()

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 
)

◆ drv_cipher_pke_init()

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.

◆ drv_cipher_pke_init_ecc_param()

td_void drv_cipher_pke_init_ecc_param ( const pke_default_parameters ecc_params,
const td_u32 ecc_num 
)

◆ drv_cipher_pke_register_wait_func()

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

◆ drv_cipher_pke_sm2_dsa_hash()

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 
)

◆ drv_cipher_pke_sm2_private_decrypt()

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 
)

◆ drv_cipher_pke_sm2_public_encrypt()

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 
)