aboutsummaryrefslogtreecommitdiffstats
path: root/librecrypt_test_supported.3
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-05-20 23:04:11 +0200
committerMattias Andrée <m@maandree.se>2026-05-20 23:04:11 +0200
commitc35b47228f5494f4d806e9166628110af6dd2469 (patch)
tree3b5a123af999a5e047b8565efee293a5d95c3f6c /librecrypt_test_supported.3
parentPrepare for supporting custom algorithms (diff)
downloadlibrecrypt-c35b47228f5494f4d806e9166628110af6dd2469.tar.gz
librecrypt-c35b47228f5494f4d806e9166628110af6dd2469.tar.bz2
librecrypt-c35b47228f5494f4d806e9166628110af6dd2469.tar.xz
Add (so far untested and undocument) support for pepperHEADmaster
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'librecrypt_test_supported.3')
-rw-r--r--librecrypt_test_supported.329
1 files changed, 25 insertions, 4 deletions
diff --git a/librecrypt_test_supported.3 b/librecrypt_test_supported.3
index 9cb1ec4..86dcc7a 100644
--- a/librecrypt_test_supported.3
+++ b/librecrypt_test_supported.3
@@ -7,7 +7,7 @@ librecrypt_test_supported - Check whether an algorithm chain is supported
#include <librecrypt.h>
int \fBlibrecrypt_test_supported\fP(const char *\fIphrase\fP, size_t \fIlen\fP, int \fItext\fP,
- const char *\fIsettings\fP, void *\fIreserved\fP);
+ const char *\fIsettings\fP, LIBRECRYPT_CONTEXT *\fIctx\fP);
.fi
.PP
Link with
@@ -47,9 +47,13 @@ is zero. If
is non-zero, UTF-8 without null bytes is assumed.
.PP
The
-.I reserved
-parameter is reserved for future use and should be
-.IR NULL .
+.I ctx
+parameter is used for providing library
+configurations, see
+.BR librecrypt_create_context (3)
+for more information; used
+.I NULL
+for default configurations.
.PP
If
.I phrase
@@ -97,6 +101,23 @@ The
function was introduced in version 1.0 of
.BR librecrypt .
+Since version 1.1 of the
+.BR librecrypt_test_supported ()
+function, the
+.I ctx
+parameter (previously called
+.IR reserved )
+has the type
+.B LIBRECRYPT_CONTEXT *
+(previously
+.BR "void *" ),
+and setting it to
+.RI non- NULL
+no longer causes failure with
+.I errno
+set to
+.IR EINVAL .
+
.SH SEE ALSO
.BR librecrypt (7),
.BR librecrypt_test_supported (3),