Lines Matching refs:buflen
457 char **p, const size_t buflen) in mpi_write_hlp() argument
462 char *p_end = *p + buflen; in mpi_write_hlp()
465 if (length >= buflen) { in mpi_write_hlp()
495 char *buf, size_t buflen, size_t *olen) in mbedtls_mpi_write_string() argument
503 MPI_VALIDATE_RET(buflen == 0 || buf != NULL); in mbedtls_mpi_write_string()
528 if (buflen < n) { in mbedtls_mpi_write_string()
538 buflen--; in mbedtls_mpi_write_string()
565 MBEDTLS_MPI_CHK(mpi_write_hlp(&T, radix, &p, buflen)); in mbedtls_mpi_write_string()
680 const unsigned char *buf, size_t buflen) in mbedtls_mpi_read_binary_le() argument
683 const size_t limbs = CHARS_TO_LIMBS(buflen); in mbedtls_mpi_read_binary_le()
688 MBEDTLS_MPI_CHK(mbedtls_mpi_core_read_le(X->p, X->n, buf, buflen)); in mbedtls_mpi_read_binary_le()
706 int mbedtls_mpi_read_binary(mbedtls_mpi *X, const unsigned char *buf, size_t buflen) in mbedtls_mpi_read_binary() argument
709 const size_t limbs = CHARS_TO_LIMBS(buflen); in mbedtls_mpi_read_binary()
712 MPI_VALIDATE_RET(buflen == 0 || buf != NULL); in mbedtls_mpi_read_binary()
717 MBEDTLS_MPI_CHK(mbedtls_mpi_core_read_be(X->p, X->n, buf, buflen)); in mbedtls_mpi_read_binary()
733 unsigned char *buf, size_t buflen) in mbedtls_mpi_write_binary_le() argument
735 return mbedtls_mpi_core_write_le(X->p, X->n, buf, buflen); in mbedtls_mpi_write_binary_le()
742 unsigned char *buf, size_t buflen) in mbedtls_mpi_write_binary() argument
744 return mbedtls_mpi_core_write_be(X->p, X->n, buf, buflen); in mbedtls_mpi_write_binary()