diff options
| author | Mattias Andrée <m@maandree.se> | 2026-05-16 12:11:02 +0200 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-05-16 12:11:02 +0200 |
| commit | 8ea4c3659a63fa4c5a1b85e2e6650ea2c3a4b91b (patch) | |
| tree | 827cd837787ad59964e9233b73629bb6c7c717a2 /librecrypt_realise_salts.3 | |
| parent | m (diff) | |
| download | librecrypt-8ea4c3659a63fa4c5a1b85e2e6650ea2c3a4b91b.tar.gz librecrypt-8ea4c3659a63fa4c5a1b85e2e6650ea2c3a4b91b.tar.bz2 librecrypt-8ea4c3659a63fa4c5a1b85e2e6650ea2c3a4b91b.tar.xz | |
Add "reserved" parameter to a few more functions
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'librecrypt_realise_salts.3')
| -rw-r--r-- | librecrypt_realise_salts.3 | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/librecrypt_realise_salts.3 b/librecrypt_realise_salts.3 index 0e314e2..7900a4f 100644 --- a/librecrypt_realise_salts.3 +++ b/librecrypt_realise_salts.3 @@ -7,7 +7,8 @@ librecrypt_realise_salts - Realise asterisk-encoded random salts in a settings s #include <librecrypt.h> ssize_t \fBlibrecrypt_realise_salts\fP(char *restrict \fIout_buffer\fP, size_t \fIsize\fP, const char *\fIsettings\fP, - ssize_t (*\fIrng\fP)(void *\fIout\fP, size_t \fIn\fP, void *\fIuser\fP), void *\fIuser\fP); + ssize_t (*\fIrng\fP)(void *\fIout\fP, size_t \fIn\fP, void *\fIuser\fP), void *\fIuser\fP, + void *\fIreserved\fP); .fi .PP Link with @@ -63,6 +64,11 @@ bytes (inclusively), write them to the front of and return the number of generated bytes, or -1 on failure. .PP +The +.I reserved +parameter is reserved for future use and should be +.IR NULL . +.PP On successful completion, if .I size is positive, the output is @@ -103,6 +109,11 @@ The .BR librecrypt_realise_salts () function will fail if: .TP +.B EINVAL +.I reserved +is not +.IR NULL . +.TP .B ERANGE The expected return value is greater than {SSIZE_MAX}. .TP |
