diff options
Diffstat (limited to '')
-rw-r--r-- | libar2.h | 3 | ||||
-rw-r--r-- | libar2_encode_base64.3 | 5 |
2 files changed, 6 insertions, 2 deletions
@@ -543,7 +543,8 @@ size_t libar2_encode_params(char *buf, const struct libar2_argon2_parameters *pa * to a length divible by 4 * * @param buf Output buffer, or `NULL` - * @param data The data to encode + * @param data The data to encode, may be + * `NULL` if `buf` is `NULL` * @param len The number of bytes in `data` * @return The number of bytes required for `buf`, * including the NUL byte added to the end diff --git a/libar2_encode_base64.3 b/libar2_encode_base64.3 index bb5b927..11bf98e 100644 --- a/libar2_encode_base64.3 +++ b/libar2_encode_base64.3 @@ -42,7 +42,10 @@ may only be .I NULL if .I len -is 0. +is 0 or if +.I buf +is +.IR NULL . .SH RETURN VALUES The |