diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-29 09:53:19 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-29 09:53:19 +0000 |
commit | e273f67fdfd1cfeb4b1db7d6d8160b9b0c90df98 (patch) | |
tree | 0165cadf4043550470ee526d812df1517afbcd7a /src/libcryptobox/poly1305 | |
parent | 6a4752670d5cdd251ae68539ffcf1a99c67aabad (diff) | |
download | rspamd-e273f67fdfd1cfeb4b1db7d6d8160b9b0c90df98.tar.gz rspamd-e273f67fdfd1cfeb4b1db7d6d8160b9b0c90df98.zip |
Output configuration of libcryptobox
Diffstat (limited to 'src/libcryptobox/poly1305')
-rw-r--r-- | src/libcryptobox/poly1305/poly1305.c | 5 | ||||
-rw-r--r-- | src/libcryptobox/poly1305/poly1305.h | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/libcryptobox/poly1305/poly1305.c b/src/libcryptobox/poly1305/poly1305.c index c98b28017..9e1eed04e 100644 --- a/src/libcryptobox/poly1305/poly1305.c +++ b/src/libcryptobox/poly1305/poly1305.c @@ -101,7 +101,8 @@ static int poly1305_is_aligned(const void *p) return ((size_t) p & (sizeof(size_t) - 1)) == 0; } -void poly1305_load(void) +const char* +poly1305_load(void) { guint i; @@ -113,6 +114,8 @@ void poly1305_load(void) } } } + + return poly1305_opt->desc; } /* processes inlen bytes (full blocks only), handling input alignment */ diff --git a/src/libcryptobox/poly1305/poly1305.h b/src/libcryptobox/poly1305/poly1305.h index 8eae97c88..902a9c288 100644 --- a/src/libcryptobox/poly1305/poly1305.h +++ b/src/libcryptobox/poly1305/poly1305.h @@ -28,7 +28,7 @@ void poly1305_auth(unsigned char *mac, const unsigned char *in, size_t inlen, const poly1305_key *key); int poly1305_verify(const unsigned char mac1[16], const unsigned char mac2[16]); -void poly1305_load(void); +const char* poly1305_load(void); #if defined(__cplusplus) } |