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.7 | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) (limited to 'librecrypt.7') diff --git a/librecrypt.7 b/librecrypt.7 index 8abf6d7..caf7eda 100644 --- a/librecrypt.7 +++ b/librecrypt.7 @@ -78,7 +78,7 @@ Generate a password hash settings string. Realise asterisk-encoded random salts in a settings string. .sp -.SS Secure application helper functions: +.SS Application helper functions: .TP .BR librecrypt_equal (3) Compare strings in constant time. @@ -91,6 +91,9 @@ Securely erase a memory buffer. .TP .BR librecrypt_wipe_str (3) Securely erase a string. +.TP +.BR librecrypt_scan_settings "(3) (ADVANCED)" +Parse and validate a password hash string. .sp .SS Password hash string decomposition functions (ADVANCED): .TP @@ -126,10 +129,35 @@ binary. Get encoding alphabet for the last algorithm in a chain. .sp -.SS Library introspection functions (ADVANCED): +.SS Library introspection (ADVANCED): +.TP .BR librecrypt_is_enabled (3) Check whenther the library is compiled with support for a specific hash algorithm. +.TP +.BR librecrypt_hash_algorithm_end (3) +Number of hash algorithms the linked library knows +about. +.sp +.SS Library tweaking functions (ADVANCED): +.TP +.BR librecrypt_create_context (3) +Create a library configuration object. +.TP +.BR librecrypt_free_context (3) +Deallocate a library configuration object. +.TP +.BR librecrypt_set_pepper (3) +Set the pepper to use for a hash algorithm. +.TP +.BR librecrypt_set_custom_algorithms (3) +Set application-provided hash algorithms. +.TP +.BR librecrypt_set_user_data (3) +Set application-defined data. +.TP +.BR librecrypt_get_user_data (3) +Retrieve application-defined data. .SH NOTES Using -- cgit v1.3.1