void crypto_wait_t
Definition crypto_osal_lib.h:19
drv_pke_rsa_scheme
Definition crypto_pke_struct.h:50
drv_pke_hash_type
Definition crypto_pke_struct.h:57
drv_pke_ecc_curve_type
Definition crypto_pke_struct.h:32
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)
Definition drv_pke_ecdsa.c:117
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)
Definition drv_pke_ecdsa.c:96
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)
Definition drv_pke_ecdsa.c:15
td_s32 drv_cipher_pke_deinit(void)
Definition drv_pke_ecdsa.c:48
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)
Definition drv_pke_ecdsa.c:62
td_s32 drv_cipher_pke_init(void)
Definition drv_pke_ecdsa.c:34
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)
Definition drv_pke_rsa.c:1397
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)
Definition drv_pke_rsa.c:1322
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)
Definition drv_pke_ecdsa.c:106
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)
Definition drv_pke_rsa.c:1023
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)
Definition drv_pke_ecc_ecdh.c:65
td_void drv_cipher_pke_init_ecc_param(const pke_default_parameters *ecc_params, const td_u32 *ecc_num)
Definition drv_pke_ecdsa.c:28
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)
Definition drv_pke_rsa.c:1077
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)
Definition drv_pke_ecc_gen_key.c:110
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)
Definition drv_pke_ecdsa.c:79
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_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)
Definition drv_pke_rsa.c:1129
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_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_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)
Definition drv_pke_rsa.c:1187
td_s32(* crypto_wait_timeout_interruptible)(crypto_wait_t *wait, drv_wait_condition_func func, const td_void *param, const td_ulong timeout_ms)
Definition hal_common.h:69
Definition crypto_pke_struct.h:74
Definition crypto_pke_struct.h:80
Definition crypto_pke_struct.h:89
Definition crypto_pke_struct.h:111
Definition crypto_pke_struct.h:118
Definition crypto_pke_struct.h:138
Definition crypto_pke_struct.h:157
unsigned int uintptr_t
Definition td_type.h:65
void td_void
Definition td_type.h:49
unsigned int td_u32
Definition td_type.h:38
int td_s32
Definition td_type.h:44