From 6009ece91d6de0b137fb5afe740aaa55ee32555d Mon Sep 17 00:00:00 2001 From: k-stachowiak Date: Wed, 19 Dec 2018 13:24:29 +0100 Subject: [PATCH] Increase strictness of NULL parameter validity in GCM's doxygen --- include/mbedtls/gcm.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/include/mbedtls/gcm.h b/include/mbedtls/gcm.h index cf8bed9a1..fccabb0d9 100644 --- a/include/mbedtls/gcm.h +++ b/include/mbedtls/gcm.h @@ -141,9 +141,8 @@ int mbedtls_gcm_setkey( mbedtls_gcm_context *ctx, * \param iv The initialization vector. This must be a readable buffer of * at least \p iv_len Bytes. * \param iv_len The length of the IV. - * \param add The buffer holding the additional data. If \p add_len is - * greater than zero, this must be of at least that size in - * Bytes. If `add_len == 0`, this may be \c NULL. + * \param add The buffer holding the additional data. This must be of at + * least that size in Bytes. * \param add_len The length of the additional data. * \param input The buffer holding the input data. If \p length is greater * than zero, this must be a readable buffer of at least that @@ -188,9 +187,8 @@ int mbedtls_gcm_crypt_and_tag( mbedtls_gcm_context *ctx, * \param iv The initialization vector. This must be a readable buffer * of at least \p iv_len Bytes. * \param iv_len The length of the IV. - * \param add The buffer holding the additional data. If \p add_len is - * greater than zero, this must be of at least that size in - * Bytes. If `add_len == 0`, this may be \c NULL. + * \param add The buffer holding the additional data. This must be of at + * least that size in Bytes. * \param add_len The length of the additional data. * \param tag The buffer holding the tag to verify. This must be a * readable buffer of at least \p tag_len Bytes.