From b29f4153e83623f24bebe99976e1368ef31bb008 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 21 May 2026 17:12:20 +0200 Subject: Add support for custom hash functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- librecrypt_hash_algorithm_end.3 | 44 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 librecrypt_hash_algorithm_end.3 (limited to 'librecrypt_hash_algorithm_end.3') diff --git a/librecrypt_hash_algorithm_end.3 b/librecrypt_hash_algorithm_end.3 new file mode 100644 index 0000000..1c332ed --- /dev/null +++ b/librecrypt_hash_algorithm_end.3 @@ -0,0 +1,44 @@ +.TH LIBRECRYPT_HASH_ALGORITHM_END 3 LIBRECRYPT +.SH NAME +librecrypt_hash_algorithm_end - Number of hash algorithms the linked library knows about + +.SH SYNOPSIS +.nf +#include + +enum librecrypt_hash_algorithm { + LIBRECRYPT_ARGON2I_V1_0, + LIBRECRYPT_ARGON2I_V1_3, + LIBRECRYPT_ARGON2D_V1_0, + LIBRECRYPT_ARGON2D_V1_3, + LIBRECRYPT_ARGON2ID_V1_0, + LIBRECRYPT_ARGON2ID_V1_3, + LIBRECRYPT_ARGON2DS_V1_0, + LIBRECRYPT_ARGON2DS_V1_3, + LIBRECRYPT_HASH_ALGORITHM_END /* end of enum marker (always last) */ +}; + +extern const enum librecrypt_hash_algorithm \fBlibrecrypt_hash_algorithm_end\fP; +.fi +.PP +Link with +.IR -lrecrypt . + +.SH DESCRIPTION +The +.BR librecrypt_hash_algorithm_end +variable is set to the value +.I LIBRECRYPT_HASH_ALGORITHM_END +had when the library was compiled, meaning that +it is the linked library's version of +.I LIBRECRYPT_HASH_ALGORITHM_END +rather than the application's version. + +.SH HISTORY +The +.BR librecrypt_hash_algorithm_end +variable was introduced in version 1.1 of +.BR librecrypt . + +.SH SEE ALSO +.BR librecrypt (7) -- cgit v1.3.1