aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcryptobox/blake2
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcryptobox/blake2')
-rw-r--r--src/libcryptobox/blake2/blake2.c4
-rw-r--r--src/libcryptobox/blake2/blake2.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/libcryptobox/blake2/blake2.c b/src/libcryptobox/blake2/blake2.c
index addaf61f5..ecc465b35 100644
--- a/src/libcryptobox/blake2/blake2.c
+++ b/src/libcryptobox/blake2/blake2.c
@@ -278,7 +278,7 @@ blake2b_keyed (unsigned char *hash,
blake2b_final (&S, hash);
}
-void
+const char*
blake2b_load (void)
{
guint i;
@@ -291,4 +291,6 @@ blake2b_load (void)
}
}
}
+
+ return blake2b_opt->desc;
}
diff --git a/src/libcryptobox/blake2/blake2.h b/src/libcryptobox/blake2/blake2.h
index 37f1dbb4b..903a6ed0e 100644
--- a/src/libcryptobox/blake2/blake2.h
+++ b/src/libcryptobox/blake2/blake2.h
@@ -65,7 +65,7 @@ void blake2b_keyed (unsigned char *hash,
const unsigned char *key,
size_t keylen);
-void blake2b_load (void);
+const char* blake2b_load (void);
#if defined(__cplusplus)
}