Skip to content

Commit

Permalink
update libsodium to 1.0.11 (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
reaperhulk authored and warner committed Jan 6, 2017
1 parent 4f456df commit 5fb42e4
Show file tree
Hide file tree
Showing 205 changed files with 14,194 additions and 6,944 deletions.
14 changes: 14 additions & 0 deletions src/libsodium/AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
Designers
=========

argon2 Alex Biryukov
Daniel Dinu
Dmitry Khovratovich

blake2 Jean-Philippe Aumasson
Christian Winnerlein
Samuel Neves
Expand Down Expand Up @@ -38,8 +42,12 @@ crypto_aead/aes256gcm/aesni Romain Dolbeau

crypto_aead/chacha20poly1305 Frank Denis

crypto_core/curve25519 Daniel J. Bernstein

crypto_box/curve25519xsalsa20poly1305 Daniel J. Bernstein

crypto_core/hchacha20 Frank Denis

crypto_core/hsalsa20 Daniel J. Bernstein
crypto_core/salsa20
crypto_core/salsa2012
Expand Down Expand Up @@ -90,5 +98,11 @@ crypto_onetimeauth/poly1305/donna Andrew "floodyberry" Moon

crypto_onetimeauth/poly1305/sse2 Andrew "floodyberry" Moon

crypto_pwhash/argon2 Samuel Neves
Dmitry Khovratovich
Jean-Philippe Aumasson
Daniel Dinu
Thomas Pornin

crypto_pwhash/scryptsalsa208sha256 Colin Percival
Alexander Peslyak
54 changes: 54 additions & 0 deletions src/libsodium/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,4 +1,58 @@

* Version 1.0.11
- sodium_init() is now thread-safe, and can be safely called multiple
times.
- Android binaries now properly support 64-bit Android, targeting
platform 24, but without breaking compatibility with platforms 16 and
21.
- Better support for old gcc versions.
- On FreeBSD, core dumps are disabled on regions allocated with
sodium allocation functions.
- AVX2 detection was fixed, resulting in faster Blake2b hashing on
platforms where it was not properly detected.
- The Sandy2x Curve25519 implementation was not as fast as expected
on some platforms. This has been fixed.
- The NativeClient target was improved. Most notably, it now supports
optimized implementations, and uses pepper_49 by default.
- The library can be compiled with recent Emscripten versions.
Changes have been made to produce smaller code, and the default heap
size was reduced in the standard version.
- The code can now be compiled on SLES11 service pack 4.
- Decryption functions can now accept a NULL pointer for the output.
This checks the MAC without writing the decrypted message.
- crypto_generichash_final() now returns -1 if called twice.
- Support for Visual Studio 2008 was improved.

* Version 1.0.10
- This release only fixes a compilation issue reported with some older
gcc versions. There are no functional changes over the previous release.

* Version 1.0.9
- The Javascript target now includes a `--sumo` option to include all
the symbols of the original C library.
- A detached API was added to the ChaCha20-Poly1305 and AES256-GCM
implementations.
- The Argon2i password hashing function was added, and is accessible
directly and through a new, high-level `crypto_pwhash` API. The scrypt
function remains available as well.
- A speed-record AVX2 implementation of BLAKE2b was added (thanks to
Samuel Neves).
- The library can now be compiled using C++Builder (thanks to @jcolli44)
- Countermeasures for Ed25519 signatures malleability have been added
to match the irtf-cfrg-eddsa draft (note that malleability is irrelevant to
the standard definition of signature security). Signatures with a small-order
`R` point are now also rejected.
- Some implementations are now slightly faster when using the Clang
compiler.
- The HChaCha20 core function was implemented (`crypto_core_hchacha20()`).
- No-op stubs were added for all AES256-GCM public functions even when
compiled on non-Intel platforms.
- `crypt_generichash_blake2b_statebytes()` was added.
- New macros were added for the IETF variant of the ChaCha20-Poly1305
construction.
- The library can now be compiled on Minix.
- HEASLR is now enabled on MinGW builds.

* Version 1.0.8
- Handle the case where the CPU supports AVX, but we are running
on an hypervisor with AVX disabled/not supported.
Expand Down
4 changes: 3 additions & 1 deletion src/libsodium/LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/*
* Copyright (c) 2013-2015
* ISC License
*
* Copyright (c) 2013-2016
* Frank Denis <j at pureftpd dot org>
*
* Permission to use, copy, modify, and/or distribute this software for any
Expand Down
1 change: 1 addition & 0 deletions src/libsodium/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ SUBDIRS = \

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = @PACKAGE_NAME@.pc

DISTCLEANFILES = $(pkgconfig_DATA)

16 changes: 15 additions & 1 deletion src/libsodium/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/ax_check_compile_flag.m4 \
$(top_srcdir)/m4/ax_check_define.m4 \
$(top_srcdir)/m4/ax_check_link_flag.m4 \
$(top_srcdir)/m4/ax_pthread.m4 \
$(top_srcdir)/m4/ax_valgrind_check.m4 \
$(top_srcdir)/m4/ld-output-def.m4 $(top_srcdir)/m4/libtool.m4 \
$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
Expand Down Expand Up @@ -201,7 +203,7 @@ am__DIST_COMMON = $(srcdir)/Makefile.in \
$(top_srcdir)/build-aux/ltmain.sh \
$(top_srcdir)/build-aux/missing \
$(top_srcdir)/src/libsodium/include/sodium/version.h.in \
AUTHORS ChangeLog README THANKS build-aux/compile \
AUTHORS ChangeLog THANKS build-aux/compile \
build-aux/config.guess build-aux/config.sub \
build-aux/install-sh build-aux/ltmain.sh build-aux/missing \
compile config.guess config.sub depcomp install-sh ltmain.sh \
Expand Down Expand Up @@ -264,6 +266,8 @@ CCASFLAGS = @CCASFLAGS@
CCDEPMODE = @CCDEPMODE@
CFLAGS = @CFLAGS@
CFLAGS_AESNI = @CFLAGS_AESNI@
CFLAGS_AVX = @CFLAGS_AVX@
CFLAGS_AVX2 = @CFLAGS_AVX2@
CFLAGS_MMX = @CFLAGS_MMX@
CFLAGS_PCLMUL = @CFLAGS_PCLMUL@
CFLAGS_SSE2 = @CFLAGS_SSE2@
Expand Down Expand Up @@ -326,6 +330,9 @@ PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
PTHREAD_CC = @PTHREAD_CC@
PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
PTHREAD_LIBS = @PTHREAD_LIBS@
RANLIB = @RANLIB@
SAFECODE_HOME = @SAFECODE_HOME@
SED = @SED@
Expand All @@ -336,6 +343,12 @@ SODIUM_LIBRARY_VERSION_MAJOR = @SODIUM_LIBRARY_VERSION_MAJOR@
SODIUM_LIBRARY_VERSION_MINOR = @SODIUM_LIBRARY_VERSION_MINOR@
STRIP = @STRIP@
TEST_LDFLAGS = @TEST_LDFLAGS@
VALGRIND = @VALGRIND@
VALGRIND_ENABLED = @VALGRIND_ENABLED@
VALGRIND_HAVE_TOOL_drd = @VALGRIND_HAVE_TOOL_drd@
VALGRIND_HAVE_TOOL_exp_sgcheck = @VALGRIND_HAVE_TOOL_exp_sgcheck@
VALGRIND_HAVE_TOOL_helgrind = @VALGRIND_HAVE_TOOL_helgrind@
VALGRIND_HAVE_TOOL_memcheck = @VALGRIND_HAVE_TOOL_memcheck@
VERSION = @VERSION@
abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
Expand All @@ -349,6 +362,7 @@ am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
am__tar = @am__tar@
am__untar = @am__untar@
ax_pthread_config = @ax_pthread_config@
bindir = @bindir@
build = @build@
build_alias = @build_alias@
Expand Down
1 change: 0 additions & 1 deletion src/libsodium/README

This file was deleted.

7 changes: 7 additions & 0 deletions src/libsodium/README.markdown
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[![Build Status](https://travis-ci.org/jedisct1/libsodium.svg?branch=master)](https://travis-ci.org/jedisct1/libsodium?branch=master)
[![Windows build status](https://ci.appveyor.com/api/projects/status/fu8s2elx25il98hj?svg=true)](https://ci.appveyor.com/project/jedisct1/libsodium)
[![Coverity Scan Build Status](https://scan.coverity.com/projects/2397/badge.svg)](https://scan.coverity.com/projects/2397)

![libsodium](https://raw.github.com/jedisct1/libsodium/master/logo.png)
Expand Down Expand Up @@ -27,6 +28,12 @@ online, requires Javascript.
* [offline documentation](https://www.gitbook.com/book/jedisct1/libsodium/details)
in PDF, MOBI and ePUB formats.

## Integrity Checking

The integrity checking instructions (including the signing key for libsodium)
are available in the [installation](https://download.libsodium.org/doc/installation/index.html#integrity-checking)
section of the documentation.

## Community

A mailing-list is available to discuss libsodium.
Expand Down
2 changes: 2 additions & 0 deletions src/libsodium/aclocal.m4
Original file line number Diff line number Diff line change
Expand Up @@ -1209,6 +1209,8 @@ AC_SUBST([am__untar])
m4_include([m4/ax_check_compile_flag.m4])
m4_include([m4/ax_check_define.m4])
m4_include([m4/ax_check_link_flag.m4])
m4_include([m4/ax_pthread.m4])
m4_include([m4/ax_valgrind_check.m4])
m4_include([m4/ld-output-def.m4])
m4_include([m4/libtool.m4])
m4_include([m4/ltoptions.m4])
Expand Down

0 comments on commit 5fb42e4

Please sign in to comment.