aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcryptobox/chacha20
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/chacha20
parent6a4752670d5cdd251ae68539ffcf1a99c67aabad (diff)
downloadrspamd-e273f67fdfd1cfeb4b1db7d6d8160b9b0c90df98.tar.gz
rspamd-e273f67fdfd1cfeb4b1db7d6d8160b9b0c90df98.zip
Output configuration of libcryptobox
Diffstat (limited to 'src/libcryptobox/chacha20')
-rw-r--r--src/libcryptobox/chacha20/chacha.c4
-rw-r--r--src/libcryptobox/chacha20/chacha.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/libcryptobox/chacha20/chacha.c b/src/libcryptobox/chacha20/chacha.c
index b349d9ff9..4bb2098a3 100644
--- a/src/libcryptobox/chacha20/chacha.c
+++ b/src/libcryptobox/chacha20/chacha.c
@@ -89,7 +89,7 @@ chacha_is_aligned (const void *p)
return ((size_t) p & (sizeof(size_t) - 1)) == 0;
}
-void
+const char *
chacha_load (void)
{
guint i;
@@ -102,6 +102,8 @@ chacha_load (void)
}
}
}
+
+ return chacha_impl->desc;
}
void chacha_init (chacha_state *S, const chacha_key *key,
diff --git a/src/libcryptobox/chacha20/chacha.h b/src/libcryptobox/chacha20/chacha.h
index cd2a63bd9..f69a63db9 100644
--- a/src/libcryptobox/chacha20/chacha.h
+++ b/src/libcryptobox/chacha20/chacha.h
@@ -74,6 +74,6 @@ void xchacha (const chacha_key *key, const chacha_iv24 *iv,
const unsigned char *in, unsigned char *out, size_t inlen,
size_t rounds);
-void chacha_load (void);
+const char* chacha_load (void);
#endif /* CHACHA_H_ */