Lines Matching refs:plen
879 size_t plen; in mbedtls_ecp_point_write_binary() local
887 plen = mbedtls_mpi_size( &grp->P ); in mbedtls_ecp_point_write_binary()
893 *olen = plen; in mbedtls_ecp_point_write_binary()
897 MBEDTLS_MPI_CHK( mbedtls_mpi_write_binary_le( &P->X, buf, plen ) ); in mbedtls_ecp_point_write_binary()
919 *olen = 2 * plen + 1; in mbedtls_ecp_point_write_binary()
925 MBEDTLS_MPI_CHK( mbedtls_mpi_write_binary( &P->X, buf + 1, plen ) ); in mbedtls_ecp_point_write_binary()
926 MBEDTLS_MPI_CHK( mbedtls_mpi_write_binary( &P->Y, buf + 1 + plen, plen ) ); in mbedtls_ecp_point_write_binary()
930 *olen = plen + 1; in mbedtls_ecp_point_write_binary()
936 MBEDTLS_MPI_CHK( mbedtls_mpi_write_binary( &P->X, buf + 1, plen ) ); in mbedtls_ecp_point_write_binary()
953 size_t plen; in mbedtls_ecp_point_read_binary() local
961 plen = mbedtls_mpi_size( &grp->P ); in mbedtls_ecp_point_read_binary()
966 if( plen != ilen ) in mbedtls_ecp_point_read_binary()
969 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary_le( &pt->X, buf, plen ) ); in mbedtls_ecp_point_read_binary()
974 MBEDTLS_MPI_CHK( mbedtls_mpi_set_bit( &pt->X, plen * 8 - 1, 0 ) ); in mbedtls_ecp_point_read_binary()
993 if( ilen != 2 * plen + 1 ) in mbedtls_ecp_point_read_binary()
996 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &pt->X, buf + 1, plen ) ); in mbedtls_ecp_point_read_binary()
998 buf + 1 + plen, plen ) ); in mbedtls_ecp_point_read_binary()