Home
last modified time | relevance | path

Searched refs:hpre_bin_from_crypto_bin (Results 1 – 6 of 6) sorted by relevance

/optee_os/core/drivers/crypto/hisilicon/
H A Dhpre_ecc.c391 ret = hpre_bin_from_crypto_bin(p, p, key_bytes, curve_bytes); in hpre_ecc_curve_to_hpre_bin()
397 ret = hpre_bin_from_crypto_bin(a, a, key_bytes, curve_bytes); in hpre_ecc_curve_to_hpre_bin()
403 ret = hpre_bin_from_crypto_bin(b, b, key_bytes, curve_bytes); in hpre_ecc_curve_to_hpre_bin()
410 ret = hpre_bin_from_crypto_bin(n, n, key_bytes, curve_bytes); in hpre_ecc_curve_to_hpre_bin()
418 ret = hpre_bin_from_crypto_bin(gx, gx, key_bytes, curve_bytes); in hpre_ecc_curve_to_hpre_bin()
426 ret = hpre_bin_from_crypto_bin(gy, gy, key_bytes, curve_bytes); in hpre_ecc_curve_to_hpre_bin()
724 ret = hpre_bin_from_crypto_bin(d, d, msg->key_bytes, ecc_dh->d_bytes); in hpre_ecc_dh_transfer_key()
738 ret = hpre_bin_from_crypto_bin(x, x, msg->key_bytes, in hpre_ecc_dh_transfer_in()
745 ret = hpre_bin_from_crypto_bin(y, y, msg->key_bytes, in hpre_ecc_dh_transfer_in()
1055 ret = hpre_bin_from_crypto_bin(d, d, msg->key_bytes, in hpre_ecc_sign_params_fill()
[all …]
H A Dhpre_rsa.c223 ret = hpre_bin_from_crypto_bin(msg->pubkey, msg->pubkey, in hpre_rsa_encrypt_bn2bin()
230 ret = hpre_bin_from_crypto_bin(n, n, msg->key_bytes, n_len); in hpre_rsa_encrypt_bn2bin()
236 ret = hpre_bin_from_crypto_bin(msg->in, rsa_data->message.data, in hpre_rsa_encrypt_bn2bin()
603 ret = hpre_bin_from_crypto_bin(dq, dq, p_bytes, dq_len); in hpre_rsa_crt_decrypt_bn2bin()
609 ret = hpre_bin_from_crypto_bin(dp, dp, p_bytes, dp_len); in hpre_rsa_crt_decrypt_bn2bin()
615 ret = hpre_bin_from_crypto_bin(q, q, p_bytes, q_len); in hpre_rsa_crt_decrypt_bn2bin()
621 ret = hpre_bin_from_crypto_bin(p, p, p_bytes, p_len); in hpre_rsa_crt_decrypt_bn2bin()
627 ret = hpre_bin_from_crypto_bin(qp, qp, p_bytes, qp_len); in hpre_rsa_crt_decrypt_bn2bin()
633 ret = hpre_bin_from_crypto_bin(msg->in, rsa_data->cipher.data, in hpre_rsa_crt_decrypt_bn2bin()
658 ret = hpre_bin_from_crypto_bin(msg->prikey, msg->prikey, msg->key_bytes, in hpre_rsa_ncrt_decrypt_bn2bin()
[all …]
H A Dhpre_montgomery.c245 ret = hpre_bin_from_crypto_bin(p, p, msg->key_bytes, msg->curve_bytes); in hpre_montgomery_params_fill()
251 ret = hpre_bin_from_crypto_bin(a, a, msg->key_bytes, msg->curve_bytes); in hpre_montgomery_params_fill()
257 ret = hpre_bin_from_crypto_bin(k, k, msg->key_bytes, msg->curve_bytes); in hpre_montgomery_params_fill()
263 ret = hpre_bin_from_crypto_bin(x, x, msg->key_bytes, msg->x_bytes); in hpre_montgomery_params_fill()
H A Dhpre_main.h90 enum hisi_drv_status hpre_bin_from_crypto_bin(uint8_t *dst, const uint8_t *src,
H A Dhpre_dh.c229 ret = hpre_bin_from_crypto_bin(x, x, msg->key_bytes, msg->xbytes); in hpre_dh_params_bn2bin()
235 ret = hpre_bin_from_crypto_bin(p, p, msg->key_bytes, msg->pbytes); in hpre_dh_params_bn2bin()
241 ret = hpre_bin_from_crypto_bin(msg->g, msg->g, msg->key_bytes, in hpre_dh_params_bn2bin()
H A Dhpre_main.c85 enum hisi_drv_status hpre_bin_from_crypto_bin(uint8_t *dst, const uint8_t *src, in hpre_bin_from_crypto_bin() function