Home
last modified time | relevance | path

Searched refs:x_bytes (Results 1 – 5 of 5) sorted by relevance

/optee_os/core/drivers/crypto/hisilicon/
H A Dhpre_montgomery.h30 uint32_t x_bytes; member
H A Dhpre_montgomery.c239 msg->x_bytes = msg->curve_bytes; in hpre_montgomery_params_fill()
241 memcpy(x, curve->x, msg->x_bytes); in hpre_montgomery_params_fill()
243 memcpy(x, pubkey, msg->x_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_ecc.h21 uint32_t x_bytes; member
H A Dhpre_ecc.c739 ecc_dh->x_bytes); in hpre_ecc_dh_transfer_in()
776 ecc_dh->x_bytes = msg->curve_bytes; in hpre_ecc_dh_params_fill()
780 memcpy(x, curve->x, ecc_dh->x_bytes); in hpre_ecc_dh_params_fill()
785 ecc_dh->x_bytes = crypto_bignum_num_bytes(pubkey->x); in hpre_ecc_dh_params_fill()
/optee_os/lib/libmbedtls/mbedtls/library/
H A Decjpake.c767 size_t x_bytes; in mbedtls_ecjpake_derive_secret() local
782 x_bytes = (ctx->grp.pbits + 7) / 8; in mbedtls_ecjpake_derive_secret()
783 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&K.X, kx, x_bytes)); in mbedtls_ecjpake_derive_secret()
785 kx, x_bytes, buf)); in mbedtls_ecjpake_derive_secret()