Home
last modified time | relevance | path

Searched refs:plen (Results 1 – 3 of 3) sorted by relevance

/trusted-firmware-m-3.4.0/platform/ext/target/stm/common/hal/accelerator/
Decp_alt.c766 size_t plen; in mbedtls_ecp_point_write_binary() local
774 plen = mbedtls_mpi_size( &grp->P ); in mbedtls_ecp_point_write_binary()
780 *olen = plen; in mbedtls_ecp_point_write_binary()
784 MBEDTLS_MPI_CHK( mbedtls_mpi_write_binary_le( &P->MBEDTLS_PRIVATE(X), buf, plen ) ); in mbedtls_ecp_point_write_binary()
806 *olen = 2 * plen + 1; in mbedtls_ecp_point_write_binary()
812 MBEDTLS_MPI_CHK( mbedtls_mpi_write_binary( &P->MBEDTLS_PRIVATE(X), buf + 1, plen ) ); in mbedtls_ecp_point_write_binary()
813 … MBEDTLS_MPI_CHK( mbedtls_mpi_write_binary( &P->MBEDTLS_PRIVATE(Y), buf + 1 + plen, plen ) ); in mbedtls_ecp_point_write_binary()
817 *olen = plen + 1; in mbedtls_ecp_point_write_binary()
823 MBEDTLS_MPI_CHK( mbedtls_mpi_write_binary( &P->MBEDTLS_PRIVATE(X), buf + 1, plen ) ); in mbedtls_ecp_point_write_binary()
840 size_t plen; in mbedtls_ecp_point_read_binary() local
[all …]
Drsa_alt.c485 plen, in rsa_crt_pka_modexp() local
506 plen = mbedtls_mpi_size( p ); in rsa_crt_pka_modexp()
507 p_binary = mbedtls_calloc( 1, plen ); in rsa_crt_pka_modexp()
509 MBEDTLS_MPI_CHK( mbedtls_mpi_write_binary( p, p_binary, plen ) ); in rsa_crt_pka_modexp()
565 mbedtls_platform_zeroize( p_binary, plen ); in rsa_crt_pka_modexp()
Decp_curves_alt.c607 const mbedtls_mpi_uint *p, size_t plen, in ecp_group_load() argument
616 ecp_mpi_load( &grp->P, p, plen ); in ecp_group_load()