summaryrefslogtreecommitdiff
path: root/libs/libsodium/src/crypto_secretbox/crypto_secretbox.c
diff options
context:
space:
mode:
authordartraiden <wowemuh@gmail.com>2023-09-14 22:53:45 +0300
committerdartraiden <wowemuh@gmail.com>2023-09-14 22:53:45 +0300
commitc400f5c17af4996eb2ecf0597e17eb25c17857d8 (patch)
treec895207a210e5538c491ba9fc15ee0f28780a7f6 /libs/libsodium/src/crypto_secretbox/crypto_secretbox.c
parentcd3146d46f9b9e24065b9ec31d963d52da3cdcbe (diff)
libsodium: update to 1.0.19
Diffstat (limited to 'libs/libsodium/src/crypto_secretbox/crypto_secretbox.c')
-rw-r--r--libs/libsodium/src/crypto_secretbox/crypto_secretbox.c134
1 files changed, 67 insertions, 67 deletions
diff --git a/libs/libsodium/src/crypto_secretbox/crypto_secretbox.c b/libs/libsodium/src/crypto_secretbox/crypto_secretbox.c
index 45f678ecdf..d85c7b4efb 100644
--- a/libs/libsodium/src/crypto_secretbox/crypto_secretbox.c
+++ b/libs/libsodium/src/crypto_secretbox/crypto_secretbox.c
@@ -1,67 +1,67 @@
-
-#include "crypto_secretbox.h"
-#include "randombytes.h"
-
-size_t
-crypto_secretbox_keybytes(void)
-{
- return crypto_secretbox_KEYBYTES;
-}
-
-size_t
-crypto_secretbox_noncebytes(void)
-{
- return crypto_secretbox_NONCEBYTES;
-}
-
-size_t
-crypto_secretbox_zerobytes(void)
-{
- return crypto_secretbox_ZEROBYTES;
-}
-
-size_t
-crypto_secretbox_boxzerobytes(void)
-{
- return crypto_secretbox_BOXZEROBYTES;
-}
-
-size_t
-crypto_secretbox_macbytes(void)
-{
- return crypto_secretbox_MACBYTES;
-}
-
-size_t
-crypto_secretbox_messagebytes_max(void)
-{
- return crypto_secretbox_MESSAGEBYTES_MAX;
-}
-
-const char *
-crypto_secretbox_primitive(void)
-{
- return crypto_secretbox_PRIMITIVE;
-}
-
-int
-crypto_secretbox(unsigned char *c, const unsigned char *m,
- unsigned long long mlen, const unsigned char *n,
- const unsigned char *k)
-{
- return crypto_secretbox_xsalsa20poly1305(c, m, mlen, n, k);
-}
-
-int
-crypto_secretbox_open(unsigned char *m, const unsigned char *c,
- unsigned long long clen, const unsigned char *n,
- const unsigned char *k)
-{
- return crypto_secretbox_xsalsa20poly1305_open(m, c, clen, n, k);
-}
-
-void
-crypto_secretbox_keygen(unsigned char k[crypto_secretbox_KEYBYTES])
-{
- randombytes_buf(k, crypto_secretbox_KEYBYTES);
-}
+
+#include "crypto_secretbox.h"
+#include "randombytes.h"
+
+size_t
+crypto_secretbox_keybytes(void)
+{
+ return crypto_secretbox_KEYBYTES;
+}
+
+size_t
+crypto_secretbox_noncebytes(void)
+{
+ return crypto_secretbox_NONCEBYTES;
+}
+
+size_t
+crypto_secretbox_zerobytes(void)
+{
+ return crypto_secretbox_ZEROBYTES;
+}
+
+size_t
+crypto_secretbox_boxzerobytes(void)
+{
+ return crypto_secretbox_BOXZEROBYTES;
+}
+
+size_t
+crypto_secretbox_macbytes(void)
+{
+ return crypto_secretbox_MACBYTES;
+}
+
+size_t
+crypto_secretbox_messagebytes_max(void)
+{
+ return crypto_secretbox_MESSAGEBYTES_MAX;
+}
+
+const char *
+crypto_secretbox_primitive(void)
+{
+ return crypto_secretbox_PRIMITIVE;
+}
+
+int
+crypto_secretbox(unsigned char *c, const unsigned char *m,
+ unsigned long long mlen, const unsigned char *n,
+ const unsigned char *k)
+{
+ return crypto_secretbox_xsalsa20poly1305(c, m, mlen, n, k);
+}
+
+int
+crypto_secretbox_open(unsigned char *m, const unsigned char *c,
+ unsigned long long clen, const unsigned char *n,
+ const unsigned char *k)
+{
+ return crypto_secretbox_xsalsa20poly1305_open(m, c, clen, n, k);
+}
+
+void
+crypto_secretbox_keygen(unsigned char k[crypto_secretbox_KEYBYTES])
+{
+ randombytes_buf(k, crypto_secretbox_KEYBYTES);
+}