aboutsummaryrefslogtreecommitdiffstats
path: root/librecrypt_context_set_pepper.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-05-21 17:12:20 +0200
committerMattias Andrée <m@maandree.se>2026-05-21 17:12:20 +0200
commitb29f4153e83623f24bebe99976e1368ef31bb008 (patch)
tree65473709df1194a2f9277dc5fb47add5e41430c0 /librecrypt_context_set_pepper.c
parentAdd (so far untested and undocument) support for pepper (diff)
downloadlibrecrypt-b29f4153e83623f24bebe99976e1368ef31bb008.tar.gz
librecrypt-b29f4153e83623f24bebe99976e1368ef31bb008.tar.bz2
librecrypt-b29f4153e83623f24bebe99976e1368ef31bb008.tar.xz
Add support for custom hash functions
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'librecrypt_context_set_pepper.c')
-rw-r--r--librecrypt_context_set_pepper.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/librecrypt_context_set_pepper.c b/librecrypt_context_set_pepper.c
deleted file mode 100644
index a5d6151..0000000
--- a/librecrypt_context_set_pepper.c
+++ /dev/null
@@ -1,37 +0,0 @@
-/* See LICENSE file for copyright and license details. */
-#include "common.h"
-#ifndef TEST
-
-
-int
-librecrypt_context_set_pepper(LIBRECRYPT_CONTEXT *ctx, enum librecrypt_hash_algorithm algo, const void *data, size_t len)
-{
- struct pepper *pepper;
-
- pepper = librecrypt_context_get_pepper_(ctx, algo, len);
- if (!pepper)
- return -1;
-
- pepper->data = data;
- pepper->len = len;
- return 0;
-}
-
-
-#else
-
-
-int
-main(void)
-{
- SET_UP_ALARM();
- INIT_RESOURCE_TEST();
-
- /* TODO test */
-
- STOP_RESOURCE_TEST();
- return 0;
-}
-
-
-#endif