rbnacl-libsodium 0.6.1 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) 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/AUTHORS +0 -3
  5. data/vendor/libsodium/ChangeLog +24 -0
  6. data/vendor/libsodium/THANKS +2 -0
  7. data/vendor/libsodium/autom4te.cache/output.1 +35 -147
  8. data/vendor/libsodium/autom4te.cache/output.3 +35 -147
  9. data/vendor/libsodium/autom4te.cache/requests +127 -127
  10. data/vendor/libsodium/autom4te.cache/traces.1 +244 -254
  11. data/vendor/libsodium/autom4te.cache/traces.3 +111 -113
  12. data/vendor/libsodium/builds/msvc/properties/Common.props +3 -1
  13. data/vendor/libsodium/builds/msvc/properties/Release.props +1 -3
  14. data/vendor/libsodium/builds/msvc/version.h +3 -3
  15. data/vendor/libsodium/builds/msvc/vs2010/libsodium/libsodium.vcxproj +1 -11
  16. data/vendor/libsodium/builds/msvc/vs2010/libsodium/libsodium.vcxproj.filters +1 -37
  17. data/vendor/libsodium/builds/msvc/vs2010/test/test.vcxproj +10 -1
  18. data/vendor/libsodium/builds/msvc/vs2010/test/test.vcxproj.filters +10 -1
  19. data/vendor/libsodium/builds/msvc/vs2012/libsodium/libsodium.vcxproj +1 -11
  20. data/vendor/libsodium/builds/msvc/vs2012/libsodium/libsodium.vcxproj.filters +1 -37
  21. data/vendor/libsodium/builds/msvc/vs2012/test/test.vcxproj +10 -1
  22. data/vendor/libsodium/builds/msvc/vs2012/test/test.vcxproj.filters +10 -1
  23. data/vendor/libsodium/builds/msvc/vs2013/libsodium/libsodium.vcxproj +1 -11
  24. data/vendor/libsodium/builds/msvc/vs2013/libsodium/libsodium.vcxproj.filters +1 -37
  25. data/vendor/libsodium/builds/msvc/vs2013/test/test.vcxproj +10 -1
  26. data/vendor/libsodium/builds/msvc/vs2013/test/test.vcxproj.filters +10 -1
  27. data/vendor/libsodium/configure +33 -145
  28. data/vendor/libsodium/configure.ac +22 -23
  29. data/vendor/libsodium/dist-build/android-build.sh +1 -0
  30. data/vendor/libsodium/dist-build/emscripten.sh +2 -2
  31. data/vendor/libsodium/dist-build/ios.sh +1 -0
  32. data/vendor/libsodium/libsodium.pc.in +1 -1
  33. data/vendor/libsodium/libsodium.vcxproj +1 -5
  34. data/vendor/libsodium/libsodium.vcxproj.filters +1 -13
  35. data/vendor/libsodium/msvc-scripts/process.bat +3 -3
  36. data/vendor/libsodium/msvc-scripts/sodium.props +4 -1
  37. data/vendor/libsodium/src/libsodium/Makefile.am +1 -10
  38. data/vendor/libsodium/src/libsodium/Makefile.in +5 -79
  39. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha256/cp/verify_hmacsha256.c +3 -1
  40. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512/cp/verify_hmacsha512.c +3 -1
  41. data/vendor/libsodium/src/libsodium/crypto_auth/hmacsha512256/cp/verify_hmacsha512256.c +3 -1
  42. data/vendor/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/pwhash_scryptsalsa208sha256.c +6 -0
  43. data/vendor/libsodium/src/libsodium/crypto_scalarmult/curve25519/ref10/pow225521.h +2 -2
  44. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/keypair.c +46 -3
  45. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/open.c +2 -10
  46. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/sign.c +7 -1
  47. data/vendor/libsodium/src/libsodium/crypto_sign/ed25519/sign_ed25519_api.c +18 -0
  48. data/vendor/libsodium/src/libsodium/include/Makefile.am +0 -1
  49. data/vendor/libsodium/src/libsodium/include/Makefile.in +0 -1
  50. data/vendor/libsodium/src/libsodium/include/sodium.h +0 -1
  51. data/vendor/libsodium/src/libsodium/include/sodium/crypto_onetimeauth_poly1305.h +1 -2
  52. data/vendor/libsodium/src/libsodium/include/sodium/crypto_pwhash_scryptsalsa208sha256.h +5 -0
  53. data/vendor/libsodium/src/libsodium/include/sodium/crypto_sign_ed25519.h +15 -0
  54. data/vendor/libsodium/src/libsodium/include/sodium/utils.h +54 -3
  55. data/vendor/libsodium/src/libsodium/randombytes/salsa20/randombytes_salsa20_random.c +22 -7
  56. data/vendor/libsodium/src/libsodium/sodium/core.c +2 -0
  57. data/vendor/libsodium/src/libsodium/sodium/utils.c +305 -31
  58. data/vendor/libsodium/test/default/Makefile.am +18 -16
  59. data/vendor/libsodium/test/default/Makefile.in +141 -76
  60. data/vendor/libsodium/test/default/ed25519_convert.c +48 -0
  61. data/vendor/libsodium/test/default/ed25519_convert.exp +3 -0
  62. data/vendor/libsodium/test/default/sign.c +15 -4
  63. data/vendor/libsodium/test/default/sodium_utils2.c +70 -0
  64. data/vendor/libsodium/test/default/sodium_utils2.exp +3 -0
  65. data/vendor/libsodium/test/default/sodium_utils3.c +55 -0
  66. data/vendor/libsodium/test/default/sodium_utils3.exp +2 -0
  67. metadata +8 -24
  68. data/vendor/libsodium/src/libsodium/crypto_auth/try.c +0 -119
  69. data/vendor/libsodium/src/libsodium/crypto_box/try.c +0 -195
  70. data/vendor/libsodium/src/libsodium/crypto_hash/try.c +0 -76
  71. data/vendor/libsodium/src/libsodium/crypto_scalarmult/try.c +0 -125
  72. data/vendor/libsodium/src/libsodium/crypto_secretbox/try.c +0 -129
  73. data/vendor/libsodium/src/libsodium/crypto_sign/try.c +0 -87
  74. data/vendor/libsodium/src/libsodium/crypto_stream/aes256estream/hongjun/aes-table-be.h +0 -273
  75. data/vendor/libsodium/src/libsodium/crypto_stream/aes256estream/hongjun/aes-table-le.h +0 -274
  76. data/vendor/libsodium/src/libsodium/crypto_stream/aes256estream/hongjun/aes-table.h +0 -62
  77. data/vendor/libsodium/src/libsodium/crypto_stream/aes256estream/hongjun/aes256-ctr.c +0 -239
  78. data/vendor/libsodium/src/libsodium/crypto_stream/aes256estream/hongjun/aes256.h +0 -171
  79. data/vendor/libsodium/src/libsodium/crypto_stream/aes256estream/hongjun/api.h +0 -13
  80. data/vendor/libsodium/src/libsodium/crypto_stream/aes256estream/hongjun/ecrypt-sync.h +0 -27
  81. data/vendor/libsodium/src/libsodium/crypto_stream/aes256estream/stream_aes256estream_api.c +0 -16
  82. data/vendor/libsodium/src/libsodium/crypto_stream/try.c +0 -122
  83. data/vendor/libsodium/src/libsodium/crypto_verify/try.c +0 -76
  84. data/vendor/libsodium/src/libsodium/include/sodium/crypto_stream_aes256estream.h +0 -67
  85. data/vendor/libsodium/src/libsodium/sodium/compat.c +0 -361
  86. data/vendor/libsodium/test/default/stream5.c +0 -29
  87. data/vendor/libsodium/test/default/stream5.exp +0 -1
  88. data/vendor/libsodium/test/default/stream6.c +0 -54
  89. data/vendor/libsodium/test/default/stream6.exp +0 -17
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 82f59ba5b4931d1cb679567d42c1388a331d7b5a
4
- data.tar.gz: 57149f5038ea1a184159427d80dcf4fc4e1abbeb
3
+ metadata.gz: 9c4ff372aaa915d80d470c81a1464d465b6a1d44
4
+ data.tar.gz: 1e74053ea9c43c91bf1865385ca7747b5eefcc6f
5
5
  SHA512:
6
- metadata.gz: f6f31b2fdc4698918c4e6452f217502748b119c0b57e53babdbc0626d38f593c82d2d44ad2932e702cd013233fedd9f3ffc1b556b51b722c66489d0e13bf49a6
7
- data.tar.gz: 68f498072fff068079a2f5b0c1ad3cb409e14782adde88f7fd6ba2ffd3ac4cdc6602736c513192d1232fa3a4609725866c32273d22268708c066b62289819a81
6
+ metadata.gz: 5738d866d6c3a8d3df818e18de77bd21bcf39b1d949c8706dfde9ea1443553ed25f36384af63d3895403daafeb7adeb789c1eedd7ee79f1cee44cb44bcadd5a7
7
+ data.tar.gz: cddb7a365337a3de5a45057b268e3a89b6859c71a03047974958bf405287cfb80483eb2306396fc8c8c8901185fd264f7533475064a181961a63a3e260c4beb2
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ 0.7.0 (2014-08-24)
2
+ ------------------
3
+ * Update to libsodium 0.7.0
4
+
1
5
  0.6.1 (2014-07-19)
2
6
  ------------------
3
7
  * Update to libsodium 0.6.1
@@ -1,5 +1,5 @@
1
1
  module RbNaCl
2
2
  module Libsodium
3
- VERSION = "0.6.1"
3
+ VERSION = "0.7.0"
4
4
  end
5
5
  end
@@ -63,9 +63,6 @@ crypto_sign/ed25519 Peter Schwabe
63
63
 
64
64
  crypto_stream/aes128ctr Peter Schwabe
65
65
 
66
- crypto_stream/aes256estream Hongjun Wu
67
- Frank Denis
68
-
69
66
  crypto_stream/chacha20 Daniel J. Bernstein
70
67
 
71
68
  crypto_stream/salsa20 Daniel J. Bernstein
@@ -1,4 +1,28 @@
1
1
 
2
+ * Version 0.7.0 (1.0 RC1)
3
+ - Allocating memory to store sensitive data can now be done using
4
+ sodium_malloc() and sodium_allocarray(). These functions add guard
5
+ pages around the protected data to make it less likely to be
6
+ accessible in a heartbleed-like scenario. In addition, the protection
7
+ for memory regions allocated that way can be changed using
8
+ sodium_mprotect_noaccess(), sodium_mprotect_readonly() and
9
+ sodium_mprotect_readwrite().
10
+ - ed25519 keys can be converted to curve25519 keys with
11
+ crypto_sign_ed25519_pk_to_curve25519() and
12
+ crypto_sign_ed25519_sk_to_curve25519(). This allows using the same
13
+ keys for signature and encryption.
14
+ - The seed and the public key can be extracted from an ed25519 key
15
+ using crypto_sign_ed25519_sk_to_seed() and crypto_sign_ed25519_sk_to_pk().
16
+ - aes256 was removed. A timing-attack resistant implementation might
17
+ be added later, but not before version 1.0 is tagged.
18
+ - The crypto_pwhash_scryptxsalsa208sha256_* compatibility layer was
19
+ removed. Use crypto_pwhash_scryptsalsa208sha256_*.
20
+ - The compatibility layer for implementation-specific functions was
21
+ removed.
22
+ - Compilation issues with Mingw64 on MSYS (not MSYS2) were fixed.
23
+ - crypto_pwhash_scryptsalsa208sha256_STRPREFIX was added: it contains
24
+ the prefix produced by crypto_pwhash_scryptsalsa208sha256_str()
25
+
2
26
  * Version 0.6.1
3
27
  - Important bug fix: when crypto_sign_open() was given a signed
4
28
  message too short to even contain a signature, it was putting an
@@ -14,11 +14,13 @@ Eric Voskuil (@evoskuil)
14
14
  Gabriel Handford (@gabriel)
15
15
  Jachym Holecek (@freza)
16
16
  Jan de Muijnck-Hughes (@jfdm)
17
+ Jason McCampbell (@jasonmccampbell)
17
18
  Jeroen Habraken (@VeXocide)
18
19
  Joseph Abrahamson (@tel)
19
20
  Kenneth Ballenegger (@kballenegger)
20
21
  Michael Gorlick (@mgorlick)
21
22
  Michael Gregorowicz (@mgregoro)
23
+ Omar Ayub (@electricFeel)
22
24
  Pedro Paixao (@paixaop)
23
25
  Ruben De Visscher (@rubendv)
24
26
  Samuel Neves (@sneves)
@@ -1,6 +1,6 @@
1
1
  @%:@! /bin/sh
2
2
  @%:@ Guess values for system-dependent variables and create Makefiles.
3
- @%:@ Generated by GNU Autoconf 2.69 for libsodium 0.6.1.
3
+ @%:@ Generated by GNU Autoconf 2.69 for libsodium 0.7.0.
4
4
  @%:@
5
5
  @%:@ Report bugs to <https://github.com/jedisct1/libsodium/issues>.
6
6
  @%:@
@@ -590,8 +590,8 @@ MAKEFLAGS=
590
590
  # Identity of this package.
591
591
  PACKAGE_NAME='libsodium'
592
592
  PACKAGE_TARNAME='libsodium'
593
- PACKAGE_VERSION='0.6.1'
594
- PACKAGE_STRING='libsodium 0.6.1'
593
+ PACKAGE_VERSION='0.7.0'
594
+ PACKAGE_STRING='libsodium 0.7.0'
595
595
  PACKAGE_BUGREPORT='https://github.com/jedisct1/libsodium/issues'
596
596
  PACKAGE_URL='https://github.com/jedisct1/libsodium'
597
597
 
@@ -1353,7 +1353,7 @@ if test "$ac_init_help" = "long"; then
1353
1353
  # Omit some internal or obsolete options to make the list less imposing.
1354
1354
  # This message is too long to be a string in the A/UX 3.1 sh.
1355
1355
  cat <<_ACEOF
1356
- \`configure' configures libsodium 0.6.1 to adapt to many kinds of systems.
1356
+ \`configure' configures libsodium 0.7.0 to adapt to many kinds of systems.
1357
1357
 
1358
1358
  Usage: $0 [OPTION]... [VAR=VALUE]...
1359
1359
 
@@ -1423,7 +1423,7 @@ fi
1423
1423
 
1424
1424
  if test -n "$ac_init_help"; then
1425
1425
  case $ac_init_help in
1426
- short | recursive ) echo "Configuration of libsodium 0.6.1:";;
1426
+ short | recursive ) echo "Configuration of libsodium 0.7.0:";;
1427
1427
  esac
1428
1428
  cat <<\_ACEOF
1429
1429
 
@@ -1550,7 +1550,7 @@ fi
1550
1550
  test -n "$ac_init_help" && exit $ac_status
1551
1551
  if $ac_init_version; then
1552
1552
  cat <<\_ACEOF
1553
- libsodium configure 0.6.1
1553
+ libsodium configure 0.7.0
1554
1554
  generated by GNU Autoconf 2.69
1555
1555
 
1556
1556
  Copyright (C) 2012 Free Software Foundation, Inc.
@@ -1919,7 +1919,7 @@ cat >config.log <<_ACEOF
1919
1919
  This file contains any messages produced by compilers while
1920
1920
  running configure, to aid debugging if configure makes a mistake.
1921
1921
 
1922
- It was created by libsodium $as_me 0.6.1, which was
1922
+ It was created by libsodium $as_me 0.7.0, which was
1923
1923
  generated by GNU Autoconf 2.69. Invocation command line was
1924
1924
 
1925
1925
  $ $0 $@
@@ -2855,7 +2855,7 @@ fi
2855
2855
 
2856
2856
  # Define the identity of the package.
2857
2857
  PACKAGE='libsodium'
2858
- VERSION='0.6.1'
2858
+ VERSION='0.7.0'
2859
2859
 
2860
2860
 
2861
2861
  cat >>confdefs.h <<_ACEOF
@@ -3149,10 +3149,10 @@ fi
3149
3149
  ISODATE=`date +%Y-%m-%d`
3150
3150
 
3151
3151
 
3152
- SODIUM_LIBRARY_VERSION_MAJOR=6
3153
- SODIUM_LIBRARY_VERSION_MINOR=1
3154
- DLL_VERSION=5
3155
- SODIUM_LIBRARY_VERSION=12:0:2
3152
+ SODIUM_LIBRARY_VERSION_MAJOR=7
3153
+ SODIUM_LIBRARY_VERSION_MINOR=0
3154
+ DLL_VERSION=6
3155
+ SODIUM_LIBRARY_VERSION=13:0:0
3156
3156
  # | | |
3157
3157
  # +------+ | +---+
3158
3158
  # | | |
@@ -3220,13 +3220,6 @@ $as_echo "$as_me: WARNING: compiling to javascript - asm implementations disable
3220
3220
 
3221
3221
  fi
3222
3222
 
3223
- case $host in @%:@(
3224
- x86_64-*-mingw* | x86_64-*-cygwin*) :
3225
- enable_asm="no" ;; @%:@(
3226
- *) :
3227
- ;;
3228
- esac
3229
-
3230
3223
  @%:@ Check whether --enable-pie was given.
3231
3224
  if test "${enable_pie+set}" = set; then :
3232
3225
  enableval=$enable_pie; enable_pie=$enableval
@@ -3236,7 +3229,7 @@ fi
3236
3229
 
3237
3230
 
3238
3231
  case $host_os in @%:@(
3239
- mingw*) :
3232
+ mingw*|cygwin*|msys) :
3240
3233
  enable_pie="no" ;; @%:@(
3241
3234
  *) :
3242
3235
  ;;
@@ -5160,7 +5153,12 @@ else
5160
5153
  fi
5161
5154
 
5162
5155
 
5163
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIC" >&5
5156
+ case $host_os in @%:@(
5157
+ cygwin*|mingw*|msys|pw32*|cegcc*) :
5158
+ ;; @%:@(
5159
+ *) :
5160
+
5161
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIC" >&5
5164
5162
  $as_echo_n "checking whether C compiler accepts -fPIC... " >&6; }
5165
5163
  if ${ax_cv_check_cflags___fPIC+:} false; then :
5166
5164
  $as_echo_n "(cached) " >&6
@@ -5191,7 +5189,7 @@ fi
5191
5189
  $as_echo "$ax_cv_check_cflags___fPIC" >&6; }
5192
5190
  if test x"$ax_cv_check_cflags___fPIC" = xyes; then :
5193
5191
 
5194
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fPIC" >&5
5192
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fPIC" >&5
5195
5193
  $as_echo_n "checking whether the linker accepts -fPIC... " >&6; }
5196
5194
  if ${ax_cv_check_ldflags___fPIC+:} false; then :
5197
5195
  $as_echo_n "(cached) " >&6
@@ -5223,16 +5221,18 @@ fi
5223
5221
  $as_echo "$ax_cv_check_ldflags___fPIC" >&6; }
5224
5222
  if test x"$ax_cv_check_ldflags___fPIC" = xyes; then :
5225
5223
  CFLAGS="$CFLAGS -fPIC"
5226
-
5224
+
5227
5225
  else
5228
5226
  :
5229
5227
  fi
5230
5228
 
5231
-
5229
+
5232
5230
  else
5233
5231
  :
5234
5232
  fi
5235
5233
 
5234
+ ;;
5235
+ esac
5236
5236
 
5237
5237
  if test "$enable_pie" != "no"; then :
5238
5238
 
@@ -5470,7 +5470,7 @@ fi
5470
5470
 
5471
5471
 
5472
5472
  case $host_os in @%:@(
5473
- cygwin* | mingw* | pw32* | cegcc*) :
5473
+ cygwin*|mingw*|msys|pw32*|cegcc*) :
5474
5474
 
5475
5475
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--dynamicbase" >&5
5476
5476
  $as_echo_n "checking whether the linker accepts -Wl,--dynamicbase... " >&6; }
@@ -5553,7 +5553,7 @@ if test "x$enable_ssp" != "xno"; then :
5553
5553
 
5554
5554
 
5555
5555
  case $host_os in @%:@(
5556
- cygwin* | mingw* | pw32* | cegcc*) :
5556
+ cygwin*|mingw*|msys|pw32*|cegcc*) :
5557
5557
  ;; @%:@(
5558
5558
  dragonfly*) :
5559
5559
 
@@ -14415,8 +14415,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14415
14415
  HAVE_AMD64_ASM_V=0
14416
14416
  if test "$enable_asm" != "no"; then :
14417
14417
 
14418
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can assemble basic amd64 code" >&5
14419
- $as_echo_n "checking whether we can assemble basic amd64 code... " >&6; }
14418
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we should use x86_64 asm code" >&5
14419
+ $as_echo_n "checking whether we should use x86_64 asm code... " >&6; }
14420
14420
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14421
14421
  /* end confdefs.h. */
14422
14422
 
@@ -14426,9 +14426,12 @@ main ()
14426
14426
  {
14427
14427
 
14428
14428
  #if defined(__amd64) || defined(__amd64__) || defined(__x86_64__)
14429
+ # if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__MINGW64__) || defined(_WIN32) || defined(_WIN64)
14430
+ # error Windows x86_64 calling conventions are not supported yet
14431
+ # endif
14429
14432
  /* neat */
14430
14433
  #else
14431
- # error !amd64
14434
+ # error !x86_64
14432
14435
  #endif
14433
14436
  __asm__("pxor %xmm12,%xmm6");
14434
14437
 
@@ -14601,109 +14604,6 @@ $as_echo "@%:@define CPU_ALIGNED_ACCESS_REQUIRED 1" >>confdefs.h
14601
14604
  esac
14602
14605
 
14603
14606
 
14604
- ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
14605
- if test "x$ac_cv_func_clock_gettime" = xyes; then :
14606
-
14607
- else
14608
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
14609
- $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
14610
- if ${ac_cv_lib_rt_clock_gettime+:} false; then :
14611
- $as_echo_n "(cached) " >&6
14612
- else
14613
- ac_check_lib_save_LIBS=$LIBS
14614
- LIBS="-lrt $LIBS"
14615
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14616
- /* end confdefs.h. */
14617
-
14618
- /* Override any GCC internal prototype to avoid an error.
14619
- Use char because int might match the return type of a GCC
14620
- builtin and then its argument prototype would still apply. */
14621
- #ifdef __cplusplus
14622
- extern "C"
14623
- #endif
14624
- char clock_gettime ();
14625
- int
14626
- main ()
14627
- {
14628
- return clock_gettime ();
14629
- ;
14630
- return 0;
14631
- }
14632
- _ACEOF
14633
- if ac_fn_c_try_link "$LINENO"; then :
14634
- ac_cv_lib_rt_clock_gettime=yes
14635
- else
14636
- ac_cv_lib_rt_clock_gettime=no
14637
- fi
14638
- rm -f core conftest.err conftest.$ac_objext \
14639
- conftest$ac_exeext conftest.$ac_ext
14640
- LIBS=$ac_check_lib_save_LIBS
14641
- fi
14642
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
14643
- $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
14644
- if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
14645
- cat >>confdefs.h <<_ACEOF
14646
- @%:@define HAVE_LIBRT 1
14647
- _ACEOF
14648
-
14649
- LIBS="-lrt $LIBS"
14650
-
14651
- fi
14652
-
14653
- fi
14654
-
14655
- ac_fn_c_check_func "$LINENO" "fegetenv" "ac_cv_func_fegetenv"
14656
- if test "x$ac_cv_func_fegetenv" = xyes; then :
14657
-
14658
- else
14659
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fegetenv in -lm" >&5
14660
- $as_echo_n "checking for fegetenv in -lm... " >&6; }
14661
- if ${ac_cv_lib_m_fegetenv+:} false; then :
14662
- $as_echo_n "(cached) " >&6
14663
- else
14664
- ac_check_lib_save_LIBS=$LIBS
14665
- LIBS="-lm $LIBS"
14666
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14667
- /* end confdefs.h. */
14668
-
14669
- /* Override any GCC internal prototype to avoid an error.
14670
- Use char because int might match the return type of a GCC
14671
- builtin and then its argument prototype would still apply. */
14672
- #ifdef __cplusplus
14673
- extern "C"
14674
- #endif
14675
- char fegetenv ();
14676
- int
14677
- main ()
14678
- {
14679
- return fegetenv ();
14680
- ;
14681
- return 0;
14682
- }
14683
- _ACEOF
14684
- if ac_fn_c_try_link "$LINENO"; then :
14685
- ac_cv_lib_m_fegetenv=yes
14686
- else
14687
- ac_cv_lib_m_fegetenv=no
14688
- fi
14689
- rm -f core conftest.err conftest.$ac_objext \
14690
- conftest$ac_exeext conftest.$ac_ext
14691
- LIBS=$ac_check_lib_save_LIBS
14692
- fi
14693
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fegetenv" >&5
14694
- $as_echo "$ac_cv_lib_m_fegetenv" >&6; }
14695
- if test "x$ac_cv_lib_m_fegetenv" = xyes; then :
14696
- cat >>confdefs.h <<_ACEOF
14697
- @%:@define HAVE_LIBM 1
14698
- _ACEOF
14699
-
14700
- LIBS="-lm $LIBS"
14701
-
14702
- fi
14703
-
14704
- fi
14705
-
14706
-
14707
14607
  if test "x$EMSCRIPTEN" = "x"; then :
14708
14608
 
14709
14609
  for ac_func in arc4random arc4random_buf
@@ -14720,19 +14620,7 @@ done
14720
14620
 
14721
14621
 
14722
14622
  fi
14723
- for ac_func in mlock VirtualLock
14724
- do :
14725
- as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14726
- ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14727
- if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14728
- cat >>confdefs.h <<_ACEOF
14729
- @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14730
- _ACEOF
14731
-
14732
- fi
14733
- done
14734
-
14735
- for ac_func in SecureZeroMemory explicit_bzero posix_memalign
14623
+ for ac_func in mlock mprotect explicit_bzero posix_memalign
14736
14624
  do :
14737
14625
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14738
14626
  ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
@@ -15692,7 +15580,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15692
15580
  # report actual input values of CONFIG_FILES etc. instead of their
15693
15581
  # values after options handling.
15694
15582
  ac_log="
15695
- This file was extended by libsodium $as_me 0.6.1, which was
15583
+ This file was extended by libsodium $as_me 0.7.0, which was
15696
15584
  generated by GNU Autoconf 2.69. Invocation command line was
15697
15585
 
15698
15586
  CONFIG_FILES = $CONFIG_FILES
@@ -15750,7 +15638,7 @@ _ACEOF
15750
15638
  cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15751
15639
  ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15752
15640
  ac_cs_version="\\
15753
- libsodium config.status 0.6.1
15641
+ libsodium config.status 0.7.0
15754
15642
  configured by $0, generated by GNU Autoconf 2.69,
15755
15643
  with options \\"\$ac_cs_config\\"
15756
15644
 
@@ -1,6 +1,6 @@
1
1
  @%:@! /bin/sh
2
2
  @%:@ Guess values for system-dependent variables and create Makefiles.
3
- @%:@ Generated by GNU Autoconf 2.69 for libsodium 0.6.1.
3
+ @%:@ Generated by GNU Autoconf 2.69 for libsodium 0.7.0.
4
4
  @%:@
5
5
  @%:@ Report bugs to <https://github.com/jedisct1/libsodium/issues>.
6
6
  @%:@
@@ -590,8 +590,8 @@ MAKEFLAGS=
590
590
  # Identity of this package.
591
591
  PACKAGE_NAME='libsodium'
592
592
  PACKAGE_TARNAME='libsodium'
593
- PACKAGE_VERSION='0.6.1'
594
- PACKAGE_STRING='libsodium 0.6.1'
593
+ PACKAGE_VERSION='0.7.0'
594
+ PACKAGE_STRING='libsodium 0.7.0'
595
595
  PACKAGE_BUGREPORT='https://github.com/jedisct1/libsodium/issues'
596
596
  PACKAGE_URL='https://github.com/jedisct1/libsodium'
597
597
 
@@ -1353,7 +1353,7 @@ if test "$ac_init_help" = "long"; then
1353
1353
  # Omit some internal or obsolete options to make the list less imposing.
1354
1354
  # This message is too long to be a string in the A/UX 3.1 sh.
1355
1355
  cat <<_ACEOF
1356
- \`configure' configures libsodium 0.6.1 to adapt to many kinds of systems.
1356
+ \`configure' configures libsodium 0.7.0 to adapt to many kinds of systems.
1357
1357
 
1358
1358
  Usage: $0 [OPTION]... [VAR=VALUE]...
1359
1359
 
@@ -1423,7 +1423,7 @@ fi
1423
1423
 
1424
1424
  if test -n "$ac_init_help"; then
1425
1425
  case $ac_init_help in
1426
- short | recursive ) echo "Configuration of libsodium 0.6.1:";;
1426
+ short | recursive ) echo "Configuration of libsodium 0.7.0:";;
1427
1427
  esac
1428
1428
  cat <<\_ACEOF
1429
1429
 
@@ -1550,7 +1550,7 @@ fi
1550
1550
  test -n "$ac_init_help" && exit $ac_status
1551
1551
  if $ac_init_version; then
1552
1552
  cat <<\_ACEOF
1553
- libsodium configure 0.6.1
1553
+ libsodium configure 0.7.0
1554
1554
  generated by GNU Autoconf 2.69
1555
1555
 
1556
1556
  Copyright (C) 2012 Free Software Foundation, Inc.
@@ -1919,7 +1919,7 @@ cat >config.log <<_ACEOF
1919
1919
  This file contains any messages produced by compilers while
1920
1920
  running configure, to aid debugging if configure makes a mistake.
1921
1921
 
1922
- It was created by libsodium $as_me 0.6.1, which was
1922
+ It was created by libsodium $as_me 0.7.0, which was
1923
1923
  generated by GNU Autoconf 2.69. Invocation command line was
1924
1924
 
1925
1925
  $ $0 $@
@@ -2855,7 +2855,7 @@ fi
2855
2855
 
2856
2856
  # Define the identity of the package.
2857
2857
  PACKAGE='libsodium'
2858
- VERSION='0.6.1'
2858
+ VERSION='0.7.0'
2859
2859
 
2860
2860
 
2861
2861
  cat >>confdefs.h <<_ACEOF
@@ -3149,10 +3149,10 @@ fi
3149
3149
  ISODATE=`date +%Y-%m-%d`
3150
3150
 
3151
3151
 
3152
- SODIUM_LIBRARY_VERSION_MAJOR=6
3153
- SODIUM_LIBRARY_VERSION_MINOR=1
3154
- DLL_VERSION=5
3155
- SODIUM_LIBRARY_VERSION=12:0:2
3152
+ SODIUM_LIBRARY_VERSION_MAJOR=7
3153
+ SODIUM_LIBRARY_VERSION_MINOR=0
3154
+ DLL_VERSION=6
3155
+ SODIUM_LIBRARY_VERSION=13:0:0
3156
3156
  # | | |
3157
3157
  # +------+ | +---+
3158
3158
  # | | |
@@ -3220,13 +3220,6 @@ $as_echo "$as_me: WARNING: compiling to javascript - asm implementations disable
3220
3220
 
3221
3221
  fi
3222
3222
 
3223
- case $host in @%:@(
3224
- x86_64-*-mingw* | x86_64-*-cygwin*) :
3225
- enable_asm="no" ;; @%:@(
3226
- *) :
3227
- ;;
3228
- esac
3229
-
3230
3223
  @%:@ Check whether --enable-pie was given.
3231
3224
  if test "${enable_pie+set}" = set; then :
3232
3225
  enableval=$enable_pie; enable_pie=$enableval
@@ -3236,7 +3229,7 @@ fi
3236
3229
 
3237
3230
 
3238
3231
  case $host_os in @%:@(
3239
- mingw*) :
3232
+ mingw*|cygwin*|msys) :
3240
3233
  enable_pie="no" ;; @%:@(
3241
3234
  *) :
3242
3235
  ;;
@@ -5160,7 +5153,12 @@ else
5160
5153
  fi
5161
5154
 
5162
5155
 
5163
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIC" >&5
5156
+ case $host_os in @%:@(
5157
+ cygwin*|mingw*|msys|pw32*|cegcc*) :
5158
+ ;; @%:@(
5159
+ *) :
5160
+
5161
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIC" >&5
5164
5162
  $as_echo_n "checking whether C compiler accepts -fPIC... " >&6; }
5165
5163
  if ${ax_cv_check_cflags___fPIC+:} false; then :
5166
5164
  $as_echo_n "(cached) " >&6
@@ -5191,7 +5189,7 @@ fi
5191
5189
  $as_echo "$ax_cv_check_cflags___fPIC" >&6; }
5192
5190
  if test x"$ax_cv_check_cflags___fPIC" = xyes; then :
5193
5191
 
5194
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fPIC" >&5
5192
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fPIC" >&5
5195
5193
  $as_echo_n "checking whether the linker accepts -fPIC... " >&6; }
5196
5194
  if ${ax_cv_check_ldflags___fPIC+:} false; then :
5197
5195
  $as_echo_n "(cached) " >&6
@@ -5223,16 +5221,18 @@ fi
5223
5221
  $as_echo "$ax_cv_check_ldflags___fPIC" >&6; }
5224
5222
  if test x"$ax_cv_check_ldflags___fPIC" = xyes; then :
5225
5223
  CFLAGS="$CFLAGS -fPIC"
5226
-
5224
+
5227
5225
  else
5228
5226
  :
5229
5227
  fi
5230
5228
 
5231
-
5229
+
5232
5230
  else
5233
5231
  :
5234
5232
  fi
5235
5233
 
5234
+ ;;
5235
+ esac
5236
5236
 
5237
5237
  if test "$enable_pie" != "no"; then :
5238
5238
 
@@ -5470,7 +5470,7 @@ fi
5470
5470
 
5471
5471
 
5472
5472
  case $host_os in @%:@(
5473
- cygwin* | mingw* | pw32* | cegcc*) :
5473
+ cygwin*|mingw*|msys|pw32*|cegcc*) :
5474
5474
 
5475
5475
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--dynamicbase" >&5
5476
5476
  $as_echo_n "checking whether the linker accepts -Wl,--dynamicbase... " >&6; }
@@ -5553,7 +5553,7 @@ if test "x$enable_ssp" != "xno"; then :
5553
5553
 
5554
5554
 
5555
5555
  case $host_os in @%:@(
5556
- cygwin* | mingw* | pw32* | cegcc*) :
5556
+ cygwin*|mingw*|msys|pw32*|cegcc*) :
5557
5557
  ;; @%:@(
5558
5558
  dragonfly*) :
5559
5559
 
@@ -14415,8 +14415,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14415
14415
  HAVE_AMD64_ASM_V=0
14416
14416
  if test "$enable_asm" != "no"; then :
14417
14417
 
14418
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can assemble basic amd64 code" >&5
14419
- $as_echo_n "checking whether we can assemble basic amd64 code... " >&6; }
14418
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we should use x86_64 asm code" >&5
14419
+ $as_echo_n "checking whether we should use x86_64 asm code... " >&6; }
14420
14420
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14421
14421
  /* end confdefs.h. */
14422
14422
 
@@ -14426,9 +14426,12 @@ main ()
14426
14426
  {
14427
14427
 
14428
14428
  #if defined(__amd64) || defined(__amd64__) || defined(__x86_64__)
14429
+ # if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__MINGW64__) || defined(_WIN32) || defined(_WIN64)
14430
+ # error Windows x86_64 calling conventions are not supported yet
14431
+ # endif
14429
14432
  /* neat */
14430
14433
  #else
14431
- # error !amd64
14434
+ # error !x86_64
14432
14435
  #endif
14433
14436
  __asm__("pxor %xmm12,%xmm6");
14434
14437
 
@@ -14601,109 +14604,6 @@ $as_echo "@%:@define CPU_ALIGNED_ACCESS_REQUIRED 1" >>confdefs.h
14601
14604
  esac
14602
14605
 
14603
14606
 
14604
- ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
14605
- if test "x$ac_cv_func_clock_gettime" = xyes; then :
14606
-
14607
- else
14608
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
14609
- $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
14610
- if ${ac_cv_lib_rt_clock_gettime+:} false; then :
14611
- $as_echo_n "(cached) " >&6
14612
- else
14613
- ac_check_lib_save_LIBS=$LIBS
14614
- LIBS="-lrt $LIBS"
14615
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14616
- /* end confdefs.h. */
14617
-
14618
- /* Override any GCC internal prototype to avoid an error.
14619
- Use char because int might match the return type of a GCC
14620
- builtin and then its argument prototype would still apply. */
14621
- #ifdef __cplusplus
14622
- extern "C"
14623
- #endif
14624
- char clock_gettime ();
14625
- int
14626
- main ()
14627
- {
14628
- return clock_gettime ();
14629
- ;
14630
- return 0;
14631
- }
14632
- _ACEOF
14633
- if ac_fn_c_try_link "$LINENO"; then :
14634
- ac_cv_lib_rt_clock_gettime=yes
14635
- else
14636
- ac_cv_lib_rt_clock_gettime=no
14637
- fi
14638
- rm -f core conftest.err conftest.$ac_objext \
14639
- conftest$ac_exeext conftest.$ac_ext
14640
- LIBS=$ac_check_lib_save_LIBS
14641
- fi
14642
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
14643
- $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
14644
- if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
14645
- cat >>confdefs.h <<_ACEOF
14646
- @%:@define HAVE_LIBRT 1
14647
- _ACEOF
14648
-
14649
- LIBS="-lrt $LIBS"
14650
-
14651
- fi
14652
-
14653
- fi
14654
-
14655
- ac_fn_c_check_func "$LINENO" "fegetenv" "ac_cv_func_fegetenv"
14656
- if test "x$ac_cv_func_fegetenv" = xyes; then :
14657
-
14658
- else
14659
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fegetenv in -lm" >&5
14660
- $as_echo_n "checking for fegetenv in -lm... " >&6; }
14661
- if ${ac_cv_lib_m_fegetenv+:} false; then :
14662
- $as_echo_n "(cached) " >&6
14663
- else
14664
- ac_check_lib_save_LIBS=$LIBS
14665
- LIBS="-lm $LIBS"
14666
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14667
- /* end confdefs.h. */
14668
-
14669
- /* Override any GCC internal prototype to avoid an error.
14670
- Use char because int might match the return type of a GCC
14671
- builtin and then its argument prototype would still apply. */
14672
- #ifdef __cplusplus
14673
- extern "C"
14674
- #endif
14675
- char fegetenv ();
14676
- int
14677
- main ()
14678
- {
14679
- return fegetenv ();
14680
- ;
14681
- return 0;
14682
- }
14683
- _ACEOF
14684
- if ac_fn_c_try_link "$LINENO"; then :
14685
- ac_cv_lib_m_fegetenv=yes
14686
- else
14687
- ac_cv_lib_m_fegetenv=no
14688
- fi
14689
- rm -f core conftest.err conftest.$ac_objext \
14690
- conftest$ac_exeext conftest.$ac_ext
14691
- LIBS=$ac_check_lib_save_LIBS
14692
- fi
14693
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fegetenv" >&5
14694
- $as_echo "$ac_cv_lib_m_fegetenv" >&6; }
14695
- if test "x$ac_cv_lib_m_fegetenv" = xyes; then :
14696
- cat >>confdefs.h <<_ACEOF
14697
- @%:@define HAVE_LIBM 1
14698
- _ACEOF
14699
-
14700
- LIBS="-lm $LIBS"
14701
-
14702
- fi
14703
-
14704
- fi
14705
-
14706
-
14707
14607
  if test "x$EMSCRIPTEN" = "x"; then :
14708
14608
 
14709
14609
  for ac_func in arc4random arc4random_buf
@@ -14720,19 +14620,7 @@ done
14720
14620
 
14721
14621
 
14722
14622
  fi
14723
- for ac_func in mlock VirtualLock
14724
- do :
14725
- as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14726
- ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14727
- if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14728
- cat >>confdefs.h <<_ACEOF
14729
- @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14730
- _ACEOF
14731
-
14732
- fi
14733
- done
14734
-
14735
- for ac_func in SecureZeroMemory explicit_bzero posix_memalign
14623
+ for ac_func in mlock mprotect explicit_bzero posix_memalign
14736
14624
  do :
14737
14625
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14738
14626
  ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
@@ -15692,7 +15580,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15692
15580
  # report actual input values of CONFIG_FILES etc. instead of their
15693
15581
  # values after options handling.
15694
15582
  ac_log="
15695
- This file was extended by libsodium $as_me 0.6.1, which was
15583
+ This file was extended by libsodium $as_me 0.7.0, which was
15696
15584
  generated by GNU Autoconf 2.69. Invocation command line was
15697
15585
 
15698
15586
  CONFIG_FILES = $CONFIG_FILES
@@ -15750,7 +15638,7 @@ _ACEOF
15750
15638
  cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15751
15639
  ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15752
15640
  ac_cs_version="\\
15753
- libsodium config.status 0.6.1
15641
+ libsodium config.status 0.7.0
15754
15642
  configured by $0, generated by GNU Autoconf 2.69,
15755
15643
  with options \\"\$ac_cs_config\\"
15756
15644