aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcryptobox/chacha20
diff options
context:
space:
mode:
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_ */