WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
drv_pke.h 文件参考
#include "hal_common.h"
#include "crypto_pke_struct.h"
drv_pke.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

函数

td_s32 drv_cipher_pke_init (void)
 
td_s32 drv_cipher_pke_deinit (void)
 
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_rsa_gen_key (const drv_pke_data *input_e, drv_pke_rsa_priv_key *output_priv_key)
 
td_s32 drv_cipher_pke_rsa_sign (const drv_pke_rsa_priv_key *priv_key, const drv_pke_rsa_scheme scheme, const drv_pke_hash_type hash_type, const drv_pke_data *input_hash, const drv_pke_data *sign)
 
td_s32 drv_cipher_pke_rsa_verify (const drv_pke_rsa_pub_key *pub_key, drv_pke_rsa_scheme scheme, const drv_pke_hash_type hash_type, const drv_pke_data *input_hash, const drv_pke_data *sign)
 
td_s32 drv_cipher_pke_rsa_public_encrypt (const drv_pke_rsa_scheme scheme, const drv_pke_hash_type hash_type, const drv_pke_rsa_pub_key *pub_key, const drv_pke_data *input, const drv_pke_data *label, drv_pke_data *output)
 
td_s32 drv_cipher_pke_rsa_private_decrypt (const drv_pke_rsa_scheme scheme, const drv_pke_hash_type hash_type, const drv_pke_rsa_priv_key *priv_key, const drv_pke_data *input, const drv_pke_data *label, drv_pke_data *output)
 
td_s32 drv_cipher_pke_ecc_gen_key (drv_pke_ecc_curve_type curve_type, const drv_pke_data *input_priv_key, const drv_pke_data *output_priv_key, const drv_pke_ecc_point *output_pub_key)
 
td_s32 drv_cipher_pke_ecc_gen_ecdh_key (drv_pke_ecc_curve_type curve_type, const drv_pke_ecc_point *input_pub_key, const drv_pke_data *input_priv_key, const drv_pke_data *output_shared_key)
 
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_eddsa_sign (drv_pke_ecc_curve_type curve_type, const drv_pke_data *priv_key, const drv_pke_msg *msg, const drv_pke_ecc_sig *sig)
 
td_s32 drv_cipher_pke_eddsa_verify (drv_pke_ecc_curve_type curve_type, const drv_pke_ecc_point *pub_key, const drv_pke_msg *msg, 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)
 
td_s32 drv_cipher_pke_dh_gen_key (const drv_pke_data *g_data, const drv_pke_data *mod_n, const drv_pke_data *input_priv_key, const drv_pke_data *output_priv_key, const drv_pke_data *output_pub_key)
 
td_s32 drv_cipher_pke_dh_compute_key (const drv_pke_data *mod_n, const drv_pke_data *input_priv_key, const drv_pke_data *input_pub_key, const drv_pke_data *output_shared_key)
 

函数说明

◆ drv_cipher_pke_deinit()

td_s32 drv_cipher_pke_deinit ( void  )

◆ drv_cipher_pke_dh_compute_key()

td_s32 drv_cipher_pke_dh_compute_key ( const drv_pke_data mod_n,
const drv_pke_data input_priv_key,
const drv_pke_data input_pub_key,
const drv_pke_data output_shared_key 
)

◆ drv_cipher_pke_dh_gen_key()

td_s32 drv_cipher_pke_dh_gen_key ( const drv_pke_data g_data,
const drv_pke_data mod_n,
const drv_pke_data input_priv_key,
const drv_pke_data output_priv_key,
const drv_pke_data output_pub_key 
)

◆ drv_cipher_pke_ecc_gen_ecdh_key()

td_s32 drv_cipher_pke_ecc_gen_ecdh_key ( drv_pke_ecc_curve_type  curve_type,
const drv_pke_ecc_point input_pub_key,
const drv_pke_data input_priv_key,
const drv_pke_data output_shared_key 
)

◆ drv_cipher_pke_ecc_gen_key()

td_s32 drv_cipher_pke_ecc_gen_key ( drv_pke_ecc_curve_type  curve_type,
const drv_pke_data input_priv_key,
const drv_pke_data output_priv_key,
const drv_pke_ecc_point output_pub_key 
)

◆ 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_eddsa_sign()

td_s32 drv_cipher_pke_eddsa_sign ( drv_pke_ecc_curve_type  curve_type,
const drv_pke_data priv_key,
const drv_pke_msg msg,
const drv_pke_ecc_sig sig 
)

◆ drv_cipher_pke_eddsa_verify()

td_s32 drv_cipher_pke_eddsa_verify ( drv_pke_ecc_curve_type  curve_type,
const drv_pke_ecc_point pub_key,
const drv_pke_msg msg,
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_rsa_gen_key()

td_s32 drv_cipher_pke_rsa_gen_key ( const drv_pke_data input_e,
drv_pke_rsa_priv_key output_priv_key 
)

◆ drv_cipher_pke_rsa_private_decrypt()

td_s32 drv_cipher_pke_rsa_private_decrypt ( const drv_pke_rsa_scheme  scheme,
const drv_pke_hash_type  hash_type,
const drv_pke_rsa_priv_key priv_key,
const drv_pke_data input,
const drv_pke_data label,
drv_pke_data output 
)

◆ drv_cipher_pke_rsa_public_encrypt()

td_s32 drv_cipher_pke_rsa_public_encrypt ( const drv_pke_rsa_scheme  scheme,
const drv_pke_hash_type  hash_type,
const drv_pke_rsa_pub_key pub_key,
const drv_pke_data input,
const drv_pke_data label,
drv_pke_data output 
)

◆ drv_cipher_pke_rsa_sign()

td_s32 drv_cipher_pke_rsa_sign ( const drv_pke_rsa_priv_key priv_key,
const drv_pke_rsa_scheme  scheme,
const drv_pke_hash_type  hash_type,
const drv_pke_data input_hash,
const drv_pke_data sign 
)

◆ drv_cipher_pke_rsa_verify()

td_s32 drv_cipher_pke_rsa_verify ( const drv_pke_rsa_pub_key pub_key,
drv_pke_rsa_scheme  scheme,
const drv_pke_hash_type  hash_type,
const drv_pke_data input_hash,
const drv_pke_data sign 
)

◆ 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 
)