aboutsummaryrefslogtreecommitdiffstats
path: root/libblake.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-01-06 00:51:14 +0100
committerMattias Andrée <maandree@kth.se>2022-01-06 00:51:14 +0100
commitdf593680b8adf2ab6924ff38acbeb7b42977c9a0 (patch)
tree63f3c823e43213e6d72f00bc8575ea2fb505bdab /libblake.h
parentFirst commit (diff)
downloadlibblake-df593680b8adf2ab6924ff38acbeb7b42977c9a0.tar.gz
libblake-df593680b8adf2ab6924ff38acbeb7b42977c9a0.tar.bz2
libblake-df593680b8adf2ab6924ff38acbeb7b42977c9a0.tar.xz
libblake_decode_hex: verify input
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libblake.h')
-rw-r--r--libblake.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libblake.h b/libblake.h
index 9f8f3d7..7d818fc 100644
--- a/libblake.h
+++ b/libblake.h
@@ -12,7 +12,7 @@
#endif
void libblake_encode_hex(const void *data, size_t n, char out[/* static n * 2 + 1 */], int uppercase);
-size_t libblake_decode_hex(const char *data, size_t n, void *out);
+size_t libblake_decode_hex(const char *data, size_t n, void *out, int *validp);
#define LIBBLAKE_BLAKE224_OUTPUT_SIZE (224 / 8)
#define LIBBLAKE_BLAKE256_OUTPUT_SIZE (256 / 8)