aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcryptobox/blake2
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-29 09:53:19 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-29 09:53:19 +0000
commite273f67fdfd1cfeb4b1db7d6d8160b9b0c90df98 (patch)
tree0165cadf4043550470ee526d812df1517afbcd7a /src/libcryptobox/blake2
parent6a4752670d5cdd251ae68539ffcf1a99c67aabad (diff)
downloadrspamd-e273f67fdfd1cfeb4b1db7d6d8160b9b0c90df98.tar.gz
rspamd-e273f67fdfd1cfeb4b1db7d6d8160b9b0c90df98.zip
Output configuration of libcryptobox
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)
}