rbnacl-libsodium 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +4 -0
  3. data/lib/rbnacl/libsodium/version.rb +1 -1
  4. data/vendor/libsodium/ChangeLog +20 -0
  5. data/vendor/libsodium/LICENSE +1 -1
  6. data/vendor/libsodium/Makefile.in +8 -4
  7. data/vendor/libsodium/THANKS +3 -0
  8. data/vendor/libsodium/autom4te.cache/output.1 +96 -57
  9. data/vendor/libsodium/autom4te.cache/output.3 +96 -57
  10. data/vendor/libsodium/autom4te.cache/requests +544 -544
  11. data/vendor/libsodium/autom4te.cache/traces.1 +386 -367
  12. data/vendor/libsodium/autom4te.cache/traces.3 +222 -213
  13. data/vendor/libsodium/builds/msvc/version.h +2 -2
  14. data/vendor/libsodium/builds/msvc/vs2010/libsodium/libsodium.props +1 -1
  15. data/vendor/libsodium/builds/msvc/vs2012/libsodium/libsodium.props +1 -1
  16. data/vendor/libsodium/builds/msvc/vs2013/libsodium/libsodium.props +1 -1
  17. data/vendor/libsodium/configure +95 -56
  18. data/vendor/libsodium/configure.ac +26 -11
  19. data/vendor/libsodium/dist-build/Makefile.am +1 -0
  20. data/vendor/libsodium/dist-build/Makefile.in +2 -0
  21. data/vendor/libsodium/dist-build/emscripten.sh +48 -10
  22. data/vendor/libsodium/dist-build/ios.sh +59 -7
  23. data/vendor/libsodium/libsodium-uninstalled.pc.in +6 -0
  24. data/vendor/libsodium/msvc-scripts/Makefile.in +1 -0
  25. data/vendor/libsodium/msvc-scripts/process.bat +2 -2
  26. data/vendor/libsodium/msvc-scripts/sodium.props +2 -2
  27. data/vendor/libsodium/src/Makefile.in +1 -0
  28. data/vendor/libsodium/src/libsodium/Makefile.in +1 -0
  29. data/vendor/libsodium/src/libsodium/crypto_box/crypto_box_easy.c +46 -4
  30. data/vendor/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/ref/box_curve25519xsalsa20poly1305.c +13 -2
  31. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/scrypt_platform.c +2 -2
  32. data/vendor/libsodium/src/libsodium/crypto_secretbox/crypto_secretbox_easy.c +8 -2
  33. data/vendor/libsodium/src/libsodium/crypto_sign/crypto_sign.c +6 -6
  34. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/keypair.c +3 -1
  35. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/open.c +13 -6
  36. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/sign.c +8 -8
  37. data/vendor/libsodium/src/libsodium/crypto_sign/edwards25519sha512batch/ref/sign_edwards25519sha512batch.c +10 -6
  38. data/vendor/libsodium/src/libsodium/crypto_stream/chacha20/ref/stream_chacha20_ref.c +2 -2
  39. data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/ref/stream_salsa20_ref.c +2 -2
  40. data/vendor/libsodium/src/libsodium/crypto_stream/salsa20/ref/xor_salsa20_ref.c +2 -2
  41. data/vendor/libsodium/src/libsodium/crypto_stream/salsa2012/ref/stream_salsa2012.c +11 -5
  42. data/vendor/libsodium/src/libsodium/crypto_stream/salsa2012/ref/xor_salsa2012.c +11 -5
  43. data/vendor/libsodium/src/libsodium/crypto_stream/salsa208/ref/stream_salsa208.c +11 -5
  44. data/vendor/libsodium/src/libsodium/crypto_stream/salsa208/ref/xor_salsa208.c +11 -5
  45. data/vendor/libsodium/src/libsodium/crypto_stream/xsalsa20/ref/stream_xsalsa20.c +5 -1
  46. data/vendor/libsodium/src/libsodium/crypto_stream/xsalsa20/ref/xor_xsalsa20.c +5 -1
  47. data/vendor/libsodium/src/libsodium/include/Makefile.in +1 -0
  48. data/vendor/libsodium/src/libsodium/include/sodium.h +44 -44
  49. data/vendor/libsodium/src/libsodium/include/sodium/crypto_box.h +61 -36
  50. data/vendor/libsodium/src/libsodium/include/sodium/crypto_pwhash_scryptsalsa208sha256.h +0 -10
  51. data/vendor/libsodium/src/libsodium/include/sodium/crypto_secretbox.h +20 -18
  52. data/vendor/libsodium/src/libsodium/include/sodium/crypto_sign.h +3 -3
  53. data/vendor/libsodium/src/libsodium/include/sodium/crypto_sign_ed25519.h +3 -3
  54. data/vendor/libsodium/src/libsodium/include/sodium/crypto_sign_edwards25519sha512batch.h +2 -2
  55. data/vendor/libsodium/src/libsodium/include/sodium/randombytes.h +1 -1
  56. data/vendor/libsodium/src/libsodium/include/sodium/utils.h +10 -3
  57. data/vendor/libsodium/src/libsodium/randombytes/salsa20/randombytes_salsa20_random.c +9 -2
  58. data/vendor/libsodium/src/libsodium/randombytes/sysrandom/randombytes_sysrandom.c +9 -2
  59. data/vendor/libsodium/src/libsodium/sodium/utils.c +97 -72
  60. data/vendor/libsodium/test/Makefile.in +1 -0
  61. data/vendor/libsodium/test/default/Makefile.am +9 -2
  62. data/vendor/libsodium/test/default/Makefile.in +38 -78
  63. data/vendor/libsodium/test/default/box_easy2.c +55 -10
  64. data/vendor/libsodium/test/default/box_easy2.exp +3 -0
  65. data/vendor/libsodium/test/default/cmptest.h +4 -0
  66. data/vendor/libsodium/test/default/{pre.js → pre.js.inc} +10 -4
  67. data/vendor/libsodium/test/default/pwhash.c +6 -4
  68. data/vendor/libsodium/test/default/scalarmult6.c +0 -2
  69. data/vendor/libsodium/test/default/sign.c +1 -1
  70. data/vendor/libsodium/test/default/sodium_utils2.c +5 -2
  71. data/vendor/libsodium/test/default/sodium_utils3.c +3 -1
  72. metadata +5 -4
@@ -8,7 +8,7 @@
8
8
  #include "utils.h"
9
9
 
10
10
  int
11
- crypto_sign_detached(unsigned char *sig, unsigned long long *siglen,
11
+ crypto_sign_detached(unsigned char *sig, unsigned long long *siglen_p,
12
12
  const unsigned char *m, unsigned long long mlen,
13
13
  const unsigned char *sk)
14
14
  {
@@ -48,14 +48,14 @@ crypto_sign_detached(unsigned char *sig, unsigned long long *siglen,
48
48
  sodium_memzero(az, sizeof az);
49
49
  sodium_memzero(nonce, sizeof nonce);
50
50
 
51
- if (siglen != NULL) {
52
- *siglen = 64U;
51
+ if (siglen_p != NULL) {
52
+ *siglen_p = 64U;
53
53
  }
54
54
  return 0;
55
55
  }
56
56
 
57
57
  int
58
- crypto_sign(unsigned char *sm, unsigned long long *smlen,
58
+ crypto_sign(unsigned char *sm, unsigned long long *smlen_p,
59
59
  const unsigned char *m, unsigned long long mlen,
60
60
  const unsigned char *sk)
61
61
  {
@@ -66,16 +66,16 @@ crypto_sign(unsigned char *sm, unsigned long long *smlen,
66
66
  if (crypto_sign_detached(sm, &siglen, sm + crypto_sign_ed25519_BYTES,
67
67
  mlen, sk) != 0 ||
68
68
  siglen != crypto_sign_ed25519_BYTES) {
69
- if (smlen != NULL) {
70
- *smlen = 0;
69
+ if (smlen_p != NULL) {
70
+ *smlen_p = 0;
71
71
  }
72
72
  memset(sm, 0, mlen + crypto_sign_ed25519_BYTES);
73
73
  return -1;
74
74
  }
75
75
  /* LCOV_EXCL_STOP */
76
76
 
77
- if (smlen != NULL) {
78
- *smlen = mlen + siglen;
77
+ if (smlen_p != NULL) {
78
+ *smlen_p = mlen + siglen;
79
79
  }
80
80
  return 0;
81
81
  }
@@ -27,7 +27,7 @@ int crypto_sign_keypair(
27
27
  }
28
28
 
29
29
  int crypto_sign(
30
- unsigned char *sm,unsigned long long *smlen,
30
+ unsigned char *sm,unsigned long long *smlen_p,
31
31
  const unsigned char *m,unsigned long long mlen,
32
32
  const unsigned char *sk
33
33
  )
@@ -40,7 +40,9 @@ int crypto_sign(
40
40
  unsigned char hmg[crypto_hash_sha512_BYTES];
41
41
  unsigned char hmr[crypto_hash_sha512_BYTES];
42
42
 
43
- *smlen = mlen+64;
43
+ if (smlen_p != NULL) {
44
+ *smlen_p = mlen+64;
45
+ }
44
46
  for(i=0;i<mlen;i++)
45
47
  sm[32 + i] = m[i];
46
48
  for(i=0;i<32;i++)
@@ -69,7 +71,7 @@ int crypto_sign(
69
71
  }
70
72
 
71
73
  int crypto_sign_open(
72
- unsigned char *m,unsigned long long *mlen,
74
+ unsigned char *m,unsigned long long *mlen_p,
73
75
  const unsigned char *sm,unsigned long long smlen,
74
76
  const unsigned char *pk
75
77
  )
@@ -94,9 +96,11 @@ int crypto_sign_open(
94
96
  ge25519_scalarmult_base(&get2, &scs);
95
97
  ge25519_pack(t2, &get2);
96
98
 
97
- for(i=0;i<smlen-64;i++)
99
+ for(i=0;i<smlen-64;i++) {
98
100
  m[i] = sm[i + 32];
99
- *mlen = smlen-64;
100
-
101
+ }
102
+ if (mlen_p != NULL) {
103
+ *mlen_p = smlen-64;
104
+ }
101
105
  return crypto_verify_32(t1, t2);
102
106
  }
@@ -98,7 +98,7 @@ chacha_encrypt_bytes(chacha_ctx *x, const u8 *m, u8 *c, unsigned long long bytes
98
98
  u32 j0, j1, j2, j3, j4, j5, j6, j7, j8, j9, j10, j11, j12, j13, j14, j15;
99
99
  u8 *ctarget = NULL;
100
100
  u8 tmp[64];
101
- unsigned long long i;
101
+ unsigned int i;
102
102
 
103
103
  if (!bytes) {
104
104
  return; /* LCOV_EXCL_LINE */
@@ -215,7 +215,7 @@ chacha_encrypt_bytes(chacha_ctx *x, const u8 *m, u8 *c, unsigned long long bytes
215
215
 
216
216
  if (bytes <= 64) {
217
217
  if (bytes < 64) {
218
- for (i = 0; i < bytes; ++i) {
218
+ for (i = 0; i < (unsigned int) bytes; ++i) {
219
219
  ctarget[i] = c[i];
220
220
  }
221
221
  }
@@ -25,7 +25,7 @@ int crypto_stream(
25
25
  unsigned char in[16];
26
26
  unsigned char block[64];
27
27
  unsigned char kcopy[32];
28
- unsigned long long i;
28
+ unsigned int i;
29
29
  unsigned int u;
30
30
 
31
31
  if (!clen) return 0;
@@ -50,7 +50,7 @@ int crypto_stream(
50
50
 
51
51
  if (clen) {
52
52
  crypto_core_salsa20(block,in,kcopy,sigma);
53
- for (i = 0;i < clen;++i) c[i] = block[i];
53
+ for (i = 0;i < (unsigned int) clen;++i) c[i] = block[i];
54
54
  }
55
55
  sodium_memzero(block, sizeof block);
56
56
  sodium_memzero(kcopy, sizeof kcopy);
@@ -28,7 +28,7 @@ int crypto_stream_salsa20_xor_ic(
28
28
  unsigned char in[16];
29
29
  unsigned char block[64];
30
30
  unsigned char kcopy[32];
31
- unsigned long long i;
31
+ unsigned int i;
32
32
  unsigned int u;
33
33
 
34
34
  if (!mlen) return 0;
@@ -58,7 +58,7 @@ int crypto_stream_salsa20_xor_ic(
58
58
 
59
59
  if (mlen) {
60
60
  crypto_core_salsa20(block,in,kcopy,sigma);
61
- for (i = 0;i < mlen;++i) c[i] = m[i] ^ block[i];
61
+ for (i = 0;i < (unsigned int) mlen;++i) c[i] = m[i] ^ block[i];
62
62
  }
63
63
  sodium_memzero(block, sizeof block);
64
64
  sodium_memzero(kcopy, sizeof kcopy);
@@ -1,11 +1,12 @@
1
1
  /*
2
- version 20080913
2
+ version 20140420
3
3
  D. J. Bernstein
4
4
  Public domain.
5
5
  */
6
6
 
7
7
  #include "api.h"
8
8
  #include "crypto_core_salsa2012.h"
9
+ #include "utils.h"
9
10
 
10
11
  typedef unsigned int uint32;
11
12
 
@@ -21,16 +22,18 @@ int crypto_stream(
21
22
  {
22
23
  unsigned char in[16];
23
24
  unsigned char block[64];
24
- unsigned long long i;
25
+ unsigned char kcopy[32];
26
+ unsigned int i;
25
27
  unsigned int u;
26
28
 
27
29
  if (!clen) return 0;
28
30
 
31
+ for (i = 0;i < 32;++i) kcopy[i] = k[i];
29
32
  for (i = 0;i < 8;++i) in[i] = n[i];
30
33
  for (i = 8;i < 16;++i) in[i] = 0;
31
34
 
32
35
  while (clen >= 64) {
33
- crypto_core_salsa2012(c,in,k,sigma);
36
+ crypto_core_salsa2012(c,in,kcopy,sigma);
34
37
 
35
38
  u = 1;
36
39
  for (i = 8;i < 16;++i) {
@@ -44,8 +47,11 @@ int crypto_stream(
44
47
  }
45
48
 
46
49
  if (clen) {
47
- crypto_core_salsa2012(block,in,k,sigma);
48
- for (i = 0;i < clen;++i) c[i] = block[i];
50
+ crypto_core_salsa2012(block,in,kcopy,sigma);
51
+ for (i = 0;i < (unsigned int) clen;++i) c[i] = block[i];
49
52
  }
53
+ sodium_memzero(block, sizeof block);
54
+ sodium_memzero(kcopy, sizeof kcopy);
55
+
50
56
  return 0;
51
57
  }
@@ -1,11 +1,12 @@
1
1
  /*
2
- version 20080913
2
+ version 20140420
3
3
  D. J. Bernstein
4
4
  Public domain.
5
5
  */
6
6
 
7
7
  #include "api.h"
8
8
  #include "crypto_core_salsa2012.h"
9
+ #include "utils.h"
9
10
 
10
11
  typedef unsigned int uint32;
11
12
 
@@ -22,16 +23,18 @@ int crypto_stream_xor(
22
23
  {
23
24
  unsigned char in[16];
24
25
  unsigned char block[64];
25
- unsigned long long i;
26
+ unsigned char kcopy[32];
27
+ unsigned int i;
26
28
  unsigned int u;
27
29
 
28
30
  if (!mlen) return 0;
29
31
 
32
+ for (i = 0;i < 32;++i) kcopy[i] = k[i];
30
33
  for (i = 0;i < 8;++i) in[i] = n[i];
31
34
  for (i = 8;i < 16;++i) in[i] = 0;
32
35
 
33
36
  while (mlen >= 64) {
34
- crypto_core_salsa2012(block,in,k,sigma);
37
+ crypto_core_salsa2012(block,in,kcopy,sigma);
35
38
  for (i = 0;i < 64;++i) c[i] = m[i] ^ block[i];
36
39
 
37
40
  u = 1;
@@ -47,8 +50,11 @@ int crypto_stream_xor(
47
50
  }
48
51
 
49
52
  if (mlen) {
50
- crypto_core_salsa2012(block,in,k,sigma);
51
- for (i = 0;i < mlen;++i) c[i] = m[i] ^ block[i];
53
+ crypto_core_salsa2012(block,in,kcopy,sigma);
54
+ for (i = 0;i < (unsigned int) mlen;++i) c[i] = m[i] ^ block[i];
52
55
  }
56
+ sodium_memzero(block, sizeof block);
57
+ sodium_memzero(kcopy, sizeof kcopy);
58
+
53
59
  return 0;
54
60
  }
@@ -1,11 +1,12 @@
1
1
  /*
2
- version 20080913
2
+ version 20140420
3
3
  D. J. Bernstein
4
4
  Public domain.
5
5
  */
6
6
 
7
7
  #include "api.h"
8
8
  #include "crypto_core_salsa208.h"
9
+ #include "utils.h"
9
10
 
10
11
  typedef unsigned int uint32;
11
12
 
@@ -21,16 +22,18 @@ int crypto_stream(
21
22
  {
22
23
  unsigned char in[16];
23
24
  unsigned char block[64];
24
- unsigned long long i;
25
+ unsigned char kcopy[32];
26
+ unsigned int i;
25
27
  unsigned int u;
26
28
 
27
29
  if (!clen) return 0;
28
30
 
31
+ for (i = 0;i < 32;++i) kcopy[i] = k[i];
29
32
  for (i = 0;i < 8;++i) in[i] = n[i];
30
33
  for (i = 8;i < 16;++i) in[i] = 0;
31
34
 
32
35
  while (clen >= 64) {
33
- crypto_core_salsa208(c,in,k,sigma);
36
+ crypto_core_salsa208(c,in,kcopy,sigma);
34
37
 
35
38
  u = 1;
36
39
  for (i = 8;i < 16;++i) {
@@ -44,8 +47,11 @@ int crypto_stream(
44
47
  }
45
48
 
46
49
  if (clen) {
47
- crypto_core_salsa208(block,in,k,sigma);
48
- for (i = 0;i < clen;++i) c[i] = block[i];
50
+ crypto_core_salsa208(block,in,kcopy,sigma);
51
+ for (i = 0;i < (unsigned int) clen;++i) c[i] = block[i];
49
52
  }
53
+ sodium_memzero(block, sizeof block);
54
+ sodium_memzero(kcopy, sizeof kcopy);
55
+
50
56
  return 0;
51
57
  }
@@ -1,11 +1,12 @@
1
1
  /*
2
- version 20080913
2
+ version 20140420
3
3
  D. J. Bernstein
4
4
  Public domain.
5
5
  */
6
6
 
7
7
  #include "api.h"
8
8
  #include "crypto_core_salsa208.h"
9
+ #include "utils.h"
9
10
 
10
11
  typedef unsigned int uint32;
11
12
 
@@ -22,16 +23,18 @@ int crypto_stream_xor(
22
23
  {
23
24
  unsigned char in[16];
24
25
  unsigned char block[64];
25
- unsigned long long i;
26
+ unsigned char kcopy[32];
27
+ unsigned int i;
26
28
  unsigned int u;
27
29
 
28
30
  if (!mlen) return 0;
29
31
 
32
+ for (i = 0;i < 32;++i) kcopy[i] = k[i];
30
33
  for (i = 0;i < 8;++i) in[i] = n[i];
31
34
  for (i = 8;i < 16;++i) in[i] = 0;
32
35
 
33
36
  while (mlen >= 64) {
34
- crypto_core_salsa208(block,in,k,sigma);
37
+ crypto_core_salsa208(block,in,kcopy,sigma);
35
38
  for (i = 0;i < 64;++i) c[i] = m[i] ^ block[i];
36
39
 
37
40
  u = 1;
@@ -47,8 +50,11 @@ int crypto_stream_xor(
47
50
  }
48
51
 
49
52
  if (mlen) {
50
- crypto_core_salsa208(block,in,k,sigma);
51
- for (i = 0;i < mlen;++i) c[i] = m[i] ^ block[i];
53
+ crypto_core_salsa208(block,in,kcopy,sigma);
54
+ for (i = 0;i < (unsigned int) mlen;++i) c[i] = m[i] ^ block[i];
52
55
  }
56
+ sodium_memzero(block, sizeof block);
57
+ sodium_memzero(kcopy, sizeof kcopy);
58
+
53
59
  return 0;
54
60
  }
@@ -7,6 +7,7 @@ Public domain.
7
7
  #include "api.h"
8
8
  #include "crypto_core_hsalsa20.h"
9
9
  #include "crypto_stream_salsa20.h"
10
+ #include "utils.h"
10
11
 
11
12
  static const unsigned char sigma[16] = {
12
13
  'e', 'x', 'p', 'a', 'n', 'd', ' ', '3', '2', '-', 'b', 'y', 't', 'e', ' ', 'k'
@@ -19,6 +20,9 @@ int crypto_stream(
19
20
  )
20
21
  {
21
22
  unsigned char subkey[32];
23
+ int ret;
22
24
  crypto_core_hsalsa20(subkey,n,k,sigma);
23
- return crypto_stream_salsa20(c,clen,n + 16,subkey);
25
+ ret = crypto_stream_salsa20(c,clen,n + 16,subkey);
26
+ sodium_memzero(subkey, sizeof subkey);
27
+ return ret;
24
28
  }
@@ -7,6 +7,7 @@ Public domain.
7
7
  #include "api.h"
8
8
  #include "crypto_core_hsalsa20.h"
9
9
  #include "crypto_stream_salsa20.h"
10
+ #include "utils.h"
10
11
 
11
12
  static const unsigned char sigma[16] = {
12
13
  'e', 'x', 'p', 'a', 'n', 'd', ' ', '3', '2', '-', 'b', 'y', 't', 'e', ' ', 'k'
@@ -20,6 +21,9 @@ int crypto_stream_xor(
20
21
  )
21
22
  {
22
23
  unsigned char subkey[32];
24
+ int ret;
23
25
  crypto_core_hsalsa20(subkey,n,k,sigma);
24
- return crypto_stream_salsa20_xor(c,m,mlen,n + 16,subkey);
26
+ ret = crypto_stream_salsa20_xor(c,m,mlen,n + 16,subkey);
27
+ sodium_memzero(subkey, sizeof subkey);
28
+ return ret;
25
29
  }
@@ -239,6 +239,7 @@ SODIUM_LIBRARY_VERSION = @SODIUM_LIBRARY_VERSION@
239
239
  SODIUM_LIBRARY_VERSION_MAJOR = @SODIUM_LIBRARY_VERSION_MAJOR@
240
240
  SODIUM_LIBRARY_VERSION_MINOR = @SODIUM_LIBRARY_VERSION_MINOR@
241
241
  STRIP = @STRIP@
242
+ TEST_LDFLAGS = @TEST_LDFLAGS@
242
243
  VERSION = @VERSION@
243
244
  abs_builddir = @abs_builddir@
244
245
  abs_srcdir = @abs_srcdir@
@@ -2,49 +2,49 @@
2
2
  #ifndef sodium_H
3
3
  #define sodium_H
4
4
 
5
- #include <sodium/core.h>
6
- #include <sodium/crypto_aead_chacha20poly1305.h>
7
- #include <sodium/crypto_auth.h>
8
- #include <sodium/crypto_auth_hmacsha256.h>
9
- #include <sodium/crypto_auth_hmacsha512.h>
10
- #include <sodium/crypto_auth_hmacsha512256.h>
11
- #include <sodium/crypto_box.h>
12
- #include <sodium/crypto_box_curve25519xsalsa20poly1305.h>
13
- #include <sodium/crypto_core_hsalsa20.h>
14
- #include <sodium/crypto_core_salsa20.h>
15
- #include <sodium/crypto_core_salsa2012.h>
16
- #include <sodium/crypto_core_salsa208.h>
17
- #include <sodium/crypto_generichash.h>
18
- #include <sodium/crypto_generichash_blake2b.h>
19
- #include <sodium/crypto_hash.h>
20
- #include <sodium/crypto_hash_sha256.h>
21
- #include <sodium/crypto_hash_sha512.h>
22
- #include <sodium/crypto_onetimeauth.h>
23
- #include <sodium/crypto_onetimeauth_poly1305.h>
24
- #include <sodium/crypto_pwhash_scryptsalsa208sha256.h>
25
- #include <sodium/crypto_scalarmult.h>
26
- #include <sodium/crypto_scalarmult_curve25519.h>
27
- #include <sodium/crypto_secretbox.h>
28
- #include <sodium/crypto_secretbox_xsalsa20poly1305.h>
29
- #include <sodium/crypto_shorthash.h>
30
- #include <sodium/crypto_shorthash_siphash24.h>
31
- #include <sodium/crypto_sign.h>
32
- #include <sodium/crypto_sign_ed25519.h>
33
- #include <sodium/crypto_stream.h>
34
- #include <sodium/crypto_stream_aes128ctr.h>
35
- #include <sodium/crypto_stream_chacha20.h>
36
- #include <sodium/crypto_stream_salsa20.h>
37
- #include <sodium/crypto_stream_salsa2012.h>
38
- #include <sodium/crypto_stream_salsa208.h>
39
- #include <sodium/crypto_stream_xsalsa20.h>
40
- #include <sodium/crypto_verify_16.h>
41
- #include <sodium/crypto_verify_32.h>
42
- #include <sodium/crypto_verify_64.h>
43
- #include <sodium/randombytes.h>
44
- #include <sodium/randombytes_salsa20_random.h>
45
- #include <sodium/randombytes_sysrandom.h>
46
- #include <sodium/runtime.h>
47
- #include <sodium/utils.h>
48
- #include <sodium/version.h>
5
+ #include "sodium/core.h"
6
+ #include "sodium/crypto_aead_chacha20poly1305.h"
7
+ #include "sodium/crypto_auth.h"
8
+ #include "sodium/crypto_auth_hmacsha256.h"
9
+ #include "sodium/crypto_auth_hmacsha512.h"
10
+ #include "sodium/crypto_auth_hmacsha512256.h"
11
+ #include "sodium/crypto_box.h"
12
+ #include "sodium/crypto_box_curve25519xsalsa20poly1305.h"
13
+ #include "sodium/crypto_core_hsalsa20.h"
14
+ #include "sodium/crypto_core_salsa20.h"
15
+ #include "sodium/crypto_core_salsa2012.h"
16
+ #include "sodium/crypto_core_salsa208.h"
17
+ #include "sodium/crypto_generichash.h"
18
+ #include "sodium/crypto_generichash_blake2b.h"
19
+ #include "sodium/crypto_hash.h"
20
+ #include "sodium/crypto_hash_sha256.h"
21
+ #include "sodium/crypto_hash_sha512.h"
22
+ #include "sodium/crypto_onetimeauth.h"
23
+ #include "sodium/crypto_onetimeauth_poly1305.h"
24
+ #include "sodium/crypto_pwhash_scryptsalsa208sha256.h"
25
+ #include "sodium/crypto_scalarmult.h"
26
+ #include "sodium/crypto_scalarmult_curve25519.h"
27
+ #include "sodium/crypto_secretbox.h"
28
+ #include "sodium/crypto_secretbox_xsalsa20poly1305.h"
29
+ #include "sodium/crypto_shorthash.h"
30
+ #include "sodium/crypto_shorthash_siphash24.h"
31
+ #include "sodium/crypto_sign.h"
32
+ #include "sodium/crypto_sign_ed25519.h"
33
+ #include "sodium/crypto_stream.h"
34
+ #include "sodium/crypto_stream_aes128ctr.h"
35
+ #include "sodium/crypto_stream_chacha20.h"
36
+ #include "sodium/crypto_stream_salsa20.h"
37
+ #include "sodium/crypto_stream_salsa2012.h"
38
+ #include "sodium/crypto_stream_salsa208.h"
39
+ #include "sodium/crypto_stream_xsalsa20.h"
40
+ #include "sodium/crypto_verify_16.h"
41
+ #include "sodium/crypto_verify_32.h"
42
+ #include "sodium/crypto_verify_64.h"
43
+ #include "sodium/randombytes.h"
44
+ #include "sodium/randombytes_salsa20_random.h"
45
+ #include "sodium/randombytes_sysrandom.h"
46
+ #include "sodium/runtime.h"
47
+ #include "sodium/utils.h"
48
+ #include "sodium/version.h"
49
49
 
50
50
  #endif