summaryrefslogtreecommitdiff
path: root/libs/libsodium/src/include/sodium/private/chacha20_ietf_ext.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libsodium/src/include/sodium/private/chacha20_ietf_ext.h')
-rw-r--r--libs/libsodium/src/include/sodium/private/chacha20_ietf_ext.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/libs/libsodium/src/include/sodium/private/chacha20_ietf_ext.h b/libs/libsodium/src/include/sodium/private/chacha20_ietf_ext.h
new file mode 100644
index 0000000000..2c80b96aa7
--- /dev/null
+++ b/libs/libsodium/src/include/sodium/private/chacha20_ietf_ext.h
@@ -0,0 +1,16 @@
+#ifndef chacha20_ietf_ext_H
+#define chacha20_ietf_ext_H
+
+#include <stdint.h>
+
+/* The ietf_ext variant allows the internal counter to overflow into the IV */
+
+int crypto_stream_chacha20_ietf_ext(unsigned char *c, unsigned long long clen,
+ const unsigned char *n, const unsigned char *k);
+
+int crypto_stream_chacha20_ietf_ext_xor_ic(unsigned char *c, const unsigned char *m,
+ unsigned long long mlen,
+ const unsigned char *n, uint32_t ic,
+ const unsigned char *k);
+#endif
+