Blame SOURCES/libsodium-1.0.18/ChangeLog

ca16be
ca16be
* Version 1.0.18
ca16be
 - The Enterprise versions of Visual Studio are now supported.
ca16be
 - Visual Studio 2019 is now supported.
ca16be
 - 32-bit binaries for Visual Studio 2010 are now provided.
ca16be
 - A test that didn't work properly on Linux systems with overcommit
ca16be
memory turned on has been removed. This fixes Ansible builds.
ca16be
 - Emscripten: `print` and `printErr` functions are overridden to send
ca16be
errors to the console, if there is one.
ca16be
 - Emscripten: `UTF8ToString()` is now exported since `Pointer_stringify()`
ca16be
has been deprecated.
ca16be
 - Libsodium version detection has been fixed in the CMake recipe.
ca16be
 - Generic hashing got a 10% speedup on AVX2.
ca16be
 - New target: WebAssembly/WASI (compile with `dist-builds/wasm32-wasi.sh`).
ca16be
 - New functions to map a hash to an edwards25519 point or get a random point:
ca16be
`core_ed25519_from_hash()` and `core_ed25519_random()`.
ca16be
 - `crypto_core_ed25519_scalar_mul()` has been implemented for `scalar*scalar`
ca16be
`(mod L)` multiplication.
ca16be
 - Support for the Ristretto group has been implemented, for compatibility
ca16be
with wasm-crypto.
ca16be
 - Improvements have been made to the test suite.
ca16be
 - Portability improvements has been made.
ca16be
 - `getentropy()` is now used on systems providing this system call.
ca16be
 - `randombytes_salsa20 has been renamed to `randombytes_internal`.
ca16be
 - Support for (p)nacl has been removed.
ca16be
 - Most `((nonnull))` attributes have been relaxed to allow 0-length inputs
ca16be
to be `NULL`.
ca16be
 - The `-ftree-vectorize` and `-ftree-slp-vectorize` compiler switches are
ca16be
now used, if available, for optimized builds.
ca16be
ca16be
* Version 1.0.17
ca16be
 - Bug fix: `sodium_pad()` didn't properly support block sizes >= 256 bytes.
ca16be
 - JS/WebAssembly: some old iOS versions can't instantiate the WebAssembly
ca16be
module; fall back to Javascript on these.
ca16be
 - JS/WebAssembly: compatibility with newer Emscripten versions.
ca16be
 - Bug fix: `crypto_pwhash_scryptsalsa208sha256_str_verify()` and
ca16be
`crypto_pwhash_scryptsalsa208sha256_str_needs_rehash()` didn't return
ca16be
`EINVAL` on input strings with a short length, unlike their high-level
ca16be
counterpart.
ca16be
 - Added a workaround for Visual Studio 2010 bug causing CPU features
ca16be
not to be detected.
ca16be
 - Portability improvements.
ca16be
 - Test vectors from Project Wycheproof have been added.
ca16be
 - New low-level APIs for arithmetic mod the order of the prime order group:
ca16be
`crypto_core_ed25519_scalar_random()`, `crypto_core_ed25519_scalar_reduce()`,
ca16be
`crypto_core_ed25519_scalar_invert()`, `crypto_core_ed25519_scalar_negate()`,
ca16be
`crypto_core_ed25519_scalar_complement()`, `crypto_core_ed25519_scalar_add()`
ca16be
and `crypto_core_ed25519_scalar_sub()`.
ca16be
 - New low-level APIs for scalar multiplication without clamping:
ca16be
`crypto_scalarmult_ed25519_base_noclamp()` and
ca16be
`crypto_scalarmult_ed25519_noclamp()`. These new APIs are especially useful
ca16be
for blinding.
ca16be
 - `sodium_sub()` has been implemented.
ca16be
 - Support for WatchOS has been added.
ca16be
 - getrandom(2) is now used on FreeBSD 12+.
ca16be
 - The `nonnull` attribute has been added to all relevant prototypes.
ca16be
 - More reliable AVX512 detection.
ca16be
 - Javascript/Webassembly builds now use dynamic memory growth.
ca16be
ca16be
* Version 1.0.16
ca16be
 - Signatures computations and verifications are now way faster on
ca16be
64-bit platforms with compilers supporting 128-bit arithmetic (gcc,
ca16be
clang, icc). This includes the WebAssembly target.
ca16be
 - New low-level APIs for computations over edwards25519:
ca16be
`crypto_scalarmult_ed25519()`, `crypto_scalarmult_ed25519_base()`,
ca16be
`crypto_core_ed25519_is_valid_point()`, `crypto_core_ed25519_add()`,
ca16be
`crypto_core_ed25519_sub()` and `crypto_core_ed25519_from_uniform()`
ca16be
(elligator representative to point).
ca16be
 - `crypto_sign_open()`, `crypto_sign_verify_detached() and
ca16be
`crypto_sign_edwards25519sha512batch_open` now reject public keys in
ca16be
non-canonical form in addition to low-order points.
ca16be
 - The library can be built with `ED25519_NONDETERMINISTIC` defined in
ca16be
order to use synthetic nonces for EdDSA. This is disabled by default.
ca16be
 - Webassembly: `crypto_pwhash_*()` functions are now included in
ca16be
non-sumo builds.
ca16be
 - `sodium_stackzero()` was added to wipe content off the stack.
ca16be
 - Android: support new SDKs where unified headers have become the
ca16be
default.
ca16be
 - The Salsa20-based PRNG example is now thread-safe on platforms with
ca16be
support for thread-local storage, optionally mixes bits from RDRAND.
ca16be
 - CMAKE: static library detection on Unix systems has been improved
ca16be
(thanks to @BurningEnlightenment, @nibua-r, @mellery451)
ca16be
 - Argon2 and scrypt are slightly faster on Linux.
ca16be
ca16be
* Version 1.0.15
ca16be
 - The default password hashing algorithm is now Argon2id. The
ca16be
`pwhash_str_verify()` function can still verify Argon2i hashes
ca16be
without any changes, and `pwhash()` can still compute Argon2i hashes
ca16be
as well.
ca16be
 - The aes128ctr primitive was removed. It was slow, non-standard, not
ca16be
authenticated, and didn't seem to be used by any opensource project.
ca16be
 - Argon2id required at least 3 passes like Argon2i, despite a minimum
ca16be
of `1` as defined by the `OPSLIMIT_MIN` constant. This has been fixed.
ca16be
 - The secretstream construction was slightly changed to be consistent
ca16be
with forthcoming variants.
ca16be
 - The Javascript and Webassembly versions have been merged, and the
ca16be
module now returns a `.ready` promise that will resolve after the
ca16be
Webassembly code is loaded and compiled.
ca16be
 - Note that due to these incompatible changes, the library version
ca16be
major was bumped up.
ca16be
ca16be
* Version 1.0.14
ca16be
 - iOS binaries should now be compatible with WatchOS and TVOS.
ca16be
 - WebAssembly is now officially supported. Special thanks to
ca16be
@facekapow and @pepyakin who helped to make it happen.
ca16be
 - Internal consistency checks failing and primitives used with
ca16be
dangerous/out-of-bounds/invalid parameters used to call abort(3).
ca16be
Now, a custom handler *that doesn't return* can be set with the
ca16be
`set_sodium_misuse()` function. It still aborts by default or if the
ca16be
handler ever returns. This is not a replacement for non-fatal,
ca16be
expected runtime errors. This handler will be only called in
ca16be
unexpected situations due to potential bugs in the library or in
ca16be
language bindings.
ca16be
 - `*_MESSAGEBYTES_MAX` macros (and the corresponding
ca16be
`_messagebytes_max()` symbols) have been added to represent the
ca16be
maximum message size that can be safely handled by a primitive.
ca16be
Language bindings are encouraged to check user inputs against these
ca16be
maximum lengths.
ca16be
 - The test suite has been extended to cover more edge cases.
ca16be
 - crypto_sign_ed25519_pk_to_curve25519() now rejects points that are
ca16be
not on the curve, or not in the main subgroup.
ca16be
 - Further changes have been made to ensure that smart compilers will
ca16be
not optimize out code that we don't want to be optimized.
ca16be
 - Visual Studio solutions are now included in distribution tarballs.
ca16be
 - The `sodium_runtime_has_*` symbols for CPU features detection are
ca16be
now defined as weak symbols, i.e. they can be replaced with an
ca16be
application-defined implementation. This can be useful to disable
ca16be
AVX* when temperature/power consumption is a concern.
ca16be
 - `crypto_kx_*()` now aborts if called with no non-NULL pointers to
ca16be
store keys to.
ca16be
 - SSE2 implementations of `crypto_verify_*()` have been added.
ca16be
 - Passwords can be hashed using a specific algorithm with the new
ca16be
`crypto_pwhash_str_alg()` function.
ca16be
 - Due to popular demand, base64 encoding (`sodium_bin2base64()`) and
ca16be
decoding (`sodium_base642bin()`) have been implemented.
ca16be
 - A new `crypto_secretstream_*()` API was added to safely encrypt files
ca16be
and multi-part messages.
ca16be
 - The `sodium_pad()` and `sodium_unpad()` helper functions have been
ca16be
added in order to add & remove padding.
ca16be
 - An AVX512 optimized implementation of Argon2 has been added (written
ca16be
by Ondrej Mosnáček, thanks!)
ca16be
 - The `crypto_pwhash_str_needs_rehash()` function was added to check if
ca16be
a password hash string matches the given parameters, or if it needs an
ca16be
update.
ca16be
 - The library can now be compiled with recent versions of
ca16be
emscripten/binaryen that don't allow multiple variables declarations
ca16be
using a single `var` statement.
ca16be
ca16be
* Version 1.0.13
ca16be
 - Javascript: the sumo builds now include all symbols. They were
ca16be
previously limited to symbols defined in minimal builds.
ca16be
 - The public `crypto_pwhash_argon2i_MEMLIMIT_MAX` constant was
ca16be
incorrectly defined on 32-bit platforms. This has been fixed.
ca16be
 - Version 1.0.12 didn't compile on OpenBSD/i386 using the base gcc
ca16be
compiler. This has been fixed.
ca16be
 - The Android compilation scripts have been updated for NDK r14b.
ca16be
 - armv7s-optimized code was re-added to iOS builds.
ca16be
 - An AVX2 optimized implementation of the Argon2 round function was
ca16be
added.
ca16be
 - The Argon2id variant of Argon2 has been implemented. The
ca16be
high-level `crypto_pwhash_str_verify()` function automatically detects
ca16be
the algorithm and can verify both Argon2i and Argon2id hashed passwords.
ca16be
The default algorithm for newly hashed passwords remains Argon2i in
ca16be
this version to avoid breaking compatibility with verifiers running
ca16be
libsodium <= 1.0.12.
ca16be
 - A `crypto_box_curve25519xchacha20poly1305_seal*()` function set was
ca16be
implemented.
ca16be
 - scrypt was removed from minimal builds.
ca16be
 - libsodium is now available on NuGet.
ca16be
ca16be
* Version 1.0.12
ca16be
 - Ed25519ph was implemented, adding a multi-part signature API
ca16be
(`crypto_sign_init()`, `crypto_sign_update()`, `crypto_sign_final_*()`).
ca16be
 - New constants and related accessors have been added for Scrypt and
ca16be
Argon2.
ca16be
 - XChaCha20 has been implemented. Like XSalsa20, this construction
ca16be
extends the ChaCha20 cipher to accept a 192-bit nonce. This makes it safe
ca16be
to use ChaCha20 with random nonces.
ca16be
 - `crypto_secretbox`, `crypto_box` and `crypto_aead` now offer
ca16be
variants leveraging XChaCha20.
ca16be
 - SHA-2 is about 20% faster, which also gives a speed boost to
ca16be
signature and signature verification.
ca16be
 - AVX2 implementations of Salsa20 and ChaCha20 have been added. They
ca16be
are twice as fast as the SSE2 implementations. The speed gain is
ca16be
even more significant on Windows, that previously didn't use
ca16be
vectorized implementations.
ca16be
 - New high-level API: `crypto_kdf`, to easily derive one or more
ca16be
subkeys from a master key.
ca16be
 - Siphash with a 128-bit output has been implemented, and is
ca16be
available as `crypto_shorthash_siphashx_*`.
ca16be
 - New `*_keygen()` helpers functions have been added to create secret
ca16be
keys for all constructions. This improves code clarity and can prevent keys
ca16be
from being partially initialized.
ca16be
 - A new `randombytes_buf_deterministic()` function was added to
ca16be
deterministically fill a memory region with pseudorandom data. This
ca16be
function can especially be useful to write reproducible tests.
ca16be
 - A preliminary `crypto_kx_*()` API was added to compute shared session
ca16be
keys.
ca16be
 - AVX2 detection is more reliable.
ca16be
 - The pthreads library is not required any more when using MingW.
ca16be
 - `contrib/Findsodium.cmake` was added as an example to include
ca16be
libsodium in a project using cmake.
ca16be
 - Compatibility with gcc 2.x has been restored.
ca16be
 - Minimal builds can be checked using `sodium_library_minimal()`.
ca16be
 - The `--enable-opt` compilation switch has become compatible with more
ca16be
platforms.
ca16be
 - Android builds are now using clang on platforms where it is
ca16be
available.
ca16be
ca16be
* Version 1.0.11
ca16be
 - `sodium_init()` is now thread-safe, and can be safely called multiple
ca16be
times.
ca16be
 - Android binaries now properly support 64-bit Android, targeting
ca16be
platform 24, but without breaking compatibility with platforms 16 and
ca16be
21.
ca16be
 - Better support for old gcc versions.
ca16be
 - On FreeBSD, core dumps are disabled on regions allocated with
ca16be
sodium allocation functions.
ca16be
 - AVX2 detection was fixed, resulting in faster Blake2b hashing on
ca16be
platforms where it was not properly detected.
ca16be
 - The Sandy2x Curve25519 implementation was not as fast as expected
ca16be
on some platforms. This has been fixed.
ca16be
 - The NativeClient target was improved. Most notably, it now supports
ca16be
optimized implementations, and uses pepper_49 by default.
ca16be
 - The library can be compiled with recent Emscripten versions.
ca16be
Changes have been made to produce smaller code, and the default heap
ca16be
size was reduced in the standard version.
ca16be
 - The code can now be compiled on SLES11 service pack 4.
ca16be
 - Decryption functions can now accept a NULL pointer for the output.
ca16be
This checks the MAC without writing the decrypted message.
ca16be
 - crypto_generichash_final() now returns -1 if called twice.
ca16be
 - Support for Visual Studio 2008 was improved.
ca16be
ca16be
* Version 1.0.10
ca16be
 - This release only fixes a compilation issue reported with some older
ca16be
gcc versions. There are no functional changes over the previous release.
ca16be
ca16be
* Version 1.0.9
ca16be
 - The Javascript target now includes a `--sumo` option to include all
ca16be
the symbols of the original C library.
ca16be
 - A detached API was added to the ChaCha20-Poly1305 and AES256-GCM
ca16be
implementations.
ca16be
 - The Argon2i password hashing function was added, and is accessible
ca16be
directly and through a new, high-level `crypto_pwhash` API. The scrypt
ca16be
function remains available as well.
ca16be
 - A speed-record AVX2 implementation of BLAKE2b was added (thanks to
ca16be
Samuel Neves).
ca16be
 - The library can now be compiled using C++Builder (thanks to @jcolli44)
ca16be
 - Countermeasures for Ed25519 signatures malleability have been added
ca16be
to match the irtf-cfrg-eddsa draft (note that malleability is irrelevant to
ca16be
the standard definition of signature security). Signatures with a small-order
ca16be
`R` point are now also rejected.
ca16be
 - Some implementations are now slightly faster when using the Clang
ca16be
compiler.
ca16be
 - The HChaCha20 core function was implemented (`crypto_core_hchacha20()`).
ca16be
 - No-op stubs were added for all AES256-GCM public functions even when
ca16be
compiled on non-Intel platforms.
ca16be
 - `crypt_generichash_blake2b_statebytes()` was added.
ca16be
 - New macros were added for the IETF variant of the ChaCha20-Poly1305
ca16be
construction.
ca16be
 - The library can now be compiled on Minix.
ca16be
 - HEASLR is now enabled on MinGW builds.
ca16be
ca16be
* Version 1.0.8
ca16be
 - Handle the case where the CPU supports AVX, but we are running
ca16be
on an hypervisor with AVX disabled/not supported.
ca16be
 - Faster (2x) scalarmult_base() when using the ref10 implementation.
ca16be
ca16be
* Version 1.0.7
ca16be
 - More functions whose return value should be checked have been
ca16be
tagged with `__attribute__ ((warn_unused_result))`: `crypto_box_easy()`,
ca16be
`crypto_box_detached()`, `crypto_box_beforenm()`, `crypto_box()`, and
ca16be
`crypto_scalarmult()`.
ca16be
 - Sandy2x, the fastest Curve25519 implementation ever, has been
ca16be
merged in, and is automatically used on CPUs supporting the AVX
ca16be
instructions set.
ca16be
 - An SSE2 optimized implementation of Poly1305 was added, and is
ca16be
twice as fast as the portable one.
ca16be
 - An SSSE3 optimized implementation of ChaCha20 was added, and is
ca16be
twice as fast as the portable one.
ca16be
 - Faster `sodium_increment()` for common nonce sizes.
ca16be
 - New helper functions have been added: `sodium_is_zero()` and
ca16be
 `sodium_add()`.
ca16be
 - `sodium_runtime_has_aesni()` now properly detects the CPU flag when
ca16be
 compiled using Visual Studio.
ca16be
ca16be
* Version 1.0.6
ca16be
 - Optimized implementations of Blake2 have been added for modern
ca16be
Intel platforms. `crypto_generichash()` is now faster than MD5 and SHA1
ca16be
implementations while being far more secure.
ca16be
 - Functions for which the return value should be checked have been
ca16be
tagged with `__attribute__ ((warn_unused_result))`. This will
ca16be
intentionally break code compiled with `-Werror` that didn't bother
ca16be
checking critical return values.
ca16be
 - The `crypto_sign_edwards25519sha512batch_*()` functions have been
ca16be
tagged as deprecated.
ca16be
 - Undocumented symbols that were exported, but were only useful for
ca16be
internal purposes have been removed or made private:
ca16be
`sodium_runtime_get_cpu_features()`, the implementation-specific
ca16be
`crypto_onetimeauth_poly1305_donna()` symbols,
ca16be
`crypto_onetimeauth_poly1305_set_implementation()`,
ca16be
`crypto_onetimeauth_poly1305_implementation_name()` and
ca16be
`crypto_onetimeauth_pick_best_implementation()`.
ca16be
 - `sodium_compare()` now works as documented, and compares numbers
ca16be
in little-endian format instead of behaving like `memcmp()`.
ca16be
 - The previous changes should not break actual applications, but to be
ca16be
safe, the library version major was incremented.
ca16be
 - `sodium_runtime_has_ssse3()` and `sodium_runtime_has_sse41()` have
ca16be
been added.
ca16be
 - The library can now be compiled with the CompCert compiler.
ca16be
ca16be
* Version 1.0.5
ca16be
 - Compilation issues on some platforms were fixed: missing alignment
ca16be
directives were added (required at least on RHEL-6/i386), a workaround
ca16be
for a VRP bug on gcc/armv7 was added, and the library can now be compiled
ca16be
with the SunPro compiler.
ca16be
 - Javascript target: io.js is not supported any more. Use nodejs.
ca16be
ca16be
* Version 1.0.4
ca16be
 - Support for AES256-GCM has been added. This requires
ca16be
a CPU with the aesni and pclmul extensions, and is accessible via the
ca16be
crypto_aead_aes256gcm_*() functions.
ca16be
 - The Javascript target doesn't use eval() any more, so that the
ca16be
library can be used in Chrome packaged applications.
ca16be
 - QNX and CloudABI are now supported.
ca16be
 - Support for NaCl has finally been added.
ca16be
 - ChaCha20 with an extended (96 bit) nonce and a 32-bit counter has
ca16be
been implemented as crypto_stream_chacha20_ietf(),
ca16be
crypto_stream_chacha20_ietf_xor() and crypto_stream_chacha20_ietf_xor_ic().
ca16be
An IETF-compatible version of ChaCha20Poly1305 is available as
ca16be
crypto_aead_chacha20poly1305_ietf_npubbytes(),
ca16be
crypto_aead_chacha20poly1305_ietf_encrypt() and
ca16be
crypto_aead_chacha20poly1305_ietf_decrypt().
ca16be
 - The sodium_increment() helper function has been added, to increment
ca16be
an arbitrary large number (such as a nonce).
ca16be
 - The sodium_compare() helper function has been added, to compare
ca16be
arbitrary large numbers (such as nonces, in order to prevent replay
ca16be
attacks).
ca16be
ca16be
* Version 1.0.3
ca16be
 - In addition to sodium_bin2hex(), sodium_hex2bin() is now a
ca16be
constant-time function.
ca16be
 - crypto_stream_xsalsa20_ic() has been added.
ca16be
 - crypto_generichash_statebytes(), crypto_auth_*_statebytes() and
ca16be
crypto_hash_*_statebytes() have been added in order to retrieve the
ca16be
size of structures keeping states from foreign languages.
ca16be
 - The JavaScript target doesn't require /dev/urandom or an external
ca16be
randombytes() implementation any more. Other minor Emscripten-related
ca16be
improvements have been made in order to support libsodium.js
ca16be
 - Custom randombytes implementations do not need to provide their own
ca16be
implementation of randombytes_uniform() any more. randombytes_stir()
ca16be
and randombytes_close() can also be NULL pointers if they are not
ca16be
required.
ca16be
 - On Linux, getrandom(2) is being used instead of directly accessing
ca16be
/dev/urandom, if the kernel supports this system call.
ca16be
 - crypto_box_seal() and crypto_box_seal_open() have been added.
ca16be
 - Visual Studio 2015 is now supported.
ca16be
ca16be
* Version 1.0.2
ca16be
 - The _easy and _detached APIs now support precalculated keys;
ca16be
crypto_box_easy_afternm(), crypto_box_open_easy_afternm(),
ca16be
crypto_box_detached_afternm() and crypto_box_open_detached_afternm()
ca16be
have been added as an alternative to the NaCl interface.
ca16be
 - Memory allocation functions can now be used on operating systems with
ca16be
no memory protection.
ca16be
 - crypto_sign_open() and crypto_sign_edwards25519sha512batch_open()
ca16be
now accept a NULL pointer instead of a pointer to the message size, if
ca16be
storing this information is not required.
ca16be
 - The close-on-exec flag is now set on the descriptor returned when
ca16be
opening /dev/urandom.
ca16be
 - A libsodium-uninstalled.pc file to use pkg-config even when
ca16be
libsodium is not installed, has been added.
ca16be
 - The iOS target now includes armv7s and arm64 optimized code, as well
ca16be
as i386 and x86_64 code for the iOS simulator.
ca16be
 - sodium_free() can now be called on regions with PROT_NONE protection.
ca16be
 - The Javascript tests can run on Ubuntu, where the node binary was
ca16be
renamed nodejs. io.js can also be used instead of node.
ca16be
ca16be
* Version 1.0.1
ca16be
 - DLL_EXPORT was renamed SODIUM_DLL_EXPORT in order to avoid
ca16be
collisions with similar macros defined by other libraries.
ca16be
 - sodium_bin2hex() is now constant-time.
ca16be
 - crypto_secretbox_detached() now supports overlapping input and output
ca16be
regions.
ca16be
 - NaCl's donna_c64 implementation of curve25519 was reading an extra byte
ca16be
past the end of the buffer containing the base point. This has been
ca16be
fixed.
ca16be
ca16be
* Version 1.0.0
ca16be
 - The API and ABI are now stable. New features will be added, but
ca16be
backward-compatibility is guaranteed through all the 1.x.y releases.
ca16be
 - crypto_sign() properly works with overlapping regions again. Thanks
ca16be
to @pysiak for reporting this regression introduced in version 0.6.1.
ca16be
 - The test suite has been extended.
ca16be
ca16be
* Version 0.7.1 (1.0 RC2)
ca16be
 - This is the second release candidate of Sodium 1.0. Minor
ca16be
compilation, readability and portability changes have been made and the
ca16be
test suite was improved, but the API is the same as the previous release
ca16be
candidate.
ca16be
ca16be
* Version 0.7.0 (1.0 RC1)
ca16be
 - Allocating memory to store sensitive data can now be done using
ca16be
sodium_malloc() and sodium_allocarray(). These functions add guard
ca16be
pages around the protected data to make it less likely to be
ca16be
accessible in a heartbleed-like scenario. In addition, the protection
ca16be
for memory regions allocated that way can be changed using
ca16be
sodium_mprotect_noaccess(), sodium_mprotect_readonly() and
ca16be
sodium_mprotect_readwrite().
ca16be
 - ed25519 keys can be converted to curve25519 keys with
ca16be
crypto_sign_ed25519_pk_to_curve25519() and
ca16be
crypto_sign_ed25519_sk_to_curve25519(). This allows using the same
ca16be
keys for signature and encryption.
ca16be
 - The seed and the public key can be extracted from an ed25519 key
ca16be
using crypto_sign_ed25519_sk_to_seed() and crypto_sign_ed25519_sk_to_pk().
ca16be
 - aes256 was removed. A timing-attack resistant implementation might
ca16be
be added later, but not before version 1.0 is tagged.
ca16be
 - The crypto_pwhash_scryptxsalsa208sha256_* compatibility layer was
ca16be
removed. Use crypto_pwhash_scryptsalsa208sha256_*.
ca16be
 - The compatibility layer for implementation-specific functions was
ca16be
removed.
ca16be
 - Compilation issues with Mingw64 on MSYS (not MSYS2) were fixed.
ca16be
 - crypto_pwhash_scryptsalsa208sha256_STRPREFIX was added: it contains
ca16be
the prefix produced by crypto_pwhash_scryptsalsa208sha256_str()
ca16be
ca16be
* Version 0.6.1
ca16be
 - Important bug fix: when crypto_sign_open() was given a signed
ca16be
message too short to even contain a signature, it was putting an
ca16be
unlimited amount of zeros into the target buffer instead of
ca16be
immediately returning -1. The bug was introduced in version 0.5.0.
ca16be
 - New API: crypto_sign_detached() and crypto_sign_verify_detached()
ca16be
to produce and verify ed25519 signatures without having to duplicate
ca16be
the message.
ca16be
 - New ./configure switch: --enable-minimal, to create a smaller
ca16be
library, with only the functions required for the high-level API.
ca16be
Mainly useful for the JavaScript target and embedded systems.
ca16be
 - All the symbols are now exported by the Emscripten build script.
ca16be
 - The pkg-config .pc file is now always installed even if the
ca16be
pkg-config tool is not available during the installation.
ca16be
ca16be
* Version 0.6.0
ca16be
 - The ChaCha20 stream cipher has been added, as crypto_stream_chacha20_*
ca16be
 - The ChaCha20Poly1305 AEAD construction has been implemented, as
ca16be
crypto_aead_chacha20poly1305_*
ca16be
 - The _easy API does not require any heap allocations any more and
ca16be
does not have any overhead over the NaCl API. With the password
ca16be
hashing function being an obvious exception, the library doesn't
ca16be
allocate and will not allocate heap memory ever.
ca16be
 - crypto_box and crypto_secretbox have a new _detached API to store
ca16be
the authentication tag and the encrypted message separately.
ca16be
 - crypto_pwhash_scryptxsalsa208sha256*() functions have been renamed
ca16be
crypto_pwhash_scryptsalsa208sha256*().
ca16be
 - The low-level crypto_pwhash_scryptsalsa208sha256_ll() function
ca16be
allows setting individual parameters of the scrypt function.
ca16be
 - New macros and functions for recommended crypto_pwhash_* parameters
ca16be
have been added.
ca16be
 - Similarly to crypto_sign_seed_keypair(), crypto_box_seed_keypair()
ca16be
has been introduced to deterministically generate a key pair from a seed.
ca16be
 - crypto_onetimeauth() now provides a streaming interface.
ca16be
 - crypto_stream_chacha20_xor_ic() and crypto_stream_salsa20_xor_ic()
ca16be
have been added to use a non-zero initial block counter.
ca16be
 - On Windows, CryptGenRandom() was replaced by RtlGenRandom(), which
ca16be
doesn't require the Crypt API.
ca16be
 - The high bit in curve25519 is masked instead of processing the key as
ca16be
a 256-bit value.
ca16be
 - The curve25519 ref implementation was replaced by the latest ref10
ca16be
implementation from Supercop.
ca16be
 - sodium_mlock() now prevents memory from being included in coredumps
ca16be
on Linux 3.4+
ca16be
ca16be
* Version 0.5.0
ca16be
 - sodium_mlock()/sodium_munlock() have been introduced to lock pages
ca16be
in memory before storing sensitive data, and to zero them before
ca16be
unlocking them.
ca16be
 - High-level wrappers for crypto_box and crypto_secretbox
ca16be
(crypto_box_easy and crypto_secretbox_easy) can be used to avoid
ca16be
dealing with the specific memory layout regular functions depend on.
ca16be
 - crypto_pwhash_scryptsalsa208sha256* functions have been added
ca16be
to derive a key from a password, and for password storage.
ca16be
 - Salsa20 and ed25519 implementations now support overlapping
ca16be
inputs/keys/outputs (changes imported from supercop-20140505).
ca16be
 - New build scripts for Visual Studio, Emscripten, different Android
ca16be
architectures and msys2 are available.
ca16be
 - The poly1305-53 implementation has been replaced with Floodyberry's
ca16be
poly1305-donna32 and poly1305-donna64 implementations.
ca16be
 - sodium_hex2bin() has been added to complement sodium_bin2hex().
ca16be
 - On OpenBSD and Bitrig, arc4random() is used instead of reading
ca16be
/dev/urandom.
ca16be
 - crypto_auth_hmac_sha512() has been implemented.
ca16be
 - sha256 and sha512 now have a streaming interface.
ca16be
 - hmacsha256, hmacsha512 and hmacsha512256 now support keys of
ca16be
arbitrary length, and have a streaming interface.
ca16be
 - crypto_verify_64() has been implemented.
ca16be
 - first-class Visual Studio build system, thanks to @evoskuil
ca16be
 - CPU features are now detected at runtime.
ca16be
ca16be
* Version 0.4.5
ca16be
 - Restore compatibility with OSX <= 10.6
ca16be
ca16be
* Version 0.4.4
ca16be
 - Visual Studio is officially supported (VC 2010 & VC 2013)
ca16be
 - mingw64 is now supported
ca16be
 - big-endian architectures are now supported as well
ca16be
 - The donna_c64 implementation of curve25519_donna_c64 now handles
ca16be
non-canonical points like the ref implementation
ca16be
 - Missing scalarmult_curve25519 and stream_salsa20 constants are now exported
ca16be
 - A crypto_onetimeauth_poly1305_ref() wrapper has been added
ca16be
ca16be
* Version 0.4.3
ca16be
 - crypto_sign_seedbytes() and crypto_sign_SEEDBYTES were added.
ca16be
 - crypto_onetimeauth_poly1305_implementation_name() was added.
ca16be
 - poly1305-ref has been replaced by a faster implementation,
ca16be
Floodyberry's poly1305-donna-unrolled.
ca16be
 - Stackmarkings have been added to assembly code, for Hardened Gentoo.
ca16be
 - pkg-config can now be used in order to retrieve compilations flags for
ca16be
using libsodium.
ca16be
 - crypto_stream_aes256estream_*() can now deal with unaligned input
ca16be
on platforms that require word alignment.
ca16be
 - portability improvements.
ca16be
ca16be
* Version 0.4.2
ca16be
 - All NaCl constants are now also exposed as functions.
ca16be
 - The Android and iOS cross-compilation script have been improved.
ca16be
 - libsodium can now be cross-compiled to Windows from Linux.
ca16be
 - libsodium can now be compiled with emscripten.
ca16be
 - New convenience function (prototyped in utils.h): sodium_bin2hex().
ca16be
ca16be
* Version 0.4.1
ca16be
 - sodium_version_*() functions were not exported in version 0.4. They
ca16be
are now visible as intended.
ca16be
 - sodium_init() now calls randombytes_stir().
ca16be
 - optimized assembly version of salsa20 is now used on amd64.
ca16be
 - further cleanups and enhanced compatibility with non-C99 compilers.
ca16be
ca16be
* Version 0.4
ca16be
 - Most constants and operations are now available as actual functions
ca16be
instead of macros, making it easier to use from other languages.
ca16be
 - New operation: crypto_generichash, featuring a variable key size, a
ca16be
variable output size, and a streaming API. Currently implemented using
ca16be
Blake2b.
ca16be
 - The package can be compiled in a separate directory.
ca16be
 - aes128ctr functions are exported.
ca16be
 - Optimized versions of curve25519 (curve25519_donna_c64), poly1305
ca16be
(poly1305_53) and ed25519 (ed25519_ref10) are available. Optionally calling
ca16be
sodium_init() once before using the library makes it pick the fastest
ca16be
implementation.
ca16be
 - New convenience function: sodium_memzero() in order to securely
ca16be
wipe a memory area.
ca16be
 - A whole bunch of cleanups and portability enhancements.
ca16be
 - On Windows, a .REF file is generated along with the shared library,
ca16be
for use with Visual Studio. The installation path for these has become
ca16be
$prefix/bin as expected by MingW.
ca16be
ca16be
* Version 0.3
ca16be
 - The crypto_shorthash operation has been added, implemented using
ca16be
SipHash-2-4.
ca16be
ca16be
* Version 0.2
ca16be
 - crypto_sign_seed_keypair() has been added
ca16be
ca16be
* Version 0.1
ca16be
 - Initial release.
ca16be