Skip to content

Instantly share code, notes, and snippets.

@stouset
Created May 16, 2013 19:38
Show Gist options
  • Save stouset/5594438 to your computer and use it in GitHub Desktop.
Save stouset/5594438 to your computer and use it in GitHub Desktop.
diff --git a/src/libsodium/Makefile.am b/src/libsodium/Makefile.am
index da5900e..f26576a 100644
--- a/src/libsodium/Makefile.am
+++ b/src/libsodium/Makefile.am
@@ -4,25 +4,32 @@ lib_LTLIBRARIES = \
libsodium_la_SOURCES = \
crypto_auth/crypto_auth.c \
+ crypto_auth/hmacsha256/auth_hmacsha256.c \
crypto_auth/hmacsha256/ref/api.h \
crypto_auth/hmacsha256/ref/hmac_hmacsha256.c \
crypto_auth/hmacsha256/ref/verify_hmacsha256.c \
+ crypto_auth/hmacsha512256/auth_hmacsha512256.c \
crypto_auth/hmacsha512256/ref/api.h \
crypto_auth/hmacsha512256/ref/hmac_hmacsha512256.c \
crypto_auth/hmacsha512256/ref/verify_hmacsha512256.c \
crypto_box/crypto_box.c \
+ crypto_box/curve25519xsalsa20poly1305/box_curve25519xsalsa20poly1305.c \
crypto_box/curve25519xsalsa20poly1305/ref/api.h \
crypto_box/curve25519xsalsa20poly1305/ref/after_curve25519xsalsa20poly1305.c \
crypto_box/curve25519xsalsa20poly1305/ref/before_curve25519xsalsa20poly1305.c \
crypto_box/curve25519xsalsa20poly1305/ref/box_curve25519xsalsa20poly1305.c \
crypto_box/curve25519xsalsa20poly1305/ref/keypair_curve25519xsalsa20poly1305.c \
crypto_core/hsalsa20/ref2/core_hsalsa20.c \
+ crypto_core/hsalsa20/core_hsalsa20.c \
crypto_core/hsalsa20/ref2/api.h \
crypto_core/salsa20/ref/core_salsa20.c \
+ crypto_core/salsa20/core_salsa20.c \
crypto_core/salsa20/ref/api.h \
crypto_core/salsa2012/ref/core_salsa2012.c \
+ crypto_core/salsa2012/core_salsa2012.c \
crypto_core/salsa2012/ref/api.h \
crypto_core/salsa208/ref/core_salsa208.c \
+ crypto_core/salsa208/core_salsa208.c \
crypto_core/salsa208/ref/api.h \
crypto_generichash/crypto_generichash.c \
crypto_generichash/blake2/ref/api.h \
@@ -31,13 +38,17 @@ libsodium_la_SOURCES = \
crypto_generichash/blake2/ref/blake2b-ref.c \
crypto_generichash/blake2/ref/generichash_blake2b.c \
crypto_hash/crypto_hash.c \
+ crypto_hash/sha256/hash_sha256.c \
crypto_hash/sha256/ref/api.h \
crypto_hash/sha256/ref/hash_sha256.c \
+ crypto_hash/sha512/hash_sha512.c \
crypto_hash/sha512/ref/api.h \
crypto_hash/sha512/ref/hash_sha512.c \
crypto_hashblocks/sha256/ref/blocks_sha256.c \
+ crypto_hashblocks/sha256/hashblocks_sha256.c \
crypto_hashblocks/sha256/ref/api.h \
crypto_hashblocks/sha512/ref/blocks_sha512.c \
+ crypto_hashblocks/sha512/hashblocks_sha512.c \
crypto_hashblocks/sha512/ref/api.h \
crypto_onetimeauth/crypto_onetimeauth.c \
crypto_onetimeauth/poly1305/onetimeauth_poly1305.c \
@@ -50,14 +61,17 @@ libsodium_la_SOURCES = \
crypto_onetimeauth/poly1305/ref/verify_poly1305_ref.c \
crypto_scalarmult/crypto_scalarmult.c \
crypto_secretbox/crypto_secretbox.c \
+ crypto_secretbox/xsalsa20poly1305/secretbox_xsalsa20poly1305.c \
crypto_secretbox/xsalsa20poly1305/ref/api.h \
crypto_secretbox/xsalsa20poly1305/ref/box_xsalsa20poly1305.c \
crypto_shorthash/crypto_shorthash.c \
+ crypto_shorthash/siphash24/shorthash_siphash24.c \
crypto_shorthash/siphash24/ref/api.h \
crypto_shorthash/siphash24/ref/shorthash_siphash24.c \
crypto_sign/crypto_sign.c \
crypto_sign/ed25519/ref10/base.h \
crypto_sign/ed25519/ref10/base2.h \
+ crypto_sign/ed25519/sign_ed25519.c \
crypto_sign/ed25519/ref10/api.h \
crypto_sign/ed25519/ref10/d.h \
crypto_sign/ed25519/ref10/d2.h \
@@ -111,6 +125,7 @@ libsodium_la_SOURCES = \
crypto_sign/ed25519/ref10/sc_reduce.c \
crypto_sign/ed25519/ref10/sign.c \
crypto_sign/ed25519/ref10/sqrtm1.h \
+ crypto_sign/edwards25519sha512batch/sign_edwards25519sha512batch.c \
crypto_sign/edwards25519sha512batch/ref/api.h \
crypto_sign/edwards25519sha512batch/ref/fe25519.h \
crypto_sign/edwards25519sha512batch/ref/fe25519_edwards25519sha512batch.c \
@@ -121,6 +136,7 @@ libsodium_la_SOURCES = \
crypto_sign/edwards25519sha512batch/ref/sign_edwards25519sha512batch.c \
crypto_stream/crypto_stream.c \
crypto_stream/aes128ctr/portable/afternm_aes128ctr.c \
+ crypto_stream/aes128ctr/stream_aes128ctr.c \
crypto_stream/aes128ctr/portable/api.h \
crypto_stream/aes128ctr/portable/beforenm_aes128ctr.c \
crypto_stream/aes128ctr/portable/common.h \
@@ -135,19 +151,25 @@ libsodium_la_SOURCES = \
crypto_stream/aes256estream/hongjun/aes-table.h \
crypto_stream/aes256estream/hongjun/aes256-ctr.c \
crypto_stream/aes256estream/hongjun/aes256.h \
+ crypto_stream/aes256estream/stream_aes256estream.c \
crypto_stream/aes256estream/hongjun/api.h \
crypto_stream/aes256estream/hongjun/ecrypt-sync.h \
+ crypto_stream/salsa2012/stream_salsa2012.c \
crypto_stream/salsa2012/ref/api.h \
crypto_stream/salsa2012/ref/stream_salsa2012.c \
crypto_stream/salsa2012/ref/xor_salsa2012.c \
+ crypto_stream/salsa208/stream_salsa208.c \
crypto_stream/salsa208/ref/api.h \
crypto_stream/salsa208/ref/stream_salsa208.c \
crypto_stream/salsa208/ref/xor_salsa208.c \
+ crypto_stream/xsalsa20/stream_xsalsa20.c \
crypto_stream/xsalsa20/ref/api.h \
crypto_stream/xsalsa20/ref/stream_xsalsa20.c \
crypto_stream/xsalsa20/ref/xor_xsalsa20.c \
+ crypto_verify/16/verify_16.c \
crypto_verify/16/ref/api.h \
crypto_verify/16/ref/verify_16.c \
+ crypto_verify/32/verify_32.c \
crypto_verify/32/ref/api.h \
crypto_verify/32/ref/verify_32.c \
randombytes/randombytes.c \
diff --git a/src/libsodium/crypto_auth/hmacsha256/auth_hmacsha256.c b/src/libsodium/crypto_auth/hmacsha256/auth_hmacsha256.c
new file mode 100644
index 0000000..2fa1814
--- /dev/null
+++ b/src/libsodium/crypto_auth/hmacsha256/auth_hmacsha256.c
@@ -0,0 +1,26 @@
+#include "crypto_auth_hmacsha256.h"
+
+size_t
+crypto_auth_hmacsha256_bytes(void) {
+ return crypto_auth_hmacsha256_BYTES;
+}
+
+size_t
+crypto_auth_hmacsha256_keybytes(void) {
+ return crypto_auth_hmacsha256_KEYBYTES;
+}
+
+const char *
+crypto_auth_hmacsha256_primitive(void) {
+ return "hmacsha256";
+}
+
+size_t
+crypto_auth_hmacsha256_implementation(void) {
+ return crypto_auth_hmacsha256_IMPLEMENTATION;
+}
+
+size_t
+crypto_auth_hmacsha256_version(void) {
+ return crypto_auth_hmacsha256_VERSION;
+}
diff --git a/src/libsodium/crypto_auth/hmacsha512256/auth_hmacsha512256.c b/src/libsodium/crypto_auth/hmacsha512256/auth_hmacsha512256.c
new file mode 100644
index 0000000..b63ff1f
--- /dev/null
+++ b/src/libsodium/crypto_auth/hmacsha512256/auth_hmacsha512256.c
@@ -0,0 +1,26 @@
+#include "crypto_auth_hmacsha512256.h"
+
+size_t
+crypto_auth_hmacsha512256_bytes(void) {
+ return crypto_auth_hmacsha512256_BYTES;
+}
+
+size_t
+crypto_auth_hmacsha512256_keybytes(void) {
+ return crypto_auth_hmacsha512256_KEYBYTES;
+}
+
+const char *
+crypto_auth_hmacsha512256_primitive(void) {
+ return "hmacsha512256";
+}
+
+size_t
+crypto_auth_hmacsha512256_implementation(void) {
+ return crypto_auth_hmacsha512256_IMPLEMENTATION;
+}
+
+size_t
+crypto_auth_hmacsha512256_version(void) {
+ return crypto_auth_hmacsha512256_VERSION;
+}
diff --git a/src/libsodium/crypto_box/curve25519xsalsa20poly1305/box_curve25519xsalsa20poly1305.c b/src/libsodium/crypto_box/curve25519xsalsa20poly1305/box_curve25519xsalsa20poly1305.c
new file mode 100644
index 0000000..a5d19d1
--- /dev/null
+++ b/src/libsodium/crypto_box/curve25519xsalsa20poly1305/box_curve25519xsalsa20poly1305.c
@@ -0,0 +1,51 @@
+#include "crypto_box_curve25519xsalsa20poly1305.h"
+
+size_t
+crypto_box_curve25519xsalsa20poly1305_publickeybytes(void) {
+ return crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES;
+}
+
+size_t
+crypto_box_curve25519xsalsa20poly1305_secretkeybytes(void) {
+ return crypto_box_curve25519xsalsa20poly1305_SECRETKEYBYTES;
+}
+
+size_t
+crypto_box_curve25519xsalsa20poly1305_beforenmbytes(void) {
+ return crypto_box_curve25519xsalsa20poly1305_BEFORENMBYTES;
+}
+
+size_t
+crypto_box_curve25519xsalsa20poly1305_noncebytes(void) {
+ return crypto_box_curve25519xsalsa20poly1305_NONCEBYTES;
+}
+
+size_t
+crypto_box_curve25519xsalsa20poly1305_zerobytes(void) {
+ return crypto_box_curve25519xsalsa20poly1305_ZEROBYTES;
+}
+
+size_t
+crypto_box_curve25519xsalsa20poly1305_boxzerobytes(void) {
+ return crypto_box_curve25519xsalsa20poly1305_BOXZEROBYTES;
+}
+
+-
+crypto_box_curve25519xsalsa20poly1305_macbytes(void) {
+ return (crypto_box_ZEROBYTES;
+}
+
+const char *
+crypto_box_curve25519xsalsa20poly1305_primitive(void) {
+ return "curve25519xsalsa20poly1305";
+}
+
+size_t
+crypto_box_curve25519xsalsa20poly1305_implementation(void) {
+ return crypto_box_curve25519xsalsa20poly1305_IMPLEMENTATION;
+}
+
+size_t
+crypto_box_curve25519xsalsa20poly1305_version(void) {
+ return crypto_box_curve25519xsalsa20poly1305_VERSION;
+}
diff --git a/src/libsodium/crypto_core/hsalsa20/core_hsalsa20.c b/src/libsodium/crypto_core/hsalsa20/core_hsalsa20.c
new file mode 100644
index 0000000..91893df
--- /dev/null
+++ b/src/libsodium/crypto_core/hsalsa20/core_hsalsa20.c
@@ -0,0 +1,36 @@
+#include "crypto_core_hsalsa20.h"
+
+size_t
+crypto_core_hsalsa20_outputbytes(void) {
+ return crypto_core_hsalsa20_OUTPUTBYTES;
+}
+
+size_t
+crypto_core_hsalsa20_inputbytes(void) {
+ return crypto_core_hsalsa20_INPUTBYTES;
+}
+
+size_t
+crypto_core_hsalsa20_keybytes(void) {
+ return crypto_core_hsalsa20_KEYBYTES;
+}
+
+size_t
+crypto_core_hsalsa20_constbytes(void) {
+ return crypto_core_hsalsa20_CONSTBYTES;
+}
+
+const char *
+crypto_core_hsalsa20_primitive(void) {
+ return "hsalsa20";
+}
+
+size_t
+crypto_core_hsalsa20_implementation(void) {
+ return crypto_core_hsalsa20_IMPLEMENTATION;
+}
+
+size_t
+crypto_core_hsalsa20_version(void) {
+ return crypto_core_hsalsa20_VERSION;
+}
diff --git a/src/libsodium/crypto_core/salsa20/core_salsa20.c b/src/libsodium/crypto_core/salsa20/core_salsa20.c
new file mode 100644
index 0000000..57194d5
--- /dev/null
+++ b/src/libsodium/crypto_core/salsa20/core_salsa20.c
@@ -0,0 +1,36 @@
+#include "crypto_core_salsa20.h"
+
+size_t
+crypto_core_salsa20_outputbytes(void) {
+ return crypto_core_salsa20_OUTPUTBYTES;
+}
+
+size_t
+crypto_core_salsa20_inputbytes(void) {
+ return crypto_core_salsa20_INPUTBYTES;
+}
+
+size_t
+crypto_core_salsa20_keybytes(void) {
+ return crypto_core_salsa20_KEYBYTES;
+}
+
+size_t
+crypto_core_salsa20_constbytes(void) {
+ return crypto_core_salsa20_CONSTBYTES;
+}
+
+const char *
+crypto_core_salsa20_primitive(void) {
+ return "salsa20";
+}
+
+size_t
+crypto_core_salsa20_implementation(void) {
+ return crypto_core_salsa20_IMPLEMENTATION;
+}
+
+size_t
+crypto_core_salsa20_version(void) {
+ return crypto_core_salsa20_VERSION;
+}
diff --git a/src/libsodium/crypto_core/salsa2012/core_salsa2012.c b/src/libsodium/crypto_core/salsa2012/core_salsa2012.c
new file mode 100644
index 0000000..98ca262
--- /dev/null
+++ b/src/libsodium/crypto_core/salsa2012/core_salsa2012.c
@@ -0,0 +1,36 @@
+#include "crypto_core_salsa2012.h"
+
+size_t
+crypto_core_salsa2012_outputbytes(void) {
+ return crypto_core_salsa2012_OUTPUTBYTES;
+}
+
+size_t
+crypto_core_salsa2012_inputbytes(void) {
+ return crypto_core_salsa2012_INPUTBYTES;
+}
+
+size_t
+crypto_core_salsa2012_keybytes(void) {
+ return crypto_core_salsa2012_KEYBYTES;
+}
+
+size_t
+crypto_core_salsa2012_constbytes(void) {
+ return crypto_core_salsa2012_CONSTBYTES;
+}
+
+const char *
+crypto_core_salsa2012_primitive(void) {
+ return "salsa2012";
+}
+
+size_t
+crypto_core_salsa2012_implementation(void) {
+ return crypto_core_salsa2012_IMPLEMENTATION;
+}
+
+size_t
+crypto_core_salsa2012_version(void) {
+ return crypto_core_salsa2012_VERSION;
+}
diff --git a/src/libsodium/crypto_core/salsa208/core_salsa208.c b/src/libsodium/crypto_core/salsa208/core_salsa208.c
new file mode 100644
index 0000000..957335e
--- /dev/null
+++ b/src/libsodium/crypto_core/salsa208/core_salsa208.c
@@ -0,0 +1,36 @@
+#include "crypto_core_salsa208.h"
+
+size_t
+crypto_core_salsa208_outputbytes(void) {
+ return crypto_core_salsa208_OUTPUTBYTES;
+}
+
+size_t
+crypto_core_salsa208_inputbytes(void) {
+ return crypto_core_salsa208_INPUTBYTES;
+}
+
+size_t
+crypto_core_salsa208_keybytes(void) {
+ return crypto_core_salsa208_KEYBYTES;
+}
+
+size_t
+crypto_core_salsa208_constbytes(void) {
+ return crypto_core_salsa208_CONSTBYTES;
+}
+
+const char *
+crypto_core_salsa208_primitive(void) {
+ return "salsa208";
+}
+
+size_t
+crypto_core_salsa208_implementation(void) {
+ return crypto_core_salsa208_IMPLEMENTATION;
+}
+
+size_t
+crypto_core_salsa208_version(void) {
+ return crypto_core_salsa208_VERSION;
+}
diff --git a/src/libsodium/crypto_hash/sha256/hash_sha256.c b/src/libsodium/crypto_hash/sha256/hash_sha256.c
new file mode 100644
index 0000000..1a91804
--- /dev/null
+++ b/src/libsodium/crypto_hash/sha256/hash_sha256.c
@@ -0,0 +1,21 @@
+#include "crypto_hash_sha256.h"
+
+size_t
+crypto_hash_sha256_bytes(void) {
+ return crypto_hash_sha256_BYTES;
+}
+
+const char *
+crypto_hash_sha256_primitive(void) {
+ return "sha256";
+}
+
+size_t
+crypto_hash_sha256_implementation(void) {
+ return crypto_hash_sha256_IMPLEMENTATION;
+}
+
+size_t
+crypto_hash_sha256_version(void) {
+ return crypto_hash_sha256_VERSION;
+}
diff --git a/src/libsodium/crypto_hash/sha512/hash_sha512.c b/src/libsodium/crypto_hash/sha512/hash_sha512.c
new file mode 100644
index 0000000..c4c44ec
--- /dev/null
+++ b/src/libsodium/crypto_hash/sha512/hash_sha512.c
@@ -0,0 +1,21 @@
+#include "crypto_hash_sha512.h"
+
+size_t
+crypto_hash_sha512_bytes(void) {
+ return crypto_hash_sha512_BYTES;
+}
+
+const char *
+crypto_hash_sha512_primitive(void) {
+ return "sha512";
+}
+
+size_t
+crypto_hash_sha512_implementation(void) {
+ return crypto_hash_sha512_IMPLEMENTATION;
+}
+
+size_t
+crypto_hash_sha512_version(void) {
+ return crypto_hash_sha512_VERSION;
+}
diff --git a/src/libsodium/crypto_hashblocks/sha256/hashblocks_sha256.c b/src/libsodium/crypto_hashblocks/sha256/hashblocks_sha256.c
new file mode 100644
index 0000000..e6033f8
--- /dev/null
+++ b/src/libsodium/crypto_hashblocks/sha256/hashblocks_sha256.c
@@ -0,0 +1,26 @@
+#include "crypto_hashblocks_sha256.h"
+
+size_t
+crypto_hashblocks_sha256_statebytes(void) {
+ return crypto_hashblocks_sha256_STATEBYTES;
+}
+
+size_t
+crypto_hashblocks_sha256_blockbytes(void) {
+ return crypto_hashblocks_sha256_BLOCKBYTES;
+}
+
+const char *
+crypto_hashblocks_sha256_primitive(void) {
+ return "sha256";
+}
+
+size_t
+crypto_hashblocks_sha256_implementation(void) {
+ return crypto_hashblocks_sha256_IMPLEMENTATION;
+}
+
+size_t
+crypto_hashblocks_sha256_version(void) {
+ return crypto_hashblocks_sha256_VERSION;
+}
diff --git a/src/libsodium/crypto_hashblocks/sha512/hashblocks_sha512.c b/src/libsodium/crypto_hashblocks/sha512/hashblocks_sha512.c
new file mode 100644
index 0000000..6f2eb76
--- /dev/null
+++ b/src/libsodium/crypto_hashblocks/sha512/hashblocks_sha512.c
@@ -0,0 +1,26 @@
+#include "crypto_hashblocks_sha512.h"
+
+size_t
+crypto_hashblocks_sha512_statebytes(void) {
+ return crypto_hashblocks_sha512_STATEBYTES;
+}
+
+size_t
+crypto_hashblocks_sha512_blockbytes(void) {
+ return crypto_hashblocks_sha512_BLOCKBYTES;
+}
+
+const char *
+crypto_hashblocks_sha512_primitive(void) {
+ return "sha512";
+}
+
+size_t
+crypto_hashblocks_sha512_implementation(void) {
+ return crypto_hashblocks_sha512_IMPLEMENTATION;
+}
+
+size_t
+crypto_hashblocks_sha512_version(void) {
+ return crypto_hashblocks_sha512_VERSION;
+}
diff --git a/src/libsodium/crypto_scalarmult/curve25519/scalarmult_curve25519.c b/src/libsodium/crypto_scalarmult/curve25519/scalarmult_curve25519.c
new file mode 100644
index 0000000..10dc580
--- /dev/null
+++ b/src/libsodium/crypto_scalarmult/curve25519/scalarmult_curve25519.c
@@ -0,0 +1 @@
+#include "crypto_scalarmult_curve25519.h"
diff --git a/src/libsodium/crypto_secretbox/xsalsa20poly1305/secretbox_xsalsa20poly1305.c b/src/libsodium/crypto_secretbox/xsalsa20poly1305/secretbox_xsalsa20poly1305.c
new file mode 100644
index 0000000..32dafe8
--- /dev/null
+++ b/src/libsodium/crypto_secretbox/xsalsa20poly1305/secretbox_xsalsa20poly1305.c
@@ -0,0 +1,36 @@
+#include "crypto_secretbox_xsalsa20poly1305.h"
+
+size_t
+crypto_secretbox_xsalsa20poly1305_keybytes(void) {
+ return crypto_secretbox_xsalsa20poly1305_KEYBYTES;
+}
+
+size_t
+crypto_secretbox_xsalsa20poly1305_noncebytes(void) {
+ return crypto_secretbox_xsalsa20poly1305_NONCEBYTES;
+}
+
+size_t
+crypto_secretbox_xsalsa20poly1305_zerobytes(void) {
+ return crypto_secretbox_xsalsa20poly1305_ZEROBYTES;
+}
+
+size_t
+crypto_secretbox_xsalsa20poly1305_boxzerobytes(void) {
+ return crypto_secretbox_xsalsa20poly1305_BOXZEROBYTES;
+}
+
+const char *
+crypto_secretbox_xsalsa20poly1305_primitive(void) {
+ return "xsalsa20poly1305";
+}
+
+size_t
+crypto_secretbox_xsalsa20poly1305_implementation(void) {
+ return crypto_secretbox_xsalsa20poly1305_IMPLEMENTATION;
+}
+
+size_t
+crypto_secretbox_xsalsa20poly1305_version(void) {
+ return crypto_secretbox_xsalsa20poly1305_VERSION;
+}
diff --git a/src/libsodium/crypto_shorthash/siphash24/shorthash_siphash24.c b/src/libsodium/crypto_shorthash/siphash24/shorthash_siphash24.c
new file mode 100644
index 0000000..78de72c
--- /dev/null
+++ b/src/libsodium/crypto_shorthash/siphash24/shorthash_siphash24.c
@@ -0,0 +1,21 @@
+#include "crypto_shorthash_siphash24.h"
+
+size_t
+crypto_shorthash_siphash24_bytes(void) {
+ return crypto_shorthash_siphash24_BYTES;
+}
+
+const char *
+crypto_shorthash_siphash24_primitive(void) {
+ return "siphash24";
+}
+
+size_t
+crypto_shorthash_siphash24_implementation(void) {
+ return crypto_shorthash_siphash24_IMPLEMENTATION;
+}
+
+size_t
+crypto_shorthash_siphash24_version(void) {
+ return crypto_shorthash_siphash24_VERSION;
+}
diff --git a/src/libsodium/crypto_sign/ed25519/sign_ed25519.c b/src/libsodium/crypto_sign/ed25519/sign_ed25519.c
new file mode 100644
index 0000000..dc5cf8c
--- /dev/null
+++ b/src/libsodium/crypto_sign/ed25519/sign_ed25519.c
@@ -0,0 +1,31 @@
+#include "crypto_sign_ed25519.h"
+
+size_t
+crypto_sign_ed25519_bytes(void) {
+ return crypto_sign_ed25519_BYTES;
+}
+
+size_t
+crypto_sign_ed25519_publickeybytes(void) {
+ return crypto_sign_ed25519_PUBLICKEYBYTES;
+}
+
+size_t
+crypto_sign_ed25519_secretkeybytes(void) {
+ return crypto_sign_ed25519_SECRETKEYBYTES;
+}
+
+const char *
+crypto_sign_ed25519_primitive(void) {
+ return "ed25519";
+}
+
+size_t
+crypto_sign_ed25519_implementation(void) {
+ return crypto_sign_ed25519_IMPLEMENTATION;
+}
+
+size_t
+crypto_sign_ed25519_version(void) {
+ return crypto_sign_ed25519_VERSION;
+}
diff --git a/src/libsodium/crypto_sign/edwards25519sha512batch/sign_edwards25519sha512batch.c b/src/libsodium/crypto_sign/edwards25519sha512batch/sign_edwards25519sha512batch.c
new file mode 100644
index 0000000..1dbd1e2
--- /dev/null
+++ b/src/libsodium/crypto_sign/edwards25519sha512batch/sign_edwards25519sha512batch.c
@@ -0,0 +1,31 @@
+#include "crypto_sign_edwards25519sha512batch.h"
+
+size_t
+crypto_sign_edwards25519sha512batch_bytes(void) {
+ return crypto_sign_edwards25519sha512batch_BYTES;
+}
+
+size_t
+crypto_sign_edwards25519sha512batch_publickeybytes(void) {
+ return crypto_sign_edwards25519sha512batch_PUBLICKEYBYTES;
+}
+
+size_t
+crypto_sign_edwards25519sha512batch_secretkeybytes(void) {
+ return crypto_sign_edwards25519sha512batch_SECRETKEYBYTES;
+}
+
+const char *
+crypto_sign_edwards25519sha512batch_primitive(void) {
+ return "edwards25519sha512batch";
+}
+
+size_t
+crypto_sign_edwards25519sha512batch_implementation(void) {
+ return crypto_sign_edwards25519sha512batch_IMPLEMENTATION;
+}
+
+size_t
+crypto_sign_edwards25519sha512batch_version(void) {
+ return crypto_sign_edwards25519sha512batch_VERSION;
+}
diff --git a/src/libsodium/crypto_stream/aes128ctr/stream_aes128ctr.c b/src/libsodium/crypto_stream/aes128ctr/stream_aes128ctr.c
new file mode 100644
index 0000000..24a6eca
--- /dev/null
+++ b/src/libsodium/crypto_stream/aes128ctr/stream_aes128ctr.c
@@ -0,0 +1,31 @@
+#include "crypto_stream_aes128ctr.h"
+
+size_t
+crypto_stream_aes128ctr_keybytes(void) {
+ return crypto_stream_aes128ctr_KEYBYTES;
+}
+
+size_t
+crypto_stream_aes128ctr_noncebytes(void) {
+ return crypto_stream_aes128ctr_NONCEBYTES;
+}
+
+size_t
+crypto_stream_aes128ctr_beforenmbytes(void) {
+ return crypto_stream_aes128ctr_BEFORENMBYTES;
+}
+
+const char *
+crypto_stream_aes128ctr_primitive(void) {
+ return "aes128ctr";
+}
+
+size_t
+crypto_stream_aes128ctr_implementation(void) {
+ return crypto_stream_aes128ctr_IMPLEMENTATION;
+}
+
+size_t
+crypto_stream_aes128ctr_version(void) {
+ return crypto_stream_aes128ctr_VERSION;
+}
diff --git a/src/libsodium/crypto_stream/aes256estream/stream_aes256estream.c b/src/libsodium/crypto_stream/aes256estream/stream_aes256estream.c
new file mode 100644
index 0000000..da39f63
--- /dev/null
+++ b/src/libsodium/crypto_stream/aes256estream/stream_aes256estream.c
@@ -0,0 +1,31 @@
+#include "crypto_stream_aes256estream.h"
+
+size_t
+crypto_stream_aes256estream_keybytes(void) {
+ return crypto_stream_aes256estream_KEYBYTES;
+}
+
+size_t
+crypto_stream_aes256estream_noncebytes(void) {
+ return crypto_stream_aes256estream_NONCEBYTES;
+}
+
+size_t
+crypto_stream_aes256estream_beforenmbytes(void) {
+ return crypto_stream_aes256estream_BEFORENMBYTES;
+}
+
+const char *
+crypto_stream_aes256estream_primitive(void) {
+ return "aes256estream";
+}
+
+size_t
+crypto_stream_aes256estream_implementation(void) {
+ return crypto_stream_aes256estream_IMPLEMENTATION;
+}
+
+size_t
+crypto_stream_aes256estream_version(void) {
+ return crypto_stream_aes256estream_VERSION;
+}
diff --git a/src/libsodium/crypto_stream/salsa20/stream_salsa20.c b/src/libsodium/crypto_stream/salsa20/stream_salsa20.c
new file mode 100644
index 0000000..037fb59
--- /dev/null
+++ b/src/libsodium/crypto_stream/salsa20/stream_salsa20.c
@@ -0,0 +1 @@
+#include "crypto_stream_salsa20.h"
diff --git a/src/libsodium/crypto_stream/salsa2012/stream_salsa2012.c b/src/libsodium/crypto_stream/salsa2012/stream_salsa2012.c
new file mode 100644
index 0000000..cbdd155
--- /dev/null
+++ b/src/libsodium/crypto_stream/salsa2012/stream_salsa2012.c
@@ -0,0 +1,26 @@
+#include "crypto_stream_salsa2012.h"
+
+size_t
+crypto_stream_salsa2012_keybytes(void) {
+ return crypto_stream_salsa2012_KEYBYTES;
+}
+
+size_t
+crypto_stream_salsa2012_noncebytes(void) {
+ return crypto_stream_salsa2012_NONCEBYTES;
+}
+
+const char *
+crypto_stream_salsa2012_primitive(void) {
+ return "salsa2012";
+}
+
+size_t
+crypto_stream_salsa2012_implementation(void) {
+ return crypto_stream_salsa2012_IMPLEMENTATION;
+}
+
+size_t
+crypto_stream_salsa2012_version(void) {
+ return crypto_stream_salsa2012_VERSION;
+}
diff --git a/src/libsodium/crypto_stream/salsa208/stream_salsa208.c b/src/libsodium/crypto_stream/salsa208/stream_salsa208.c
new file mode 100644
index 0000000..0ca09b8
--- /dev/null
+++ b/src/libsodium/crypto_stream/salsa208/stream_salsa208.c
@@ -0,0 +1,26 @@
+#include "crypto_stream_salsa208.h"
+
+size_t
+crypto_stream_salsa208_keybytes(void) {
+ return crypto_stream_salsa208_KEYBYTES;
+}
+
+size_t
+crypto_stream_salsa208_noncebytes(void) {
+ return crypto_stream_salsa208_NONCEBYTES;
+}
+
+const char *
+crypto_stream_salsa208_primitive(void) {
+ return "salsa208";
+}
+
+size_t
+crypto_stream_salsa208_implementation(void) {
+ return crypto_stream_salsa208_IMPLEMENTATION;
+}
+
+size_t
+crypto_stream_salsa208_version(void) {
+ return crypto_stream_salsa208_VERSION;
+}
diff --git a/src/libsodium/crypto_stream/xsalsa20/stream_xsalsa20.c b/src/libsodium/crypto_stream/xsalsa20/stream_xsalsa20.c
new file mode 100644
index 0000000..1b43630
--- /dev/null
+++ b/src/libsodium/crypto_stream/xsalsa20/stream_xsalsa20.c
@@ -0,0 +1,26 @@
+#include "crypto_stream_xsalsa20.h"
+
+size_t
+crypto_stream_xsalsa20_keybytes(void) {
+ return crypto_stream_xsalsa20_KEYBYTES;
+}
+
+size_t
+crypto_stream_xsalsa20_noncebytes(void) {
+ return crypto_stream_xsalsa20_NONCEBYTES;
+}
+
+const char *
+crypto_stream_xsalsa20_primitive(void) {
+ return "xsalsa20";
+}
+
+size_t
+crypto_stream_xsalsa20_implementation(void) {
+ return crypto_stream_xsalsa20_IMPLEMENTATION;
+}
+
+size_t
+crypto_stream_xsalsa20_version(void) {
+ return crypto_stream_xsalsa20_VERSION;
+}
diff --git a/src/libsodium/include/sodium/crypto_auth_hmacsha256.h b/src/libsodium/include/sodium/crypto_auth_hmacsha256.h
index 5a7a7a8..a162c70 100644
--- a/src/libsodium/include/sodium/crypto_auth_hmacsha256.h
+++ b/src/libsodium/include/sodium/crypto_auth_hmacsha256.h
@@ -1,6 +1,7 @@
#ifndef crypto_auth_hmacsha256_H
#define crypto_auth_hmacsha256_H
+#include <stddef.h>
#include "export.h"
#define crypto_auth_hmacsha256_BYTES 32U
@@ -11,6 +12,21 @@ extern "C" {
#endif
SODIUM_EXPORT
+size_t crypto_auth_hmacsha256_bytes(void);
+
+SODIUM_EXPORT
+size_t crypto_auth_hmacsha256_keybytes(void);
+
+SODIUM_EXPORT
+const char * crypto_auth_hmacsha256_primitive(void);
+
+SODIUM_EXPORT
+size_t crypto_auth_hmacsha256_implementation(void);
+
+SODIUM_EXPORT
+size_t crypto_auth_hmacsha256_version(void);
+
+SODIUM_EXPORT
int crypto_auth_hmacsha256(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *);
SODIUM_EXPORT
diff --git a/src/libsodium/include/sodium/crypto_auth_hmacsha512256.h b/src/libsodium/include/sodium/crypto_auth_hmacsha512256.h
index 250f8aa..b9f083f 100644
--- a/src/libsodium/include/sodium/crypto_auth_hmacsha512256.h
+++ b/src/libsodium/include/sodium/crypto_auth_hmacsha512256.h
@@ -1,6 +1,7 @@
#ifndef crypto_auth_hmacsha512256_H
#define crypto_auth_hmacsha512256_H
+#include <stddef.h>
#include "export.h"
#define crypto_auth_hmacsha512256_BYTES 32U
@@ -11,6 +12,21 @@ extern "C" {
#endif
SODIUM_EXPORT
+size_t crypto_auth_hmacsha512256_bytes(void);
+
+SODIUM_EXPORT
+size_t crypto_auth_hmacsha512256_keybytes(void);
+
+SODIUM_EXPORT
+const char * crypto_auth_hmacsha512256_primitive(void);
+
+SODIUM_EXPORT
+size_t crypto_auth_hmacsha512256_implementation(void);
+
+SODIUM_EXPORT
+size_t crypto_auth_hmacsha512256_version(void);
+
+SODIUM_EXPORT
int crypto_auth_hmacsha512256(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *);
SODIUM_EXPORT
diff --git a/src/libsodium/include/sodium/crypto_box_curve25519xsalsa20poly1305.h b/src/libsodium/include/sodium/crypto_box_curve25519xsalsa20poly1305.h
index 754f573..9eeac49 100644
--- a/src/libsodium/include/sodium/crypto_box_curve25519xsalsa20poly1305.h
+++ b/src/libsodium/include/sodium/crypto_box_curve25519xsalsa20poly1305.h
@@ -1,6 +1,7 @@
#ifndef crypto_box_curve25519xsalsa20poly1305_H
#define crypto_box_curve25519xsalsa20poly1305_H
+#include <stddef.h>
#include "export.h"
#define crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES 32U
@@ -16,6 +17,36 @@ extern "C" {
#endif
SODIUM_EXPORT
+size_t crypto_box_curve25519xsalsa20poly1305_publickeybytes(void);
+
+SODIUM_EXPORT
+size_t crypto_box_curve25519xsalsa20poly1305_secretkeybytes(void);
+
+SODIUM_EXPORT
+size_t crypto_box_curve25519xsalsa20poly1305_beforenmbytes(void);
+
+SODIUM_EXPORT
+size_t crypto_box_curve25519xsalsa20poly1305_noncebytes(void);
+
+SODIUM_EXPORT
+size_t crypto_box_curve25519xsalsa20poly1305_zerobytes(void);
+
+SODIUM_EXPORT
+size_t crypto_box_curve25519xsalsa20poly1305_boxzerobytes(void);
+
+SODIUM_EXPORT
+- crypto_box_curve25519xsalsa20poly1305_macbytes(void);
+
+SODIUM_EXPORT
+const char * crypto_box_curve25519xsalsa20poly1305_primitive(void);
+
+SODIUM_EXPORT
+size_t crypto_box_curve25519xsalsa20poly1305_implementation(void);
+
+SODIUM_EXPORT
+size_t crypto_box_curve25519xsalsa20poly1305_version(void);
+
+SODIUM_EXPORT
int crypto_box_curve25519xsalsa20poly1305(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *,const unsigned char *);
SODIUM_EXPORT
diff --git a/src/libsodium/include/sodium/crypto_core_hsalsa20.h b/src/libsodium/include/sodium/crypto_core_hsalsa20.h
index d7760ec..441028e 100644
--- a/src/libsodium/include/sodium/crypto_core_hsalsa20.h
+++ b/src/libsodium/include/sodium/crypto_core_hsalsa20.h
@@ -1,6 +1,7 @@
#ifndef crypto_core_hsalsa20_H
#define crypto_core_hsalsa20_H
+#include <stddef.h>
#include "export.h"
#define crypto_core_hsalsa20_OUTPUTBYTES 32U
@@ -13,6 +14,27 @@ extern "C" {
#endif
SODIUM_EXPORT
+size_t crypto_core_hsalsa20_outputbytes(void);
+
+SODIUM_EXPORT
+size_t crypto_core_hsalsa20_inputbytes(void);
+
+SODIUM_EXPORT
+size_t crypto_core_hsalsa20_keybytes(void);
+
+SODIUM_EXPORT
+size_t crypto_core_hsalsa20_constbytes(void);
+
+SODIUM_EXPORT
+const char * crypto_core_hsalsa20_primitive(void);
+
+SODIUM_EXPORT
+size_t crypto_core_hsalsa20_implementation(void);
+
+SODIUM_EXPORT
+size_t crypto_core_hsalsa20_version(void);
+
+SODIUM_EXPORT
int crypto_core_hsalsa20(unsigned char *,const unsigned char *,const unsigned char *,const unsigned char *);
#ifdef __cplusplus
diff --git a/src/libsodium/include/sodium/crypto_core_salsa20.h b/src/libsodium/include/sodium/crypto_core_salsa20.h
index 40d96f2..09dc6ad 100644
--- a/src/libsodium/include/sodium/crypto_core_salsa20.h
+++ b/src/libsodium/include/sodium/crypto_core_salsa20.h
@@ -1,6 +1,7 @@
#ifndef crypto_core_salsa20_H
#define crypto_core_salsa20_H
+#include <stddef.h>
#include "export.h"
#define crypto_core_salsa20_OUTPUTBYTES 64U
@@ -13,6 +14,27 @@ extern "C" {
#endif
SODIUM_EXPORT
+size_t crypto_core_salsa20_outputbytes(void);
+
+SODIUM_EXPORT
+size_t crypto_core_salsa20_inputbytes(void);
+
+SODIUM_EXPORT
+size_t crypto_core_salsa20_keybytes(void);
+
+SODIUM_EXPORT
+size_t crypto_core_salsa20_constbytes(void);
+
+SODIUM_EXPORT
+const char * crypto_core_salsa20_primitive(void);
+
+SODIUM_EXPORT
+size_t crypto_core_salsa20_implementation(void);
+
+SODIUM_EXPORT
+size_t crypto_core_salsa20_version(void);
+
+SODIUM_EXPORT
int crypto_core_salsa20(unsigned char *,const unsigned char *,const unsigned char *,const unsigned char *);
#ifdef __cplusplus
diff --git a/src/libsodium/include/sodium/crypto_core_salsa2012.h b/src/libsodium/include/sodium/crypto_core_salsa2012.h
index ac2b0d5..42b49c9 100644
--- a/src/libsodium/include/sodium/crypto_core_salsa2012.h
+++ b/src/libsodium/include/sodium/crypto_core_salsa2012.h
@@ -1,6 +1,7 @@
#ifndef crypto_core_salsa2012_H
#define crypto_core_salsa2012_H
+#include <stddef.h>
#include "export.h"
#define crypto_core_salsa2012_OUTPUTBYTES 64U
@@ -13,6 +14,27 @@ extern "C" {
#endif
SODIUM_EXPORT
+size_t crypto_core_salsa2012_outputbytes(void);
+
+SODIUM_EXPORT
+size_t crypto_core_salsa2012_inputbytes(void);
+
+SODIUM_EXPORT
+size_t crypto_core_salsa2012_keybytes(void);
+
+SODIUM_EXPORT
+size_t crypto_core_salsa2012_constbytes(void);
+
+SODIUM_EXPORT
+const char * crypto_core_salsa2012_primitive(void);
+
+SODIUM_EXPORT
+size_t crypto_core_salsa2012_implementation(void);
+
+SODIUM_EXPORT
+size_t crypto_core_salsa2012_version(void);
+
+SODIUM_EXPORT
int crypto_core_salsa2012(unsigned char *,const unsigned char *,const unsigned char *,const unsigned char *);
#ifdef __cplusplus
diff --git a/src/libsodium/include/sodium/crypto_core_salsa208.h b/src/libsodium/include/sodium/crypto_core_salsa208.h
index 89849d2..1e569fb 100644
--- a/src/libsodium/include/sodium/crypto_core_salsa208.h
+++ b/src/libsodium/include/sodium/crypto_core_salsa208.h
@@ -1,6 +1,7 @@
#ifndef crypto_core_salsa208_H
#define crypto_core_salsa208_H
+#include <stddef.h>
#include "export.h"
#define crypto_core_salsa208_OUTPUTBYTES 64U
@@ -13,6 +14,27 @@ extern "C" {
#endif
SODIUM_EXPORT
+size_t crypto_core_salsa208_outputbytes(void);
+
+SODIUM_EXPORT
+size_t crypto_core_salsa208_inputbytes(void);
+
+SODIUM_EXPORT
+size_t crypto_core_salsa208_keybytes(void);
+
+SODIUM_EXPORT
+size_t crypto_core_salsa208_constbytes(void);
+
+SODIUM_EXPORT
+const char * crypto_core_salsa208_primitive(void);
+
+SODIUM_EXPORT
+size_t crypto_core_salsa208_implementation(void);
+
+SODIUM_EXPORT
+size_t crypto_core_salsa208_version(void);
+
+SODIUM_EXPORT
int crypto_core_salsa208(unsigned char *,const unsigned char *,const unsigned char *,const unsigned char *);
#ifdef __cplusplus
diff --git a/src/libsodium/include/sodium/crypto_generichash_blake2b.h b/src/libsodium/include/sodium/crypto_generichash_blake2b.h
index 0a560c2..5fb149e 100644
--- a/src/libsodium/include/sodium/crypto_generichash_blake2b.h
+++ b/src/libsodium/include/sodium/crypto_generichash_blake2b.h
@@ -4,6 +4,7 @@
#include <stdint.h>
#include <stdlib.h>
+#include <stddef.h>
#include "export.h"
#define crypto_generichash_blake2b_BYTES_MIN 1U
diff --git a/src/libsodium/include/sodium/crypto_hash_sha256.h b/src/libsodium/include/sodium/crypto_hash_sha256.h
index 1de49b2..428db68 100644
--- a/src/libsodium/include/sodium/crypto_hash_sha256.h
+++ b/src/libsodium/include/sodium/crypto_hash_sha256.h
@@ -1,6 +1,7 @@
#ifndef crypto_hash_sha256_H
#define crypto_hash_sha256_H
+#include <stddef.h>
#include "export.h"
#define crypto_hash_sha256_BYTES 32U
@@ -11,6 +12,18 @@ extern "C" {
#endif
SODIUM_EXPORT
+size_t crypto_hash_sha256_bytes(void);
+
+SODIUM_EXPORT
+const char * crypto_hash_sha256_primitive(void);
+
+SODIUM_EXPORT
+size_t crypto_hash_sha256_implementation(void);
+
+SODIUM_EXPORT
+size_t crypto_hash_sha256_version(void);
+
+SODIUM_EXPORT
int crypto_hash_sha256(unsigned char *,const unsigned char *,unsigned long long);
#ifdef __cplusplus
diff --git a/src/libsodium/include/sodium/crypto_hash_sha512.h b/src/libsodium/include/sodium/crypto_hash_sha512.h
index dcc5b5e..c98c21a 100644
--- a/src/libsodium/include/sodium/crypto_hash_sha512.h
+++ b/src/libsodium/include/sodium/crypto_hash_sha512.h
@@ -1,6 +1,7 @@
#ifndef crypto_hash_sha512_H
#define crypto_hash_sha512_H
+#include <stddef.h>
#include "export.h"
#define crypto_hash_sha512_BYTES 64U
@@ -11,6 +12,18 @@ extern "C" {
#endif
SODIUM_EXPORT
+size_t crypto_hash_sha512_bytes(void);
+
+SODIUM_EXPORT
+const char * crypto_hash_sha512_primitive(void);
+
+SODIUM_EXPORT
+size_t crypto_hash_sha512_implementation(void);
+
+SODIUM_EXPORT
+size_t crypto_hash_sha512_version(void);
+
+SODIUM_EXPORT
int crypto_hash_sha512(unsigned char *,const unsigned char *,unsigned long long);
#ifdef __cplusplus
diff --git a/src/libsodium/include/sodium/crypto_hashblocks_sha256.h b/src/libsodium/include/sodium/crypto_hashblocks_sha256.h
index ea52348..5768911 100644
--- a/src/libsodium/include/sodium/crypto_hashblocks_sha256.h
+++ b/src/libsodium/include/sodium/crypto_hashblocks_sha256.h
@@ -1,6 +1,7 @@
#ifndef crypto_hashblocks_sha256_H
#define crypto_hashblocks_sha256_H
+#include <stddef.h>
#include "export.h"
#define crypto_hashblocks_sha256_STATEBYTES 32U
@@ -11,6 +12,21 @@ extern "C" {
#endif
SODIUM_EXPORT
+size_t crypto_hashblocks_sha256_statebytes(void);
+
+SODIUM_EXPORT
+size_t crypto_hashblocks_sha256_blockbytes(void);
+
+SODIUM_EXPORT
+const char * crypto_hashblocks_sha256_primitive(void);
+
+SODIUM_EXPORT
+size_t crypto_hashblocks_sha256_implementation(void);
+
+SODIUM_EXPORT
+size_t crypto_hashblocks_sha256_version(void);
+
+SODIUM_EXPORT
int crypto_hashblocks_sha256(unsigned char *,const unsigned char *,unsigned long long);
#ifdef __cplusplus
diff --git a/src/libsodium/include/sodium/crypto_hashblocks_sha512.h b/src/libsodium/include/sodium/crypto_hashblocks_sha512.h
index 67cd32d..9a7d114 100644
--- a/src/libsodium/include/sodium/crypto_hashblocks_sha512.h
+++ b/src/libsodium/include/sodium/crypto_hashblocks_sha512.h
@@ -1,6 +1,7 @@
#ifndef crypto_hashblocks_sha512_H
#define crypto_hashblocks_sha512_H
+#include <stddef.h>
#include "export.h"
#define crypto_hashblocks_sha512_STATEBYTES 64U
@@ -11,6 +12,21 @@ extern "C" {
#endif
SODIUM_EXPORT
+size_t crypto_hashblocks_sha512_statebytes(void);
+
+SODIUM_EXPORT
+size_t crypto_hashblocks_sha512_blockbytes(void);
+
+SODIUM_EXPORT
+const char * crypto_hashblocks_sha512_primitive(void);
+
+SODIUM_EXPORT
+size_t crypto_hashblocks_sha512_implementation(void);
+
+SODIUM_EXPORT
+size_t crypto_hashblocks_sha512_version(void);
+
+SODIUM_EXPORT
int crypto_hashblocks_sha512(unsigned char *,const unsigned char *,unsigned long long);
#ifdef __cplusplus
diff --git a/src/libsodium/include/sodium/crypto_secretbox_xsalsa20poly1305.h b/src/libsodium/include/sodium/crypto_secretbox_xsalsa20poly1305.h
index b503cbb..4163eb0 100644
--- a/src/libsodium/include/sodium/crypto_secretbox_xsalsa20poly1305.h
+++ b/src/libsodium/include/sodium/crypto_secretbox_xsalsa20poly1305.h
@@ -1,6 +1,7 @@
#ifndef crypto_secretbox_xsalsa20poly1305_H
#define crypto_secretbox_xsalsa20poly1305_H
+#include <stddef.h>
#include "export.h"
#define crypto_secretbox_xsalsa20poly1305_KEYBYTES 32U
@@ -13,6 +14,27 @@ extern "C" {
#endif
SODIUM_EXPORT
+size_t crypto_secretbox_xsalsa20poly1305_keybytes(void);
+
+SODIUM_EXPORT
+size_t crypto_secretbox_xsalsa20poly1305_noncebytes(void);
+
+SODIUM_EXPORT
+size_t crypto_secretbox_xsalsa20poly1305_zerobytes(void);
+
+SODIUM_EXPORT
+size_t crypto_secretbox_xsalsa20poly1305_boxzerobytes(void);
+
+SODIUM_EXPORT
+const char * crypto_secretbox_xsalsa20poly1305_primitive(void);
+
+SODIUM_EXPORT
+size_t crypto_secretbox_xsalsa20poly1305_implementation(void);
+
+SODIUM_EXPORT
+size_t crypto_secretbox_xsalsa20poly1305_version(void);
+
+SODIUM_EXPORT
int crypto_secretbox_xsalsa20poly1305(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
SODIUM_EXPORT
diff --git a/src/libsodium/include/sodium/crypto_shorthash_siphash24.h b/src/libsodium/include/sodium/crypto_shorthash_siphash24.h
index e2e32f6..48bbf58 100644
--- a/src/libsodium/include/sodium/crypto_shorthash_siphash24.h
+++ b/src/libsodium/include/sodium/crypto_shorthash_siphash24.h
@@ -1,6 +1,7 @@
#ifndef crypto_shorthash_siphash24_H
#define crypto_shorthash_siphash24_H
+#include <stddef.h>
#include "export.h"
#define crypto_shorthash_siphash24_BYTES 8U
@@ -11,6 +12,18 @@ extern "C" {
#endif
SODIUM_EXPORT
+size_t crypto_shorthash_siphash24_bytes(void);
+
+SODIUM_EXPORT
+const char * crypto_shorthash_siphash24_primitive(void);
+
+SODIUM_EXPORT
+size_t crypto_shorthash_siphash24_implementation(void);
+
+SODIUM_EXPORT
+size_t crypto_shorthash_siphash24_version(void);
+
+SODIUM_EXPORT
int crypto_shorthash_siphash24(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *);
#ifdef __cplusplus
diff --git a/src/libsodium/include/sodium/crypto_sign_ed25519.h b/src/libsodium/include/sodium/crypto_sign_ed25519.h
index e98d0a1..67f7c3c 100644
--- a/src/libsodium/include/sodium/crypto_sign_ed25519.h
+++ b/src/libsodium/include/sodium/crypto_sign_ed25519.h
@@ -1,6 +1,7 @@
#ifndef crypto_sign_ed25519_H
#define crypto_sign_ed25519_H
+#include <stddef.h>
#include "export.h"
#define crypto_sign_ed25519_SECRETKEYBYTES 64U
@@ -12,6 +13,24 @@ extern "C" {
#endif
SODIUM_EXPORT
+size_t crypto_sign_ed25519_bytes(void);
+
+SODIUM_EXPORT
+size_t crypto_sign_ed25519_publickeybytes(void);
+
+SODIUM_EXPORT
+size_t crypto_sign_ed25519_secretkeybytes(void);
+
+SODIUM_EXPORT
+const char * crypto_sign_ed25519_primitive(void);
+
+SODIUM_EXPORT
+size_t crypto_sign_ed25519_implementation(void);
+
+SODIUM_EXPORT
+size_t crypto_sign_ed25519_version(void);
+
+SODIUM_EXPORT
int crypto_sign_ed25519(unsigned char *,unsigned long long *,const unsigned char *,unsigned long long,const unsigned char *);
SODIUM_EXPORT
diff --git a/src/libsodium/include/sodium/crypto_sign_edwards25519sha512batch.h b/src/libsodium/include/sodium/crypto_sign_edwards25519sha512batch.h
index b6a2f3c..6af75d6 100644
--- a/src/libsodium/include/sodium/crypto_sign_edwards25519sha512batch.h
+++ b/src/libsodium/include/sodium/crypto_sign_edwards25519sha512batch.h
@@ -1,6 +1,7 @@
#ifndef crypto_sign_edwards25519sha512batch_H
#define crypto_sign_edwards25519sha512batch_H
+#include <stddef.h>
#include "export.h"
#define crypto_sign_edwards25519sha512batch_SECRETKEYBYTES 64U
@@ -12,6 +13,24 @@ extern "C" {
#endif
SODIUM_EXPORT
+size_t crypto_sign_edwards25519sha512batch_bytes(void);
+
+SODIUM_EXPORT
+size_t crypto_sign_edwards25519sha512batch_publickeybytes(void);
+
+SODIUM_EXPORT
+size_t crypto_sign_edwards25519sha512batch_secretkeybytes(void);
+
+SODIUM_EXPORT
+const char * crypto_sign_edwards25519sha512batch_primitive(void);
+
+SODIUM_EXPORT
+size_t crypto_sign_edwards25519sha512batch_implementation(void);
+
+SODIUM_EXPORT
+size_t crypto_sign_edwards25519sha512batch_version(void);
+
+SODIUM_EXPORT
int crypto_sign_edwards25519sha512batch(unsigned char *,unsigned long long *,const unsigned char *,unsigned long long,const unsigned char *);
SODIUM_EXPORT
diff --git a/src/libsodium/include/sodium/crypto_stream_aes128ctr.h b/src/libsodium/include/sodium/crypto_stream_aes128ctr.h
index 15d6366..0be7fe6 100644
--- a/src/libsodium/include/sodium/crypto_stream_aes128ctr.h
+++ b/src/libsodium/include/sodium/crypto_stream_aes128ctr.h
@@ -9,6 +9,7 @@
* the crypto_box functions.
*/
+#include <stddef.h>
#include "export.h"
#define crypto_stream_aes128ctr_KEYBYTES 16U
@@ -20,6 +21,24 @@ extern "C" {
#endif
SODIUM_EXPORT
+size_t crypto_stream_aes128ctr_keybytes(void);
+
+SODIUM_EXPORT
+size_t crypto_stream_aes128ctr_noncebytes(void);
+
+SODIUM_EXPORT
+size_t crypto_stream_aes128ctr_beforenmbytes(void);
+
+SODIUM_EXPORT
+const char * crypto_stream_aes128ctr_primitive(void);
+
+SODIUM_EXPORT
+size_t crypto_stream_aes128ctr_implementation(void);
+
+SODIUM_EXPORT
+size_t crypto_stream_aes128ctr_version(void);
+
+SODIUM_EXPORT
int crypto_stream_aes128ctr(unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
SODIUM_EXPORT
diff --git a/src/libsodium/include/sodium/crypto_stream_aes256estream.h b/src/libsodium/include/sodium/crypto_stream_aes256estream.h
index 07c2277..92aa42e 100644
--- a/src/libsodium/include/sodium/crypto_stream_aes256estream.h
+++ b/src/libsodium/include/sodium/crypto_stream_aes256estream.h
@@ -10,6 +10,7 @@
* the crypto_box functions.
*/
+#include <stddef.h>
#include "export.h"
#define crypto_stream_aes256estream_KEYBYTES 32U
@@ -21,6 +22,24 @@ extern "C" {
#endif
SODIUM_EXPORT
+size_t crypto_stream_aes256estream_keybytes(void);
+
+SODIUM_EXPORT
+size_t crypto_stream_aes256estream_noncebytes(void);
+
+SODIUM_EXPORT
+size_t crypto_stream_aes256estream_beforenmbytes(void);
+
+SODIUM_EXPORT
+const char * crypto_stream_aes256estream_primitive(void);
+
+SODIUM_EXPORT
+size_t crypto_stream_aes256estream_implementation(void);
+
+SODIUM_EXPORT
+size_t crypto_stream_aes256estream_version(void);
+
+SODIUM_EXPORT
int crypto_stream_aes256estream(unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
SODIUM_EXPORT
diff --git a/src/libsodium/include/sodium/crypto_stream_salsa2012.h b/src/libsodium/include/sodium/crypto_stream_salsa2012.h
index 18c3a73..71d7bda 100644
--- a/src/libsodium/include/sodium/crypto_stream_salsa2012.h
+++ b/src/libsodium/include/sodium/crypto_stream_salsa2012.h
@@ -9,6 +9,7 @@
* the crypto_box functions.
*/
+#include <stddef.h>
#include "export.h"
#define crypto_stream_salsa2012_KEYBYTES 32U
@@ -19,6 +20,21 @@ extern "C" {
#endif
SODIUM_EXPORT
+size_t crypto_stream_salsa2012_keybytes(void);
+
+SODIUM_EXPORT
+size_t crypto_stream_salsa2012_noncebytes(void);
+
+SODIUM_EXPORT
+const char * crypto_stream_salsa2012_primitive(void);
+
+SODIUM_EXPORT
+size_t crypto_stream_salsa2012_implementation(void);
+
+SODIUM_EXPORT
+size_t crypto_stream_salsa2012_version(void);
+
+SODIUM_EXPORT
int crypto_stream_salsa2012(unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
SODIUM_EXPORT
diff --git a/src/libsodium/include/sodium/crypto_stream_salsa208.h b/src/libsodium/include/sodium/crypto_stream_salsa208.h
index 273395f..ec1e071 100644
--- a/src/libsodium/include/sodium/crypto_stream_salsa208.h
+++ b/src/libsodium/include/sodium/crypto_stream_salsa208.h
@@ -9,6 +9,7 @@
* the crypto_box functions.
*/
+#include <stddef.h>
#include "export.h"
#define crypto_stream_salsa208_KEYBYTES 32U
@@ -19,6 +20,21 @@ extern "C" {
#endif
SODIUM_EXPORT
+size_t crypto_stream_salsa208_keybytes(void);
+
+SODIUM_EXPORT
+size_t crypto_stream_salsa208_noncebytes(void);
+
+SODIUM_EXPORT
+const char * crypto_stream_salsa208_primitive(void);
+
+SODIUM_EXPORT
+size_t crypto_stream_salsa208_implementation(void);
+
+SODIUM_EXPORT
+size_t crypto_stream_salsa208_version(void);
+
+SODIUM_EXPORT
int crypto_stream_salsa208(unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
SODIUM_EXPORT
diff --git a/src/libsodium/include/sodium/crypto_stream_xsalsa20.h b/src/libsodium/include/sodium/crypto_stream_xsalsa20.h
index 5f58c7e..1dc4891 100644
--- a/src/libsodium/include/sodium/crypto_stream_xsalsa20.h
+++ b/src/libsodium/include/sodium/crypto_stream_xsalsa20.h
@@ -9,6 +9,7 @@
* the crypto_box functions.
*/
+#include <stddef.h>
#include "export.h"
#define crypto_stream_xsalsa20_KEYBYTES 32U
@@ -19,6 +20,21 @@ extern "C" {
#endif
SODIUM_EXPORT
+size_t crypto_stream_xsalsa20_keybytes(void);
+
+SODIUM_EXPORT
+size_t crypto_stream_xsalsa20_noncebytes(void);
+
+SODIUM_EXPORT
+const char * crypto_stream_xsalsa20_primitive(void);
+
+SODIUM_EXPORT
+size_t crypto_stream_xsalsa20_implementation(void);
+
+SODIUM_EXPORT
+size_t crypto_stream_xsalsa20_version(void);
+
+SODIUM_EXPORT
int crypto_stream_xsalsa20(unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
SODIUM_EXPORT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment