From 1656da33a4750283e1024ea65e1c6573a07fd50a Mon Sep 17 00:00:00 2001 From: aunsane Date: Mon, 8 Oct 2018 20:59:56 +0300 Subject: updated libsodium to version 1.0.17 --- .../src/include/sodium/private/chacha20_ietf_ext.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 libs/libsodium/src/include/sodium/private/chacha20_ietf_ext.h (limited to 'libs/libsodium/src/include/sodium/private/chacha20_ietf_ext.h') 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 + +/* 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 + -- cgit v1.2.3