Lines Matching defs:plen
697 size_t plen;
703 plen = mbedtls_mpi_size(&grp->P);
708 *olen = plen;
713 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary_le(&P->X, buf, plen));
733 *olen = 2 * plen + 1;
740 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&P->X, buf + 1, plen));
741 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&P->Y, buf + 1 + plen, plen));
743 *olen = plen + 1;
750 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&P->X, buf + 1, plen));
774 size_t plen;
779 plen = mbedtls_mpi_size(&grp->P);
783 if (plen != ilen) {
787 MBEDTLS_MPI_CHK(mbedtls_mpi_read_binary_le(&pt->X, buf, plen));
792 MBEDTLS_MPI_CHK(mbedtls_mpi_set_bit(&pt->X, plen * 8 - 1, 0));
808 if (ilen < 1 + plen) {
812 MBEDTLS_MPI_CHK(mbedtls_mpi_read_binary(&pt->X, buf + 1, plen));
817 if (ilen != 1 + plen * 2) {
820 return mbedtls_mpi_read_binary(&pt->Y, buf + 1 + plen, plen);
823 if (ilen != 1 + plen) {