@@ -601,8 +601,7 @@ int mbedtls_rsa_private( mbedtls_rsa_context *ctx,
601
601
* #MBEDTLS_RSA_PUBLIC or #MBEDTLS_RSA_PRIVATE (deprecated).
602
602
* \param ilen The length of the plaintext in Bytes.
603
603
* \param input The input data to encrypt. This must be a readable
604
- * buffer of size \p ilen Bytes. It may be \c NULL if
605
- * `ilen == 0`.
604
+ * buffer of size \p ilen Bytes. This must not be \c NULL.
606
605
* \param output The output buffer. This must be a writable buffer
607
606
* of length \c ctx->len Bytes. For example, \c 256 Bytes
608
607
* for an 2048-bit RSA modulus.
@@ -642,8 +641,7 @@ int mbedtls_rsa_pkcs1_encrypt( mbedtls_rsa_context *ctx,
642
641
* #MBEDTLS_RSA_PUBLIC or #MBEDTLS_RSA_PRIVATE (deprecated).
643
642
* \param ilen The length of the plaintext in Bytes.
644
643
* \param input The input data to encrypt. This must be a readable
645
- * buffer of size \p ilen Bytes. It may be \c NULL if
646
- * `ilen == 0`.
644
+ * buffer of size \p ilen Bytes. This must not be \c NULL.
647
645
* \param output The output buffer. This must be a writable buffer
648
646
* of length \c ctx->len Bytes. For example, \c 256 Bytes
649
647
* for an 2048-bit RSA modulus.
@@ -687,8 +685,7 @@ int mbedtls_rsa_rsaes_pkcs1_v15_encrypt( mbedtls_rsa_context *ctx,
687
685
* \param label_len The length of the label in Bytes.
688
686
* \param ilen The length of the plaintext buffer \p input in Bytes.
689
687
* \param input The input data to encrypt. This must be a readable
690
- * buffer of size \p ilen Bytes. It may be \c NULL if
691
- * `ilen == 0`.
688
+ * buffer of size \p ilen Bytes. This must not be \c NULL.
692
689
* \param output The output buffer. This must be a writable buffer
693
690
* of length \c ctx->len Bytes. For example, \c 256 Bytes
694
691
* for an 2048-bit RSA modulus.
0 commit comments