aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcryptobox/cryptobox.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-13 16:19:02 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-13 17:16:18 +0000
commitfbddd1b83f1e21068e1b287af1861fb40649eab8 (patch)
tree3ccdd0264fdc751605771c4335eb688d3fb0416f /src/libcryptobox/cryptobox.h
parent634a8b69dd407a79ca2fae32493710985bffa32c (diff)
downloadrspamd-fbddd1b83f1e21068e1b287af1861fb40649eab8.tar.gz
rspamd-fbddd1b83f1e21068e1b287af1861fb40649eab8.zip
[Feature] Start import of the optimized base64 decode
Diffstat (limited to 'src/libcryptobox/cryptobox.h')
-rw-r--r--src/libcryptobox/cryptobox.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libcryptobox/cryptobox.h b/src/libcryptobox/cryptobox.h
index 13a3b9121..07cc5adb9 100644
--- a/src/libcryptobox/cryptobox.h
+++ b/src/libcryptobox/cryptobox.h
@@ -370,4 +370,14 @@ guint64 rspamd_cryptobox_fast_hash_specific (
const void *data,
gsize len, guint64 seed);
+/**
+ * Decode base64 using platform optimized code
+ * @param in
+ * @param inlen
+ * @param out
+ * @param outlen
+ * @return
+ */
+gboolean rspamd_cryptobox_base64_decode (const gchar *in, gsize inlen,
+ guchar *out, gsize *outlen);
#endif /* CRYPTOBOX_H_ */