Home | History | Annotate | Line # | Download | only in dist
      1  1.1  riastrad 
      2  1.1  riastrad * Version 1.0.16
      3  1.1  riastrad  - Signatures computations and verifications are now way faster on
      4  1.1  riastrad 64-bit platforms with compilers supporting 128-bit arithmetic (gcc,
      5  1.1  riastrad clang, icc). This includes the WebAssembly target.
      6  1.1  riastrad  - New low-level APIs for computations over edwards25519:
      7  1.1  riastrad `crypto_scalarmult_ed25519()`, `crypto_scalarmult_ed25519_base()`,
      8  1.1  riastrad `crypto_core_ed25519_is_valid_point()`, `crypto_core_ed25519_add()`,
      9  1.1  riastrad `crypto_core_ed25519_sub()` and `crypto_core_ed25519_from_uniform()`
     10  1.1  riastrad (elligator representative to point).
     11  1.1  riastrad  - `crypto_sign_open()`, `crypto_sign_verify_detached() and
     12  1.1  riastrad `crypto_sign_edwards25519sha512batch_open` now reject public keys in
     13  1.1  riastrad non-canonical form in addition to low-order points.
     14  1.1  riastrad  - The library can be built with `ED25519_NONDETERMINISTIC` defined in
     15  1.1  riastrad order to use synthetic nonces for EdDSA. This is disabled by default.
     16  1.1  riastrad  - Webassembly: `crypto_pwhash_*()` functions are now included in
     17  1.1  riastrad non-sumo builds.
     18  1.1  riastrad  - `sodium_stackzero()` was added to wipe content off the stack.
     19  1.1  riastrad  - Android: support new SDKs where unified headers have become the
     20  1.1  riastrad default.
     21  1.1  riastrad  - The Salsa20-based PRNG example is now thread-safe on platforms with
     22  1.1  riastrad support for thread-local storage, optionally mixes bits from RDRAND.
     23  1.1  riastrad  - CMAKE: static library detection on Unix systems has been improved
     24  1.1  riastrad (thanks to @BurningEnlightenment, @nibua-r, @mellery451)
     25  1.1  riastrad  - Argon2 and scrypt are slightly faster on Linux.
     26  1.1  riastrad 
     27  1.1  riastrad * Version 1.0.15
     28  1.1  riastrad  - The default password hashing algorithm is now Argon2id. The
     29  1.1  riastrad `pwhash_str_verify()` function can still verify Argon2i hashes
     30  1.1  riastrad without any changes, and `pwhash()` can still compute Argon2i hashes
     31  1.1  riastrad as well.
     32  1.1  riastrad  - The aes128ctr primitive was removed. It was slow, non-standard, not
     33  1.1  riastrad authenticated, and didn't seem to be used by any opensource project.
     34  1.1  riastrad  - Argon2id required at least 3 passes like Argon2i, despite a minimum
     35  1.1  riastrad of `1` as defined by the `OPSLIMIT_MIN` constant. This has been fixed.
     36  1.1  riastrad  - The secretstream construction was slightly changed to be consistent
     37  1.1  riastrad with forthcoming variants.
     38  1.1  riastrad  - The Javascript and Webassembly versions have been merged, and the
     39  1.1  riastrad module now returns a `.ready` promise that will resolve after the
     40  1.1  riastrad Webassembly code is loaded and compiled.
     41  1.1  riastrad  - Note that due to these incompatible changes, the library version
     42  1.1  riastrad major was bumped up.
     43  1.1  riastrad 
     44  1.1  riastrad * Version 1.0.14
     45  1.1  riastrad  - iOS binaries should now be compatible with WatchOS and TVOS.
     46  1.1  riastrad  - WebAssembly is now officially supported. Special thanks to
     47  1.1  riastrad @facekapow and @pepyakin who helped to make it happen.
     48  1.1  riastrad  - Internal consistency checks failing and primitives used with
     49  1.1  riastrad dangerous/out-of-bounds/invalid parameters used to call abort(3).
     50  1.1  riastrad Now, a custom handler *that doesn't return* can be set with the
     51  1.1  riastrad `set_sodium_misuse()` function. It still aborts by default or if the
     52  1.1  riastrad handler ever returns. This is not a replacement for non-fatal,
     53  1.1  riastrad expected runtime errors. This handler will be only called in
     54  1.1  riastrad unexpected situations due to potential bugs in the library or in
     55  1.1  riastrad language bindings.
     56  1.1  riastrad  - `*_MESSAGEBYTES_MAX` macros (and the corresponding
     57  1.1  riastrad `_messagebytes_max()` symbols) have been added to represent the
     58  1.1  riastrad maximum message size that can be safely handled by a primitive.
     59  1.1  riastrad Language bindings are encouraged to check user inputs against these
     60  1.1  riastrad maximum lengths.
     61  1.1  riastrad  - The test suite has been extended to cover more edge cases.
     62  1.1  riastrad  - crypto_sign_ed25519_pk_to_curve25519() now rejects points that are
     63  1.1  riastrad not on the curve, or not in the main subgroup.
     64  1.1  riastrad  - Further changes have been made to ensure that smart compilers will
     65  1.1  riastrad not optimize out code that we don't want to be optimized.
     66  1.1  riastrad  - Visual Studio solutions are now included in distribution tarballs.
     67  1.1  riastrad  - The `sodium_runtime_has_*` symbols for CPU features detection are
     68  1.1  riastrad now defined as weak symbols, i.e. they can be replaced with an
     69  1.1  riastrad application-defined implementation. This can be useful to disable
     70  1.1  riastrad AVX* when temperature/power consumption is a concern.
     71  1.1  riastrad  - `crypto_kx_*()` now aborts if called with no non-NULL pointers to
     72  1.1  riastrad store keys to.
     73  1.1  riastrad  - SSE2 implementations of `crypto_verify_*()` have been added.
     74  1.1  riastrad  - Passwords can be hashed using a specific algorithm with the new
     75  1.1  riastrad `crypto_pwhash_str_alg()` function.
     76  1.1  riastrad  - Due to popular demand, base64 encoding (`sodium_bin2base64()`) and
     77  1.1  riastrad decoding (`sodium_base642bin()`) have been implemented.
     78  1.1  riastrad  - A new `crypto_secretstream_*()` API was added to safely encrypt files
     79  1.1  riastrad and multi-part messages.
     80  1.1  riastrad  - The `sodium_pad()` and `sodium_unpad()` helper functions have been
     81  1.1  riastrad added in order to add & remove padding.
     82  1.1  riastrad  - An AVX512 optimized implementation of Argon2 has been added (written
     83  1.1  riastrad by Ondrej Mosnek, thanks!)
     84  1.1  riastrad  - The `crypto_pwhash_str_needs_rehash()` function was added to check if
     85  1.1  riastrad a password hash string matches the given parameters, or if it needs an
     86  1.1  riastrad update.
     87  1.1  riastrad  - The library can now be compiled with recent versions of
     88  1.1  riastrad emscripten/binaryen that don't allow multiple variables declarations
     89  1.1  riastrad using a single `var` statement.
     90  1.1  riastrad 
     91  1.1  riastrad * Version 1.0.13
     92  1.1  riastrad  - Javascript: the sumo builds now include all symbols. They were
     93  1.1  riastrad previously limited to symbols defined in minimal builds.
     94  1.1  riastrad  - The public `crypto_pwhash_argon2i_MEMLIMIT_MAX` constant was
     95  1.1  riastrad incorrectly defined on 32-bit platforms. This has been fixed.
     96  1.1  riastrad  - Version 1.0.12 didn't compile on OpenBSD/i386 using the base gcc
     97  1.1  riastrad compiler. This has been fixed.
     98  1.1  riastrad  - The Android compilation scripts have been updated for NDK r14b.
     99  1.1  riastrad  - armv7s-optimized code was re-added to iOS builds.
    100  1.1  riastrad  - An AVX2 optimized implementation of the Argon2 round function was
    101  1.1  riastrad added.
    102  1.1  riastrad  - The Argon2id variant of Argon2 has been implemented. The
    103  1.1  riastrad high-level `crypto_pwhash_str_verify()` function automatically detects
    104  1.1  riastrad the algorithm and can verify both Argon2i and Argon2id hashed passwords.
    105  1.1  riastrad The default algorithm for newly hashed passwords remains Argon2i in
    106  1.1  riastrad this version to avoid breaking compatibility with verifiers running
    107  1.1  riastrad libsodium <= 1.0.12.
    108  1.1  riastrad  - A `crypto_box_curve25519xchacha20poly1305_seal*()` function set was
    109  1.1  riastrad implemented.
    110  1.1  riastrad  - scrypt was removed from minimal builds.
    111  1.1  riastrad  - libsodium is now available on NuGet.
    112  1.1  riastrad 
    113  1.1  riastrad * Version 1.0.12
    114  1.1  riastrad  - Ed25519ph was implemented, adding a multi-part signature API
    115  1.1  riastrad (`crypto_sign_init()`, `crypto_sign_update()`, `crypto_sign_final_*()`).
    116  1.1  riastrad  - New constants and related accessors have been added for Scrypt and
    117  1.1  riastrad Argon2.
    118  1.1  riastrad  - XChaCha20 has been implemented. Like XSalsa20, this construction
    119  1.1  riastrad extends the ChaCha20 cipher to accept a 192-bit nonce. This makes it safe
    120  1.1  riastrad to use ChaCha20 with random nonces.
    121  1.1  riastrad  - `crypto_secretbox`, `crypto_box` and `crypto_aead` now offer
    122  1.1  riastrad variants leveraging XChaCha20.
    123  1.1  riastrad  - SHA-2 is about 20% faster, which also gives a speed boost to
    124  1.1  riastrad signature and signature verification.
    125  1.1  riastrad  - AVX2 implementations of Salsa20 and ChaCha20 have been added. They
    126  1.1  riastrad are twice as fast as the SSE2 implementations. The speed gain is
    127  1.1  riastrad even more significant on Windows, that previously didn't use
    128  1.1  riastrad vectorized implementations.
    129  1.1  riastrad  - New high-level API: `crypto_kdf`, to easily derive one or more
    130  1.1  riastrad subkeys from a master key.
    131  1.1  riastrad  - Siphash with a 128-bit output has been implemented, and is
    132  1.1  riastrad available as `crypto_shorthash_siphashx_*`.
    133  1.1  riastrad  - New `*_keygen()` helpers functions have been added to create secret
    134  1.1  riastrad keys for all constructions. This improves code clarity and can prevent keys
    135  1.1  riastrad from being partially initialized.
    136  1.1  riastrad  - A new `randombytes_buf_deterministic()` function was added to
    137  1.1  riastrad deterministically fill a memory region with pseudorandom data. This
    138  1.1  riastrad function can especially be useful to write reproducible tests.
    139  1.1  riastrad  - A preliminary `crypto_kx_*()` API was added to compute shared session
    140  1.1  riastrad keys.
    141  1.1  riastrad  - AVX2 detection is more reliable.
    142  1.1  riastrad  - The pthreads library is not required any more when using MingW.
    143  1.1  riastrad  - `contrib/Findsodium.cmake` was added as an example to include
    144  1.1  riastrad libsodium in a project using cmake.
    145  1.1  riastrad  - Compatibility with gcc 2.x has been restored.
    146  1.1  riastrad  - Minimal builds can be checked using `sodium_library_minimal()`.
    147  1.1  riastrad  - The `--enable-opt` compilation switch has become compatible with more
    148  1.1  riastrad platforms.
    149  1.1  riastrad  - Android builds are now using clang on platforms where it is
    150  1.1  riastrad available.
    151  1.1  riastrad 
    152  1.1  riastrad * Version 1.0.11
    153  1.1  riastrad  - `sodium_init()` is now thread-safe, and can be safely called multiple
    154  1.1  riastrad times.
    155  1.1  riastrad  - Android binaries now properly support 64-bit Android, targeting
    156  1.1  riastrad platform 24, but without breaking compatibility with platforms 16 and
    157  1.1  riastrad 21.
    158  1.1  riastrad  - Better support for old gcc versions.
    159  1.1  riastrad  - On FreeBSD, core dumps are disabled on regions allocated with
    160  1.1  riastrad sodium allocation functions.
    161  1.1  riastrad  - AVX2 detection was fixed, resulting in faster Blake2b hashing on
    162  1.1  riastrad platforms where it was not properly detected.
    163  1.1  riastrad  - The Sandy2x Curve25519 implementation was not as fast as expected
    164  1.1  riastrad on some platforms. This has been fixed.
    165  1.1  riastrad  - The NativeClient target was improved. Most notably, it now supports
    166  1.1  riastrad optimized implementations, and uses pepper_49 by default.
    167  1.1  riastrad  - The library can be compiled with recent Emscripten versions.
    168  1.1  riastrad Changes have been made to produce smaller code, and the default heap
    169  1.1  riastrad size was reduced in the standard version.
    170  1.1  riastrad  - The code can now be compiled on SLES11 service pack 4.
    171  1.1  riastrad  - Decryption functions can now accept a NULL pointer for the output.
    172  1.1  riastrad This checks the MAC without writing the decrypted message.
    173  1.1  riastrad  - crypto_generichash_final() now returns -1 if called twice.
    174  1.1  riastrad  - Support for Visual Studio 2008 was improved.
    175  1.1  riastrad 
    176  1.1  riastrad * Version 1.0.10
    177  1.1  riastrad  - This release only fixes a compilation issue reported with some older
    178  1.1  riastrad gcc versions. There are no functional changes over the previous release.
    179  1.1  riastrad 
    180  1.1  riastrad * Version 1.0.9
    181  1.1  riastrad  - The Javascript target now includes a `--sumo` option to include all
    182  1.1  riastrad the symbols of the original C library.
    183  1.1  riastrad  - A detached API was added to the ChaCha20-Poly1305 and AES256-GCM
    184  1.1  riastrad implementations.
    185  1.1  riastrad  - The Argon2i password hashing function was added, and is accessible
    186  1.1  riastrad directly and through a new, high-level `crypto_pwhash` API. The scrypt
    187  1.1  riastrad function remains available as well.
    188  1.1  riastrad  - A speed-record AVX2 implementation of BLAKE2b was added (thanks to
    189  1.1  riastrad Samuel Neves).
    190  1.1  riastrad  - The library can now be compiled using C++Builder (thanks to @jcolli44)
    191  1.1  riastrad  - Countermeasures for Ed25519 signatures malleability have been added
    192  1.1  riastrad to match the irtf-cfrg-eddsa draft (note that malleability is irrelevant to
    193  1.1  riastrad the standard definition of signature security). Signatures with a small-order
    194  1.1  riastrad `R` point are now also rejected.
    195  1.1  riastrad  - Some implementations are now slightly faster when using the Clang
    196  1.1  riastrad compiler.
    197  1.1  riastrad  - The HChaCha20 core function was implemented (`crypto_core_hchacha20()`).
    198  1.1  riastrad  - No-op stubs were added for all AES256-GCM public functions even when
    199  1.1  riastrad compiled on non-Intel platforms.
    200  1.1  riastrad  - `crypt_generichash_blake2b_statebytes()` was added.
    201  1.1  riastrad  - New macros were added for the IETF variant of the ChaCha20-Poly1305
    202  1.1  riastrad construction.
    203  1.1  riastrad  - The library can now be compiled on Minix.
    204  1.1  riastrad  - HEASLR is now enabled on MinGW builds.
    205  1.1  riastrad 
    206  1.1  riastrad * Version 1.0.8
    207  1.1  riastrad  - Handle the case where the CPU supports AVX, but we are running
    208  1.1  riastrad on an hypervisor with AVX disabled/not supported.
    209  1.1  riastrad  - Faster (2x) scalarmult_base() when using the ref10 implementation.
    210  1.1  riastrad 
    211  1.1  riastrad * Version 1.0.7
    212  1.1  riastrad  - More functions whose return value should be checked have been
    213  1.1  riastrad tagged with `__attribute__ ((warn_unused_result))`: `crypto_box_easy()`,
    214  1.1  riastrad `crypto_box_detached()`, `crypto_box_beforenm()`, `crypto_box()`, and
    215  1.1  riastrad `crypto_scalarmult()`.
    216  1.1  riastrad  - Sandy2x, the fastest Curve25519 implementation ever, has been
    217  1.1  riastrad merged in, and is automatically used on CPUs supporting the AVX
    218  1.1  riastrad instructions set.
    219  1.1  riastrad  - An SSE2 optimized implementation of Poly1305 was added, and is
    220  1.1  riastrad twice as fast as the portable one.
    221  1.1  riastrad  - An SSSE3 optimized implementation of ChaCha20 was added, and is
    222  1.1  riastrad twice as fast as the portable one.
    223  1.1  riastrad  - Faster `sodium_increment()` for common nonce sizes.
    224  1.1  riastrad  - New helper functions have been added: `sodium_is_zero()` and
    225  1.1  riastrad  `sodium_add()`.
    226  1.1  riastrad  - `sodium_runtime_has_aesni()` now properly detects the CPU flag when
    227  1.1  riastrad  compiled using Visual Studio.
    228  1.1  riastrad 
    229  1.1  riastrad * Version 1.0.6
    230  1.1  riastrad  - Optimized implementations of Blake2 have been added for modern
    231  1.1  riastrad Intel platforms. `crypto_generichash()` is now faster than MD5 and SHA1
    232  1.1  riastrad implementations while being far more secure.
    233  1.1  riastrad  - Functions for which the return value should be checked have been
    234  1.1  riastrad tagged with `__attribute__ ((warn_unused_result))`. This will
    235  1.1  riastrad intentionally break code compiled with `-Werror` that didn't bother
    236  1.1  riastrad checking critical return values.
    237  1.1  riastrad  - The `crypto_sign_edwards25519sha512batch_*()` functions have been
    238  1.1  riastrad tagged as deprecated.
    239  1.1  riastrad  - Undocumented symbols that were exported, but were only useful for
    240  1.1  riastrad internal purposes have been removed or made private:
    241  1.1  riastrad `sodium_runtime_get_cpu_features()`, the implementation-specific
    242  1.1  riastrad `crypto_onetimeauth_poly1305_donna()` symbols,
    243  1.1  riastrad `crypto_onetimeauth_poly1305_set_implementation()`,
    244  1.1  riastrad `crypto_onetimeauth_poly1305_implementation_name()` and
    245  1.1  riastrad `crypto_onetimeauth_pick_best_implementation()`.
    246  1.1  riastrad  - `sodium_compare()` now works as documented, and compares numbers
    247  1.1  riastrad in little-endian format instead of behaving like `memcmp()`.
    248  1.1  riastrad  - The previous changes should not break actual applications, but to be
    249  1.1  riastrad safe, the library version major was incremented.
    250  1.1  riastrad  - `sodium_runtime_has_ssse3()` and `sodium_runtime_has_sse41()` have
    251  1.1  riastrad been added.
    252  1.1  riastrad  - The library can now be compiled with the CompCert compiler.
    253  1.1  riastrad 
    254  1.1  riastrad * Version 1.0.5
    255  1.1  riastrad  - Compilation issues on some platforms were fixed: missing alignment
    256  1.1  riastrad directives were added (required at least on RHEL-6/i386), a workaround
    257  1.1  riastrad for a VRP bug on gcc/armv7 was added, and the library can now be compiled
    258  1.1  riastrad with the SunPro compiler.
    259  1.1  riastrad  - Javascript target: io.js is not supported any more. Use nodejs.
    260  1.1  riastrad 
    261  1.1  riastrad * Version 1.0.4
    262  1.1  riastrad  - Support for AES256-GCM has been added. This requires
    263  1.1  riastrad a CPU with the aesni and pclmul extensions, and is accessible via the
    264  1.1  riastrad crypto_aead_aes256gcm_*() functions.
    265  1.1  riastrad  - The Javascript target doesn't use eval() any more, so that the
    266  1.1  riastrad library can be used in Chrome packaged applications.
    267  1.1  riastrad  - QNX and CloudABI are now supported.
    268  1.1  riastrad  - Support for NaCl has finally been added.
    269  1.1  riastrad  - ChaCha20 with an extended (96 bit) nonce and a 32-bit counter has
    270  1.1  riastrad been implemented as crypto_stream_chacha20_ietf(),
    271  1.1  riastrad crypto_stream_chacha20_ietf_xor() and crypto_stream_chacha20_ietf_xor_ic().
    272  1.1  riastrad An IETF-compatible version of ChaCha20Poly1305 is available as
    273  1.1  riastrad crypto_aead_chacha20poly1305_ietf_npubbytes(),
    274  1.1  riastrad crypto_aead_chacha20poly1305_ietf_encrypt() and
    275  1.1  riastrad crypto_aead_chacha20poly1305_ietf_decrypt().
    276  1.1  riastrad  - The sodium_increment() helper function has been added, to increment
    277  1.1  riastrad an arbitrary large number (such as a nonce).
    278  1.1  riastrad  - The sodium_compare() helper function has been added, to compare
    279  1.1  riastrad arbitrary large numbers (such as nonces, in order to prevent replay
    280  1.1  riastrad attacks).
    281  1.1  riastrad 
    282  1.1  riastrad * Version 1.0.3
    283  1.1  riastrad  - In addition to sodium_bin2hex(), sodium_hex2bin() is now a
    284  1.1  riastrad constant-time function.
    285  1.1  riastrad  - crypto_stream_xsalsa20_ic() has been added.
    286  1.1  riastrad  - crypto_generichash_statebytes(), crypto_auth_*_statebytes() and
    287  1.1  riastrad crypto_hash_*_statebytes() have been added in order to retrieve the
    288  1.1  riastrad size of structures keeping states from foreign languages.
    289  1.1  riastrad  - The JavaScript target doesn't require /dev/urandom or an external
    290  1.1  riastrad randombytes() implementation any more. Other minor Emscripten-related
    291  1.1  riastrad improvements have been made in order to support libsodium.js
    292  1.1  riastrad  - Custom randombytes implementations do not need to provide their own
    293  1.1  riastrad implementation of randombytes_uniform() any more. randombytes_stir()
    294  1.1  riastrad and randombytes_close() can also be NULL pointers if they are not
    295  1.1  riastrad required.
    296  1.1  riastrad  - On Linux, getrandom(2) is being used instead of directly accessing
    297  1.1  riastrad /dev/urandom, if the kernel supports this system call.
    298  1.1  riastrad  - crypto_box_seal() and crypto_box_seal_open() have been added.
    299  1.1  riastrad  - Visual Studio 2015 is now supported.
    300  1.1  riastrad 
    301  1.1  riastrad * Version 1.0.2
    302  1.1  riastrad  - The _easy and _detached APIs now support precalculated keys;
    303  1.1  riastrad crypto_box_easy_afternm(), crypto_box_open_easy_afternm(),
    304  1.1  riastrad crypto_box_detached_afternm() and crypto_box_open_detached_afternm()
    305  1.1  riastrad have been added as an alternative to the NaCl interface.
    306  1.1  riastrad  - Memory allocation functions can now be used on operating systems with
    307  1.1  riastrad no memory protection.
    308  1.1  riastrad  - crypto_sign_open() and crypto_sign_edwards25519sha512batch_open()
    309  1.1  riastrad now accept a NULL pointer instead of a pointer to the message size, if
    310  1.1  riastrad storing this information is not required.
    311  1.1  riastrad  - The close-on-exec flag is now set on the descriptor returned when
    312  1.1  riastrad opening /dev/urandom.
    313  1.1  riastrad  - A libsodium-uninstalled.pc file to use pkg-config even when
    314  1.1  riastrad libsodium is not installed, has been added.
    315  1.1  riastrad  - The iOS target now includes armv7s and arm64 optimized code, as well
    316  1.1  riastrad as i386 and x86_64 code for the iOS simulator.
    317  1.1  riastrad  - sodium_free() can now be called on regions with PROT_NONE protection.
    318  1.1  riastrad  - The Javascript tests can run on Ubuntu, where the node binary was
    319  1.1  riastrad renamed nodejs. io.js can also be used instead of node.
    320  1.1  riastrad 
    321  1.1  riastrad * Version 1.0.1
    322  1.1  riastrad  - DLL_EXPORT was renamed SODIUM_DLL_EXPORT in order to avoid
    323  1.1  riastrad collisions with similar macros defined by other libraries.
    324  1.1  riastrad  - sodium_bin2hex() is now constant-time.
    325  1.1  riastrad  - crypto_secretbox_detached() now supports overlapping input and output
    326  1.1  riastrad regions.
    327  1.1  riastrad  - NaCl's donna_c64 implementation of curve25519 was reading an extra byte
    328  1.1  riastrad past the end of the buffer containing the base point. This has been
    329  1.1  riastrad fixed.
    330  1.1  riastrad 
    331  1.1  riastrad * Version 1.0.0
    332  1.1  riastrad  - The API and ABI are now stable. New features will be added, but
    333  1.1  riastrad backward-compatibility is guaranteed through all the 1.x.y releases.
    334  1.1  riastrad  - crypto_sign() properly works with overlapping regions again. Thanks
    335  1.1  riastrad to @pysiak for reporting this regression introduced in version 0.6.1.
    336  1.1  riastrad  - The test suite has been extended.
    337  1.1  riastrad 
    338  1.1  riastrad * Version 0.7.1 (1.0 RC2)
    339  1.1  riastrad  - This is the second release candidate of Sodium 1.0. Minor
    340  1.1  riastrad compilation, readability and portability changes have been made and the
    341  1.1  riastrad test suite was improved, but the API is the same as the previous release
    342  1.1  riastrad candidate.
    343  1.1  riastrad 
    344  1.1  riastrad * Version 0.7.0 (1.0 RC1)
    345  1.1  riastrad  - Allocating memory to store sensitive data can now be done using
    346  1.1  riastrad sodium_malloc() and sodium_allocarray(). These functions add guard
    347  1.1  riastrad pages around the protected data to make it less likely to be
    348  1.1  riastrad accessible in a heartbleed-like scenario. In addition, the protection
    349  1.1  riastrad for memory regions allocated that way can be changed using
    350  1.1  riastrad sodium_mprotect_noaccess(), sodium_mprotect_readonly() and
    351  1.1  riastrad sodium_mprotect_readwrite().
    352  1.1  riastrad  - ed25519 keys can be converted to curve25519 keys with
    353  1.1  riastrad crypto_sign_ed25519_pk_to_curve25519() and
    354  1.1  riastrad crypto_sign_ed25519_sk_to_curve25519(). This allows using the same
    355  1.1  riastrad keys for signature and encryption.
    356  1.1  riastrad  - The seed and the public key can be extracted from an ed25519 key
    357  1.1  riastrad using crypto_sign_ed25519_sk_to_seed() and crypto_sign_ed25519_sk_to_pk().
    358  1.1  riastrad  - aes256 was removed. A timing-attack resistant implementation might
    359  1.1  riastrad be added later, but not before version 1.0 is tagged.
    360  1.1  riastrad  - The crypto_pwhash_scryptxsalsa208sha256_* compatibility layer was
    361  1.1  riastrad removed. Use crypto_pwhash_scryptsalsa208sha256_*.
    362  1.1  riastrad  - The compatibility layer for implementation-specific functions was
    363  1.1  riastrad removed.
    364  1.1  riastrad  - Compilation issues with Mingw64 on MSYS (not MSYS2) were fixed.
    365  1.1  riastrad  - crypto_pwhash_scryptsalsa208sha256_STRPREFIX was added: it contains
    366  1.1  riastrad the prefix produced by crypto_pwhash_scryptsalsa208sha256_str()
    367  1.1  riastrad 
    368  1.1  riastrad * Version 0.6.1
    369  1.1  riastrad  - Important bug fix: when crypto_sign_open() was given a signed
    370  1.1  riastrad message too short to even contain a signature, it was putting an
    371  1.1  riastrad unlimited amount of zeros into the target buffer instead of
    372  1.1  riastrad immediately returning -1. The bug was introduced in version 0.5.0.
    373  1.1  riastrad  - New API: crypto_sign_detached() and crypto_sign_verify_detached()
    374  1.1  riastrad to produce and verify ed25519 signatures without having to duplicate
    375  1.1  riastrad the message.
    376  1.1  riastrad  - New ./configure switch: --enable-minimal, to create a smaller
    377  1.1  riastrad library, with only the functions required for the high-level API.
    378  1.1  riastrad Mainly useful for the JavaScript target and embedded systems.
    379  1.1  riastrad  - All the symbols are now exported by the Emscripten build script.
    380  1.1  riastrad  - The pkg-config .pc file is now always installed even if the
    381  1.1  riastrad pkg-config tool is not available during the installation.
    382  1.1  riastrad 
    383  1.1  riastrad * Version 0.6.0
    384  1.1  riastrad  - The ChaCha20 stream cipher has been added, as crypto_stream_chacha20_*
    385  1.1  riastrad  - The ChaCha20Poly1305 AEAD construction has been implemented, as
    386  1.1  riastrad crypto_aead_chacha20poly1305_*
    387  1.1  riastrad  - The _easy API does not require any heap allocations any more and
    388  1.1  riastrad does not have any overhead over the NaCl API. With the password
    389  1.1  riastrad hashing function being an obvious exception, the library doesn't
    390  1.1  riastrad allocate and will not allocate heap memory ever.
    391  1.1  riastrad  - crypto_box and crypto_secretbox have a new _detached API to store
    392  1.1  riastrad the authentication tag and the encrypted message separately.
    393  1.1  riastrad  - crypto_pwhash_scryptxsalsa208sha256*() functions have been renamed
    394  1.1  riastrad crypto_pwhash_scryptsalsa208sha256*().
    395  1.1  riastrad  - The low-level crypto_pwhash_scryptsalsa208sha256_ll() function
    396  1.1  riastrad allows setting individual parameters of the scrypt function.
    397  1.1  riastrad  - New macros and functions for recommended crypto_pwhash_* parameters
    398  1.1  riastrad have been added.
    399  1.1  riastrad  - Similarly to crypto_sign_seed_keypair(), crypto_box_seed_keypair()
    400  1.1  riastrad has been introduced to deterministically generate a key pair from a seed.
    401  1.1  riastrad  - crypto_onetimeauth() now provides a streaming interface.
    402  1.1  riastrad  - crypto_stream_chacha20_xor_ic() and crypto_stream_salsa20_xor_ic()
    403  1.1  riastrad have been added to use a non-zero initial block counter.
    404  1.1  riastrad  - On Windows, CryptGenRandom() was replaced by RtlGenRandom(), which
    405  1.1  riastrad doesn't require the Crypt API.
    406  1.1  riastrad  - The high bit in curve25519 is masked instead of processing the key as
    407  1.1  riastrad a 256-bit value.
    408  1.1  riastrad  - The curve25519 ref implementation was replaced by the latest ref10
    409  1.1  riastrad implementation from Supercop.
    410  1.1  riastrad  - sodium_mlock() now prevents memory from being included in coredumps
    411  1.1  riastrad on Linux 3.4+
    412  1.1  riastrad 
    413  1.1  riastrad * Version 0.5.0
    414  1.1  riastrad  - sodium_mlock()/sodium_munlock() have been introduced to lock pages
    415  1.1  riastrad in memory before storing sensitive data, and to zero them before
    416  1.1  riastrad unlocking them.
    417  1.1  riastrad  - High-level wrappers for crypto_box and crypto_secretbox
    418  1.1  riastrad (crypto_box_easy and crypto_secretbox_easy) can be used to avoid
    419  1.1  riastrad dealing with the specific memory layout regular functions depend on.
    420  1.1  riastrad  - crypto_pwhash_scryptsalsa208sha256* functions have been added
    421  1.1  riastrad to derive a key from a password, and for password storage.
    422  1.1  riastrad  - Salsa20 and ed25519 implementations now support overlapping
    423  1.1  riastrad inputs/keys/outputs (changes imported from supercop-20140505).
    424  1.1  riastrad  - New build scripts for Visual Studio, Emscripten, different Android
    425  1.1  riastrad architectures and msys2 are available.
    426  1.1  riastrad  - The poly1305-53 implementation has been replaced with Floodyberry's
    427  1.1  riastrad poly1305-donna32 and poly1305-donna64 implementations.
    428  1.1  riastrad  - sodium_hex2bin() has been added to complement sodium_bin2hex().
    429  1.1  riastrad  - On OpenBSD and Bitrig, arc4random() is used instead of reading
    430  1.1  riastrad /dev/urandom.
    431  1.1  riastrad  - crypto_auth_hmac_sha512() has been implemented.
    432  1.1  riastrad  - sha256 and sha512 now have a streaming interface.
    433  1.1  riastrad  - hmacsha256, hmacsha512 and hmacsha512256 now support keys of
    434  1.1  riastrad arbitrary length, and have a streaming interface.
    435  1.1  riastrad  - crypto_verify_64() has been implemented.
    436  1.1  riastrad  - first-class Visual Studio build system, thanks to @evoskuil
    437  1.1  riastrad  - CPU features are now detected at runtime.
    438  1.1  riastrad 
    439  1.1  riastrad * Version 0.4.5
    440  1.1  riastrad  - Restore compatibility with OSX <= 10.6
    441  1.1  riastrad 
    442  1.1  riastrad * Version 0.4.4
    443  1.1  riastrad  - Visual Studio is officially supported (VC 2010 & VC 2013)
    444  1.1  riastrad  - mingw64 is now supported
    445  1.1  riastrad  - big-endian architectures are now supported as well
    446  1.1  riastrad  - The donna_c64 implementation of curve25519_donna_c64 now handles
    447  1.1  riastrad non-canonical points like the ref implementation
    448  1.1  riastrad  - Missing scalarmult_curve25519 and stream_salsa20 constants are now exported
    449  1.1  riastrad  - A crypto_onetimeauth_poly1305_ref() wrapper has been added
    450  1.1  riastrad 
    451  1.1  riastrad * Version 0.4.3
    452  1.1  riastrad  - crypto_sign_seedbytes() and crypto_sign_SEEDBYTES were added.
    453  1.1  riastrad  - crypto_onetimeauth_poly1305_implementation_name() was added.
    454  1.1  riastrad  - poly1305-ref has been replaced by a faster implementation,
    455  1.1  riastrad Floodyberry's poly1305-donna-unrolled.
    456  1.1  riastrad  - Stackmarkings have been added to assembly code, for Hardened Gentoo.
    457  1.1  riastrad  - pkg-config can now be used in order to retrieve compilations flags for
    458  1.1  riastrad using libsodium.
    459  1.1  riastrad  - crypto_stream_aes256estream_*() can now deal with unaligned input
    460  1.1  riastrad on platforms that require word alignment.
    461  1.1  riastrad  - portability improvements.
    462  1.1  riastrad 
    463  1.1  riastrad * Version 0.4.2
    464  1.1  riastrad  - All NaCl constants are now also exposed as functions.
    465  1.1  riastrad  - The Android and iOS cross-compilation script have been improved.
    466  1.1  riastrad  - libsodium can now be cross-compiled to Windows from Linux.
    467  1.1  riastrad  - libsodium can now be compiled with emscripten.
    468  1.1  riastrad  - New convenience function (prototyped in utils.h): sodium_bin2hex().
    469  1.1  riastrad 
    470  1.1  riastrad * Version 0.4.1
    471  1.1  riastrad  - sodium_version_*() functions were not exported in version 0.4. They
    472  1.1  riastrad are now visible as intended.
    473  1.1  riastrad  - sodium_init() now calls randombytes_stir().
    474  1.1  riastrad  - optimized assembly version of salsa20 is now used on amd64.
    475  1.1  riastrad  - further cleanups and enhanced compatibility with non-C99 compilers.
    476  1.1  riastrad 
    477  1.1  riastrad * Version 0.4
    478  1.1  riastrad  - Most constants and operations are now available as actual functions
    479  1.1  riastrad instead of macros, making it easier to use from other languages.
    480  1.1  riastrad  - New operation: crypto_generichash, featuring a variable key size, a
    481  1.1  riastrad variable output size, and a streaming API. Currently implemented using
    482  1.1  riastrad Blake2b.
    483  1.1  riastrad  - The package can be compiled in a separate directory.
    484  1.1  riastrad  - aes128ctr functions are exported.
    485  1.1  riastrad  - Optimized versions of curve25519 (curve25519_donna_c64), poly1305
    486  1.1  riastrad (poly1305_53) and ed25519 (ed25519_ref10) are available. Optionally calling
    487  1.1  riastrad sodium_init() once before using the library makes it pick the fastest
    488  1.1  riastrad implementation.
    489  1.1  riastrad  - New convenience function: sodium_memzero() in order to securely
    490  1.1  riastrad wipe a memory area.
    491  1.1  riastrad  - A whole bunch of cleanups and portability enhancements.
    492  1.1  riastrad  - On Windows, a .REF file is generated along with the shared library,
    493  1.1  riastrad for use with Visual Studio. The installation path for these has become
    494  1.1  riastrad $prefix/bin as expected by MingW.
    495  1.1  riastrad 
    496  1.1  riastrad * Version 0.3
    497  1.1  riastrad  - The crypto_shorthash operation has been added, implemented using
    498  1.1  riastrad SipHash-2-4.
    499  1.1  riastrad 
    500  1.1  riastrad * Version 0.2
    501  1.1  riastrad  - crypto_sign_seed_keypair() has been added
    502  1.1  riastrad 
    503  1.1  riastrad * Version 0.1
    504  1.1  riastrad  - Initial release.
    505  1.1  riastrad 
    506