| 1 |
* Version 1.0.20-stable |
| 2 |
- The Fil-C compiler is supported out of the box |
| 3 |
- MSVC 2026 (Visual Studio 2026) is now supported |
| 4 |
- Performance of AES256-GCM and AEGIS on ARM has been improved |
| 5 |
with some compilers |
| 6 |
- Android binaries have been added to the NuGet package |
| 7 |
- Windows ARM binaries have been added to the NuGet package |
| 8 |
- The Android build script has been improved. The base SDK is |
| 9 |
now 27c, and the default platform is 21, supporting 16 KB page sizes. |
| 10 |
- The library can now be compiled with Zig 0.15 and Zig 0.16 |
| 11 |
- Zig builds now generate position-independent static libraries by |
| 12 |
default on targets that support PIC |
| 13 |
- arm64e builds have been added to the XCFramework packages |
| 14 |
- XCFramework packages are now full builds instead of minimal |
| 15 |
builds |
| 16 |
- MSVC builds have been enabled for ARM64 |
| 17 |
- iOS 32-bit (armv7/armv7s) support has been removed from the |
| 18 |
XCFramework build script |
| 19 |
- Security: optblockers have been introduced in critical code paths |
| 20 |
to prevent compilers from introducing unwanted side channels via |
| 21 |
conditional jumps. This was observed on RISC-V targets with specific |
| 22 |
compilers and options. |
| 23 |
- Security: `crypto_core_ed25519_is_valid_point()` now properly |
| 24 |
rejects small-order points that are not in the main subgroup |
| 25 |
- `((nonnull))` attributes have been relaxed on some `crypto_stream*` |
| 26 |
functions to allow NULL output buffers when the output length is zero |
| 27 |
- A cross-compilation issue with old clang versions has been |
| 28 |
fixed |
| 29 |
- 16K page sizes are now supported on Android |
| 30 |
- JavaScript: support for Cloudflare Workers has been added |
| 31 |
- JavaScript: WASM_BIGINT is forcibly disabled to retain |
| 32 |
compatibility with older runtimes |
| 33 |
- A compilation issue with old toolchains on Solaris has been |
| 34 |
fixed |
| 35 |
- `crypto_aead_aes256gcm_is_available` is exported to JavaScript |
| 36 |
- libsodium is now compatible with Emscripten 4.x |
| 37 |
|
| 38 |
* Version 1.0.20 |
| 39 |
This point release includes all the changes from 1.0.19-stable, |
| 40 |
mainly addressing compilation issues and improvements to the .NET |
| 41 |
packages. |
| 42 |
|
| 43 |
* Version 1.0.19-stable |
| 44 |
- Building with `zig build` now requires Zig 0.12. |
| 45 |
- When using the traditional build system, -O3 is used instead of -Ofast. |
| 46 |
- Improved detection of the compiler flags required on aarch64. |
| 47 |
- Improved compatibility with custom build systems on aarch64. |
| 48 |
- apple-xcframework: VisionOS packages are not built if Xcode doesn't |
| 49 |
include that SDK. |
| 50 |
- `crypto_kdf_hkdf_sha512_statebytes()` was added. |
| 51 |
- When using Visual Studio, runtime CPU feature detection is now enabled |
| 52 |
on Windows/aarch64. |
| 53 |
- There were issues with C++ guards affecting usage of libsodium |
| 54 |
using Swift on Windows. This has been fixed. |
| 55 |
- Emscripten: `crypto_aead_aegis*()` functions are now exported in |
| 56 |
JavaScript builds |
| 57 |
- Emscripten: unsupported `--memory-init-file` option has been removed. |
| 58 |
- apple-xcframework: the minimal deployment target can be set to iOS 11+. |
| 59 |
- .NET packages now include precompiled libraries for Windows/arm64, |
| 60 |
iOS, TvOS and Catalyst. |
| 61 |
- .NET precompiled libraries now work on any CPUs, using only runtime |
| 62 |
feature detection. |
| 63 |
- SYSV assembly should not be used when targeting Windows (reported by |
| 64 |
@meiyese, thanks!) |
| 65 |
- Compatibility issues with LLVM 18 and AVX512 have been addressed. |
| 66 |
- GitHub attestation build provenance are now added to NuGet packages. |
| 67 |
- JavaScript tests can now use Bun as an alternative to Node. |
| 68 |
|
| 69 |
* Version 1.0.19 |
| 70 |
This release includes all the changes from 1.0.18-stable, as well as two |
| 71 |
additions: |
| 72 |
|
| 73 |
- New AEADs: AEGIS-128L and AEGIS-256 are now available in the |
| 74 |
`crypto_aead_aegis128l_*()` and `crypto_aead_aegis256_*()` namespaces. |
| 75 |
AEGIS is a family of authenticated ciphers for high-performance applications, |
| 76 |
leveraging hardware AES acceleration on `x86_64` and `aarch64`. In addition |
| 77 |
to performance, AEGIS ciphers have unique properties making them easier and |
| 78 |
safer to use than AES-GCM. They can also be used as high-performance MACs. |
| 79 |
- The HKDF key derivation mechanism, required by many standard protocols, is |
| 80 |
now available in the `crypto_kdf_hkdf_*()` namespace. It is implemented for |
| 81 |
the SHA-256 and SHA-512 hash functions. |
| 82 |
- The `osx.sh` build script was renamed to `macos.sh`. |
| 83 |
- Support for android-mips was removed. |
| 84 |
|
| 85 |
* Version 1.0.18-stable |
| 86 |
- Visual Studio: support for Windows/ARM64 builds has been added. |
| 87 |
- Visual Studio: AVX512 implementations are enabled on supported CPUs. |
| 88 |
- Visual Studio: an MSVC 2022 solution was added. |
| 89 |
- Apple XCFramework: support for VisionOS was added. |
| 90 |
- Apple XCFramework: support for Catalyst was added. |
| 91 |
- Apple XCFramework: building the simulators is now optional. |
| 92 |
- iOS: bitcode is not generated any more, as it was deprecated by Apple. |
| 93 |
- watchOS: support for arm64 was added. |
| 94 |
- The Zig toolchain can now be used as a modern build system to replace |
| 95 |
autoconf/automake/libtool/make/ccache and the compiler. This enables faster |
| 96 |
compilation times, easier cross compilation, and static libraries optimized |
| 97 |
for any CPU. |
| 98 |
- The Zig toolchain is now the recommended way to compile `libsodium` |
| 99 |
to WebAssembly/WASI(X). |
| 100 |
- libsodium can now be added as a dependency to Zig projects. |
| 101 |
- Memory fences were added to remove some gadgets that could be used |
| 102 |
alongside speculative loads. |
| 103 |
- The AES-GCM implementation was completely rewritten. It is now faster, |
| 104 |
and also available on aarch64, including Windows/ARM64. |
| 105 |
- Compatibility with CET instrumentation / IBT / Shadow Stack was added. |
| 106 |
- Emscripten: the `crypto_pwhash_*()` functions have been removed from Sumo |
| 107 |
builds, as they reserve a substantial amount of JavaScript memory, even when |
| 108 |
not used. |
| 109 |
- Benchmarks now use `CLOCK_MONOTONIC` if possible. |
| 110 |
- WebAssembly: tests can now run using Bun, WasmEdge, Wazero, wasm3 and |
| 111 |
wasmer-js. Support for WAVM and Lucet have been removed, as these projects |
| 112 |
have reached EOL. |
| 113 |
- .NET: the minimum supported macOS version is now 1.0.15; this matches |
| 114 |
Microsoft guidelines. |
| 115 |
- .NET: all the packages are now built using Zig, on all platforms. This |
| 116 |
allows us to easily match Microsoft's requirements, including supported glibc |
| 117 |
versions. However, on x86_64, targets are expected to support at least the |
| 118 |
AVX instruction set. |
| 119 |
- .NET: packages for ARM64 are now available. |
| 120 |
- C23 `memset_explicit()` is now used, when available. |
| 121 |
- Compilation now uses `-Ofast` or `-O3` instead of `-O2` by default. |
| 122 |
- Portability improvements to help compile libsodium to modern game consoles. |
| 123 |
- JavaScript: a default `unhandledRejection` handler is not set any more. |
| 124 |
- Slightly faster 25519 operations. |
| 125 |
- OpenBSD: leverage `MAP_CONCEAL`. |
| 126 |
|
| 127 |
* Version 1.0.18 |
| 128 |
- Enterprise versions of Visual Studio are now supported. |
| 129 |
- Visual Studio 2019 is now supported. |
| 130 |
- 32-bit binaries for Visual Studio 2010 are now provided. |
| 131 |
- A test designed to trigger an OOM condition didn't work on Linux systems |
| 132 |
with memory overcommit turned on. It has been removed in order to fix |
| 133 |
Ansible builds. |
| 134 |
- Emscripten: `print` and `printErr` functions are overridden to send |
| 135 |
errors to the console, if there is one. |
| 136 |
- Emscripten: `UTF8ToString()` is now exported since `Pointer_stringify()` |
| 137 |
has been deprecated. |
| 138 |
- Libsodium version detection has been fixed in the CMake recipe. |
| 139 |
- Generic hashing got a 10% speedup on AVX2. |
| 140 |
- New target: WebAssembly/WASI (compile with `dist-builds/wasm32-wasi.sh`). |
| 141 |
- New functions to map a hash to an edwards25519 point or get a random point: |
| 142 |
`core_ed25519_from_hash()` and `core_ed25519_random()`. |
| 143 |
- `crypto_core_ed25519_scalar_mul()` has been implemented for |
| 144 |
`scalar*scalar (mod L)` multiplication. |
| 145 |
- Support for the Ristretto group has been implemented for interoperability |
| 146 |
with wasm-crypto. |
| 147 |
- Improvements have been made to the test suite. |
| 148 |
- Portability improvements have been made. |
| 149 |
- `getentropy()` is now used on systems providing this system call. |
| 150 |
- `randombytes_salsa20` has been renamed to `randombytes_internal`. |
| 151 |
- Support for NativeClient has been removed. |
| 152 |
- Most `((nonnull))` attributes have been relaxed to allow 0-length inputs |
| 153 |
to be `NULL`. |
| 154 |
- The `-ftree-vectorize` and `-ftree-slp-vectorize` compiler switches are |
| 155 |
now used, if available, for optimized builds. |
| 156 |
|
| 157 |
* Version 1.0.17-stable |
| 158 |
- AVX512 detection has been improved. |
| 159 |
- A compilation option was added to enable retpoline support. |
| 160 |
- `-ftls-model=global-dynamic` is now set, if available. |
| 161 |
- Portability and documentation improvements. |
| 162 |
|
| 163 |
* Version 1.0.17 |
| 164 |
- Bug fix: `sodium_pad()` didn't properly support block sizes >= 256 bytes. |
| 165 |
- JS/WebAssembly: some old iOS versions can't instantiate the WebAssembly |
| 166 |
module; fall back to Javascript on these. |
| 167 |
- JS/WebAssembly: compatibility with newer Emscripten versions. |
| 168 |
- Bug fix: `crypto_pwhash_scryptsalsa208sha256_str_verify()` and |
| 169 |
`crypto_pwhash_scryptsalsa208sha256_str_needs_rehash()` didn't return |
| 170 |
`EINVAL` on input strings with a short length, unlike their high-level |
| 171 |
counterpart. |
| 172 |
- Added a workaround for Visual Studio 2010 bug causing CPU features |
| 173 |
not to be detected. |
| 174 |
- Portability improvements. |
| 175 |
- Test vectors from Project Wycheproof have been added. |
| 176 |
- New low-level APIs for arithmetic mod the order of the prime order group: |
| 177 |
`crypto_core_ed25519_scalar_random()`, `crypto_core_ed25519_scalar_reduce()`, |
| 178 |
`crypto_core_ed25519_scalar_invert()`, `crypto_core_ed25519_scalar_negate()`, |
| 179 |
`crypto_core_ed25519_scalar_complement()`, `crypto_core_ed25519_scalar_add()` |
| 180 |
and `crypto_core_ed25519_scalar_sub()`. |
| 181 |
- New low-level APIs for scalar multiplication without clamping: |
| 182 |
`crypto_scalarmult_ed25519_base_noclamp()` and |
| 183 |
`crypto_scalarmult_ed25519_noclamp()`. These new APIs are especially useful |
| 184 |
for blinding. |
| 185 |
- `sodium_sub()` has been implemented. |
| 186 |
- Support for WatchOS has been added. |
| 187 |
- getrandom(2) is now used on FreeBSD 12+. |
| 188 |
- The `nonnull` attribute has been added to all relevant prototypes. |
| 189 |
- More reliable AVX512 detection. |
| 190 |
- Javascript/Webassembly builds now use dynamic memory growth. |
| 191 |
|
| 192 |
* Version 1.0.16 |
| 193 |
- Signatures computations and verifications are now way faster on |
| 194 |
64-bit platforms with compilers supporting 128-bit arithmetic (gcc, |
| 195 |
clang, icc). This includes the WebAssembly target. |
| 196 |
- New low-level APIs for computations over edwards25519: |
| 197 |
`crypto_scalarmult_ed25519()`, `crypto_scalarmult_ed25519_base()`, |
| 198 |
`crypto_core_ed25519_is_valid_point()`, `crypto_core_ed25519_add()`, |
| 199 |
`crypto_core_ed25519_sub()` and `crypto_core_ed25519_from_uniform()` |
| 200 |
(elligator representative to point). |
| 201 |
- `crypto_sign_open()`, `crypto_sign_verify_detached() and |
| 202 |
`crypto_sign_edwards25519sha512batch_open` now reject public keys in |
| 203 |
non-canonical form in addition to low-order points. |
| 204 |
- The library can be built with `ED25519_NONDETERMINISTIC` defined in |
| 205 |
order to use synthetic nonces for EdDSA. This is disabled by default. |
| 206 |
- Webassembly: `crypto_pwhash_*()` functions are now included in |
| 207 |
non-sumo builds. |
| 208 |
- `sodium_stackzero()` was added to wipe content off the stack. |
| 209 |
- Android: support new SDKs where unified headers have become the |
| 210 |
default. |
| 211 |
- The Salsa20-based PRNG example is now thread-safe on platforms with |
| 212 |
support for thread-local storage, optionally mixes bits from RDRAND. |
| 213 |
- CMAKE: static library detection on Unix systems has been improved |
| 214 |
(thanks to @BurningEnlightenment, @nibua-r, @mellery451) |
| 215 |
- Argon2 and scrypt are slightly faster on Linux. |
| 216 |
|
| 217 |
* Version 1.0.15 |
| 218 |
- The default password hashing algorithm is now Argon2id. The |
| 219 |
`pwhash_str_verify()` function can still verify Argon2i hashes |
| 220 |
without any changes, and `pwhash()` can still compute Argon2i hashes |
| 221 |
as well. |
| 222 |
- The aes128ctr primitive was removed. It was slow, non-standard, not |
| 223 |
authenticated, and didn't seem to be used by any opensource project. |
| 224 |
- Argon2id required at least 3 passes like Argon2i, despite a minimum |
| 225 |
of `1` as defined by the `OPSLIMIT_MIN` constant. This has been fixed. |
| 226 |
- The secretstream construction was slightly changed to be consistent |
| 227 |
with forthcoming variants. |
| 228 |
- The Javascript and Webassembly versions have been merged, and the |
| 229 |
module now returns a `.ready` promise that will resolve after the |
| 230 |
Webassembly code is loaded and compiled. |
| 231 |
- Note that due to these incompatible changes, the library version |
| 232 |
major was bumped up. |
| 233 |
|
| 234 |
* Version 1.0.14 |
| 235 |
- iOS binaries should now be compatible with WatchOS and TVOS. |
| 236 |
- WebAssembly is now officially supported. Special thanks to |
| 237 |
@facekapow and @pepyakin who helped to make it happen. |
| 238 |
- Internal consistency checks failing and primitives used with |
| 239 |
dangerous/out-of-bounds/invalid parameters used to call abort(3). |
| 240 |
Now, a custom handler *that doesn't return* can be set with the |
| 241 |
`set_sodium_misuse()` function. It still aborts by default or if the |
| 242 |
handler ever returns. This is not a replacement for non-fatal, |
| 243 |
expected runtime errors. This handler will be only called in |
| 244 |
unexpected situations due to potential bugs in the library or in |
| 245 |
language bindings. |
| 246 |
- `*_MESSAGEBYTES_MAX` macros (and the corresponding |
| 247 |
`_messagebytes_max()` symbols) have been added to represent the |
| 248 |
maximum message size that can be safely handled by a primitive. |
| 249 |
Language bindings are encouraged to check user inputs against these |
| 250 |
maximum lengths. |
| 251 |
- The test suite has been extended to cover more edge cases. |
| 252 |
- crypto_sign_ed25519_pk_to_curve25519() now rejects points that are |
| 253 |
not on the curve, or not in the main subgroup. |
| 254 |
- Further changes have been made to ensure that smart compilers will |
| 255 |
not optimize out code that we don't want to be optimized. |
| 256 |
- Visual Studio solutions are now included in distribution tarballs. |
| 257 |
- The `sodium_runtime_has_*` symbols for CPU features detection are |
| 258 |
now defined as weak symbols, i.e. they can be replaced with an |
| 259 |
application-defined implementation. This can be useful to disable |
| 260 |
AVX* when temperature/power consumption is a concern. |
| 261 |
- `crypto_kx_*()` now aborts if called with no non-NULL pointers to |
| 262 |
store keys to. |
| 263 |
- SSE2 implementations of `crypto_verify_*()` have been added. |
| 264 |
- Passwords can be hashed using a specific algorithm with the new |
| 265 |
`crypto_pwhash_str_alg()` function. |
| 266 |
- Due to popular demand, base64 encoding (`sodium_bin2base64()`) and |
| 267 |
decoding (`sodium_base642bin()`) have been implemented. |
| 268 |
- A new `crypto_secretstream_*()` API was added to safely encrypt files |
| 269 |
and multi-part messages. |
| 270 |
- The `sodium_pad()` and `sodium_unpad()` helper functions have been |
| 271 |
added in order to add & remove padding. |
| 272 |
- An AVX512 optimized implementation of Argon2 has been added (written |
| 273 |
by Ondrej Mosnáček, thanks!) |
| 274 |
- The `crypto_pwhash_str_needs_rehash()` function was added to check if |
| 275 |
a password hash string matches the given parameters, or if it needs an |
| 276 |
update. |
| 277 |
- The library can now be compiled with recent versions of |
| 278 |
emscripten/binaryen that don't allow multiple variables declarations |
| 279 |
using a single `var` statement. |
| 280 |
|
| 281 |
* Version 1.0.13 |
| 282 |
- Javascript: the sumo builds now include all symbols. They were |
| 283 |
previously limited to symbols defined in minimal builds. |
| 284 |
- The public `crypto_pwhash_argon2i_MEMLIMIT_MAX` constant was |
| 285 |
incorrectly defined on 32-bit platforms. This has been fixed. |
| 286 |
- Version 1.0.12 didn't compile on OpenBSD/i386 using the base gcc |
| 287 |
compiler. This has been fixed. |
| 288 |
- The Android compilation scripts have been updated for NDK r14b. |
| 289 |
- armv7s-optimized code was re-added to iOS builds. |
| 290 |
- An AVX2 optimized implementation of the Argon2 round function was |
| 291 |
added. |
| 292 |
- The Argon2id variant of Argon2 has been implemented. The |
| 293 |
high-level `crypto_pwhash_str_verify()` function automatically detects |
| 294 |
the algorithm and can verify both Argon2i and Argon2id hashed passwords. |
| 295 |
The default algorithm for newly hashed passwords remains Argon2i in |
| 296 |
this version to avoid breaking compatibility with verifiers running |
| 297 |
libsodium <= 1.0.12. |
| 298 |
- A `crypto_box_curve25519xchacha20poly1305_seal*()` function set was |
| 299 |
implemented. |
| 300 |
- scrypt was removed from minimal builds. |
| 301 |
- libsodium is now available on NuGet. |
| 302 |
|
| 303 |
* Version 1.0.12 |
| 304 |
- Ed25519ph was implemented, adding a multi-part signature API |
| 305 |
(`crypto_sign_init()`, `crypto_sign_update()`, `crypto_sign_final_*()`). |
| 306 |
- New constants and related accessors have been added for Scrypt and |
| 307 |
Argon2. |
| 308 |
- XChaCha20 has been implemented. Like XSalsa20, this construction |
| 309 |
extends the ChaCha20 cipher to accept a 192-bit nonce. This makes it safe |
| 310 |
to use ChaCha20 with random nonces. |
| 311 |
- `crypto_secretbox`, `crypto_box` and `crypto_aead` now offer |
| 312 |
variants leveraging XChaCha20. |
| 313 |
- SHA-2 is about 20% faster, which also gives a speed boost to |
| 314 |
signature and signature verification. |
| 315 |
- AVX2 implementations of Salsa20 and ChaCha20 have been added. They |
| 316 |
are twice as fast as the SSE2 implementations. The speed gain is |
| 317 |
even more significant on Windows, that previously didn't use |
| 318 |
vectorized implementations. |
| 319 |
- New high-level API: `crypto_kdf`, to easily derive one or more |
| 320 |
subkeys from a master key. |
| 321 |
- Siphash with a 128-bit output has been implemented, and is |
| 322 |
available as `crypto_shorthash_siphashx_*`. |
| 323 |
- New `*_keygen()` helpers functions have been added to create secret |
| 324 |
keys for all constructions. This improves code clarity and can prevent keys |
| 325 |
from being partially initialized. |
| 326 |
- A new `randombytes_buf_deterministic()` function was added to |
| 327 |
deterministically fill a memory region with pseudorandom data. This |
| 328 |
function can especially be useful to write reproducible tests. |
| 329 |
- A preliminary `crypto_kx_*()` API was added to compute shared session |
| 330 |
keys. |
| 331 |
- AVX2 detection is more reliable. |
| 332 |
- The pthreads library is not required any more when using MingW. |
| 333 |
- `contrib/Findsodium.cmake` was added as an example to include |
| 334 |
libsodium in a project using cmake. |
| 335 |
- Compatibility with gcc 2.x has been restored. |
| 336 |
- Minimal builds can be checked using `sodium_library_minimal()`. |
| 337 |
- The `--enable-opt` compilation switch has become compatible with more |
| 338 |
platforms. |
| 339 |
- Android builds are now using clang on platforms where it is |
| 340 |
available. |
| 341 |
|
| 342 |
* Version 1.0.11 |
| 343 |
- `sodium_init()` is now thread-safe, and can be safely called multiple |
| 344 |
times. |
| 345 |
- Android binaries now properly support 64-bit Android, targeting |
| 346 |
platform 24, but without breaking compatibility with platforms 16 and |
| 347 |
21. |
| 348 |
- Better support for old gcc versions. |
| 349 |
- On FreeBSD, core dumps are disabled on regions allocated with |
| 350 |
sodium allocation functions. |
| 351 |
- AVX2 detection was fixed, resulting in faster Blake2b hashing on |
| 352 |
platforms where it was not properly detected. |
| 353 |
- The Sandy2x Curve25519 implementation was not as fast as expected |
| 354 |
on some platforms. This has been fixed. |
| 355 |
- The NativeClient target was improved. Most notably, it now supports |
| 356 |
optimized implementations, and uses pepper_49 by default. |
| 357 |
- The library can be compiled with recent Emscripten versions. |
| 358 |
Changes have been made to produce smaller code, and the default heap |
| 359 |
size was reduced in the standard version. |
| 360 |
- The code can now be compiled on SLES11 service pack 4. |
| 361 |
- Decryption functions can now accept a NULL pointer for the output. |
| 362 |
This checks the MAC without writing the decrypted message. |
| 363 |
- crypto_generichash_final() now returns -1 if called twice. |
| 364 |
- Support for Visual Studio 2008 was improved. |
| 365 |
|
| 366 |
* Version 1.0.10 |
| 367 |
- This release only fixes a compilation issue reported with some older |
| 368 |
gcc versions. There are no functional changes over the previous release. |
| 369 |
|
| 370 |
* Version 1.0.9 |
| 371 |
- The Javascript target now includes a `--sumo` option to include all |
| 372 |
the symbols of the original C library. |
| 373 |
- A detached API was added to the ChaCha20-Poly1305 and AES256-GCM |
| 374 |
implementations. |
| 375 |
- The Argon2i password hashing function was added, and is accessible |
| 376 |
directly and through a new, high-level `crypto_pwhash` API. The scrypt |
| 377 |
function remains available as well. |
| 378 |
- A speed-record AVX2 implementation of BLAKE2b was added (thanks to |
| 379 |
Samuel Neves). |
| 380 |
- The library can now be compiled using C++Builder (thanks to @jcolli44) |
| 381 |
- Countermeasures for Ed25519 signatures malleability have been added |
| 382 |
to match the irtf-cfrg-eddsa draft (note that malleability is irrelevant to |
| 383 |
the standard definition of signature security). Signatures with a small-order |
| 384 |
`R` point are now also rejected. |
| 385 |
- Some implementations are now slightly faster when using the Clang |
| 386 |
compiler. |
| 387 |
- The HChaCha20 core function was implemented (`crypto_core_hchacha20()`). |
| 388 |
- No-op stubs were added for all AES256-GCM public functions even when |
| 389 |
compiled on non-Intel platforms. |
| 390 |
- `crypt_generichash_blake2b_statebytes()` was added. |
| 391 |
- New macros were added for the IETF variant of the ChaCha20-Poly1305 |
| 392 |
construction. |
| 393 |
- The library can now be compiled on Minix. |
| 394 |
- HEASLR is now enabled on MinGW builds. |
| 395 |
|
| 396 |
* Version 1.0.8 |
| 397 |
- Handle the case where the CPU supports AVX, but we are running |
| 398 |
on an hypervisor with AVX disabled/not supported. |
| 399 |
- Faster (2x) scalarmult_base() when using the ref10 implementation. |
| 400 |
|
| 401 |
* Version 1.0.7 |
| 402 |
- More functions whose return value should be checked have been |
| 403 |
tagged with `__attribute__ ((warn_unused_result))`: `crypto_box_easy()`, |
| 404 |
`crypto_box_detached()`, `crypto_box_beforenm()`, `crypto_box()`, and |
| 405 |
`crypto_scalarmult()`. |
| 406 |
- Sandy2x, the fastest Curve25519 implementation ever, has been |
| 407 |
merged in, and is automatically used on CPUs supporting the AVX |
| 408 |
instructions set. |
| 409 |
- An SSE2 optimized implementation of Poly1305 was added, and is |
| 410 |
twice as fast as the portable one. |
| 411 |
- An SSSE3 optimized implementation of ChaCha20 was added, and is |
| 412 |
twice as fast as the portable one. |
| 413 |
- Faster `sodium_increment()` for common nonce sizes. |
| 414 |
- New helper functions have been added: `sodium_is_zero()` and |
| 415 |
`sodium_add()`. |
| 416 |
- `sodium_runtime_has_aesni()` now properly detects the CPU flag when |
| 417 |
compiled using Visual Studio. |
| 418 |
|
| 419 |
* Version 1.0.6 |
| 420 |
- Optimized implementations of Blake2 have been added for modern |
| 421 |
Intel platforms. `crypto_generichash()` is now faster than MD5 and SHA1 |
| 422 |
implementations while being far more secure. |
| 423 |
- Functions for which the return value should be checked have been |
| 424 |
tagged with `__attribute__ ((warn_unused_result))`. This will |
| 425 |
intentionally break code compiled with `-Werror` that didn't bother |
| 426 |
checking critical return values. |
| 427 |
- The `crypto_sign_edwards25519sha512batch_*()` functions have been |
| 428 |
tagged as deprecated. |
| 429 |
- Undocumented symbols that were exported, but were only useful for |
| 430 |
internal purposes have been removed or made private: |
| 431 |
`sodium_runtime_get_cpu_features()`, the implementation-specific |
| 432 |
`crypto_onetimeauth_poly1305_donna()` symbols, |
| 433 |
`crypto_onetimeauth_poly1305_set_implementation()`, |
| 434 |
`crypto_onetimeauth_poly1305_implementation_name()` and |
| 435 |
`crypto_onetimeauth_pick_best_implementation()`. |
| 436 |
- `sodium_compare()` now works as documented, and compares numbers |
| 437 |
in little-endian format instead of behaving like `memcmp()`. |
| 438 |
- The previous changes should not break actual applications, but to be |
| 439 |
safe, the library version major was incremented. |
| 440 |
- `sodium_runtime_has_ssse3()` and `sodium_runtime_has_sse41()` have |
| 441 |
been added. |
| 442 |
- The library can now be compiled with the CompCert compiler. |
| 443 |
|
| 444 |
* Version 1.0.5 |
| 445 |
- Compilation issues on some platforms were fixed: missing alignment |
| 446 |
directives were added (required at least on RHEL-6/i386), a workaround |
| 447 |
for a VRP bug on gcc/armv7 was added, and the library can now be compiled |
| 448 |
with the SunPro compiler. |
| 449 |
- Javascript target: io.js is not supported any more. Use nodejs. |
| 450 |
|
| 451 |
* Version 1.0.4 |
| 452 |
- Support for AES256-GCM has been added. This requires |
| 453 |
a CPU with the aesni and pclmul extensions, and is accessible via the |
| 454 |
crypto_aead_aes256gcm_*() functions. |
| 455 |
- The Javascript target doesn't use eval() any more, so that the |
| 456 |
library can be used in Chrome packaged applications. |
| 457 |
- QNX and CloudABI are now supported. |
| 458 |
- Support for NaCl has finally been added. |
| 459 |
- ChaCha20 with an extended (96 bit) nonce and a 32-bit counter has |
| 460 |
been implemented as crypto_stream_chacha20_ietf(), |
| 461 |
crypto_stream_chacha20_ietf_xor() and crypto_stream_chacha20_ietf_xor_ic(). |
| 462 |
An IETF-compatible version of ChaCha20Poly1305 is available as |
| 463 |
crypto_aead_chacha20poly1305_ietf_npubbytes(), |
| 464 |
crypto_aead_chacha20poly1305_ietf_encrypt() and |
| 465 |
crypto_aead_chacha20poly1305_ietf_decrypt(). |
| 466 |
- The sodium_increment() helper function has been added, to increment |
| 467 |
an arbitrary large number (such as a nonce). |
| 468 |
- The sodium_compare() helper function has been added, to compare |
| 469 |
arbitrary large numbers (such as nonces, in order to prevent replay |
| 470 |
attacks). |
| 471 |
|
| 472 |
* Version 1.0.3 |
| 473 |
- In addition to sodium_bin2hex(), sodium_hex2bin() is now a |
| 474 |
constant-time function. |
| 475 |
- crypto_stream_xsalsa20_ic() has been added. |
| 476 |
- crypto_generichash_statebytes(), crypto_auth_*_statebytes() and |
| 477 |
crypto_hash_*_statebytes() have been added in order to retrieve the |
| 478 |
size of structures keeping states from foreign languages. |
| 479 |
- The JavaScript target doesn't require /dev/urandom or an external |
| 480 |
randombytes() implementation any more. Other minor Emscripten-related |
| 481 |
improvements have been made in order to support libsodium.js |
| 482 |
- Custom randombytes implementations do not need to provide their own |
| 483 |
implementation of randombytes_uniform() any more. randombytes_stir() |
| 484 |
and randombytes_close() can also be NULL pointers if they are not |
| 485 |
required. |
| 486 |
- On Linux, getrandom(2) is being used instead of directly accessing |
| 487 |
/dev/urandom, if the kernel supports this system call. |
| 488 |
- crypto_box_seal() and crypto_box_seal_open() have been added. |
| 489 |
- Visual Studio 2015 is now supported. |
| 490 |
|
| 491 |
* Version 1.0.2 |
| 492 |
- The _easy and _detached APIs now support precalculated keys; |
| 493 |
crypto_box_easy_afternm(), crypto_box_open_easy_afternm(), |
| 494 |
crypto_box_detached_afternm() and crypto_box_open_detached_afternm() |
| 495 |
have been added as an alternative to the NaCl interface. |
| 496 |
- Memory allocation functions can now be used on operating systems with |
| 497 |
no memory protection. |
| 498 |
- crypto_sign_open() and crypto_sign_edwards25519sha512batch_open() |
| 499 |
now accept a NULL pointer instead of a pointer to the message size, if |
| 500 |
storing this information is not required. |
| 501 |
- The close-on-exec flag is now set on the descriptor returned when |
| 502 |
opening /dev/urandom. |
| 503 |
- A libsodium-uninstalled.pc file to use pkg-config even when |
| 504 |
libsodium is not installed, has been added. |
| 505 |
- The iOS target now includes armv7s and arm64 optimized code, as well |
| 506 |
as i386 and x86_64 code for the iOS simulator. |
| 507 |
- sodium_free() can now be called on regions with PROT_NONE protection. |
| 508 |
- The Javascript tests can run on Ubuntu, where the node binary was |
| 509 |
renamed nodejs. io.js can also be used instead of node. |
| 510 |
|
| 511 |
* Version 1.0.1 |
| 512 |
- DLL_EXPORT was renamed SODIUM_DLL_EXPORT in order to avoid |
| 513 |
collisions with similar macros defined by other libraries. |
| 514 |
- sodium_bin2hex() is now constant-time. |
| 515 |
- crypto_secretbox_detached() now supports overlapping input and output |
| 516 |
regions. |
| 517 |
- NaCl's donna_c64 implementation of curve25519 was reading an extra byte |
| 518 |
past the end of the buffer containing the base point. This has been |
| 519 |
fixed. |
| 520 |
|
| 521 |
* Version 1.0.0 |
| 522 |
- The API and ABI are now stable. New features will be added, but |
| 523 |
backward-compatibility is guaranteed through all the 1.x.y releases. |
| 524 |
- crypto_sign() properly works with overlapping regions again. Thanks |
| 525 |
to @pysiak for reporting this regression introduced in version 0.6.1. |
| 526 |
- The test suite has been extended. |
| 527 |
|
| 528 |
* Version 0.7.1 (1.0 RC2) |
| 529 |
- This is the second release candidate of Sodium 1.0. Minor |
| 530 |
compilation, readability and portability changes have been made and the |
| 531 |
test suite was improved, but the API is the same as the previous release |
| 532 |
candidate. |
| 533 |
|
| 534 |
* Version 0.7.0 (1.0 RC1) |
| 535 |
- Allocating memory to store sensitive data can now be done using |
| 536 |
sodium_malloc() and sodium_allocarray(). These functions add guard |
| 537 |
pages around the protected data to make it less likely to be |
| 538 |
accessible in a heartbleed-like scenario. In addition, the protection |
| 539 |
for memory regions allocated that way can be changed using |
| 540 |
sodium_mprotect_noaccess(), sodium_mprotect_readonly() and |
| 541 |
sodium_mprotect_readwrite(). |
| 542 |
- ed25519 keys can be converted to curve25519 keys with |
| 543 |
crypto_sign_ed25519_pk_to_curve25519() and |
| 544 |
crypto_sign_ed25519_sk_to_curve25519(). This allows using the same |
| 545 |
keys for signature and encryption. |
| 546 |
- The seed and the public key can be extracted from an ed25519 key |
| 547 |
using crypto_sign_ed25519_sk_to_seed() and crypto_sign_ed25519_sk_to_pk(). |
| 548 |
- aes256 was removed. A timing-attack resistant implementation might |
| 549 |
be added later, but not before version 1.0 is tagged. |
| 550 |
- The crypto_pwhash_scryptxsalsa208sha256_* compatibility layer was |
| 551 |
removed. Use crypto_pwhash_scryptsalsa208sha256_*. |
| 552 |
- The compatibility layer for implementation-specific functions was |
| 553 |
removed. |
| 554 |
- Compilation issues with Mingw64 on MSYS (not MSYS2) were fixed. |
| 555 |
- crypto_pwhash_scryptsalsa208sha256_STRPREFIX was added: it contains |
| 556 |
the prefix produced by crypto_pwhash_scryptsalsa208sha256_str() |
| 557 |
|
| 558 |
* Version 0.6.1 |
| 559 |
- Important bug fix: when crypto_sign_open() was given a signed |
| 560 |
message too short to even contain a signature, it was putting an |
| 561 |
unlimited amount of zeros into the target buffer instead of |
| 562 |
immediately returning -1. The bug was introduced in version 0.5.0. |
| 563 |
- New API: crypto_sign_detached() and crypto_sign_verify_detached() |
| 564 |
to produce and verify ed25519 signatures without having to duplicate |
| 565 |
the message. |
| 566 |
- New ./configure switch: --enable-minimal, to create a smaller |
| 567 |
library, with only the functions required for the high-level API. |
| 568 |
Mainly useful for the JavaScript target and embedded systems. |
| 569 |
- All the symbols are now exported by the Emscripten build script. |
| 570 |
- The pkg-config .pc file is now always installed even if the |
| 571 |
pkg-config tool is not available during the installation. |
| 572 |
|
| 573 |
* Version 0.6.0 |
| 574 |
- The ChaCha20 stream cipher has been added, as crypto_stream_chacha20_* |
| 575 |
- The ChaCha20Poly1305 AEAD construction has been implemented, as |
| 576 |
crypto_aead_chacha20poly1305_* |
| 577 |
- The _easy API does not require any heap allocations any more and |
| 578 |
does not have any overhead over the NaCl API. With the password |
| 579 |
hashing function being an obvious exception, the library doesn't |
| 580 |
allocate and will not allocate heap memory ever. |
| 581 |
- crypto_box and crypto_secretbox have a new _detached API to store |
| 582 |
the authentication tag and the encrypted message separately. |
| 583 |
- crypto_pwhash_scryptxsalsa208sha256*() functions have been renamed |
| 584 |
crypto_pwhash_scryptsalsa208sha256*(). |
| 585 |
- The low-level crypto_pwhash_scryptsalsa208sha256_ll() function |
| 586 |
allows setting individual parameters of the scrypt function. |
| 587 |
- New macros and functions for recommended crypto_pwhash_* parameters |
| 588 |
have been added. |
| 589 |
- Similarly to crypto_sign_seed_keypair(), crypto_box_seed_keypair() |
| 590 |
has been introduced to deterministically generate a key pair from a seed. |
| 591 |
- crypto_onetimeauth() now provides a streaming interface. |
| 592 |
- crypto_stream_chacha20_xor_ic() and crypto_stream_salsa20_xor_ic() |
| 593 |
have been added to use a non-zero initial block counter. |
| 594 |
- On Windows, CryptGenRandom() was replaced by RtlGenRandom(), which |
| 595 |
doesn't require the Crypt API. |
| 596 |
- The high bit in curve25519 is masked instead of processing the key as |
| 597 |
a 256-bit value. |
| 598 |
- The curve25519 ref implementation was replaced by the latest ref10 |
| 599 |
implementation from Supercop. |
| 600 |
- sodium_mlock() now prevents memory from being included in coredumps |
| 601 |
on Linux 3.4+ |
| 602 |
|
| 603 |
* Version 0.5.0 |
| 604 |
- sodium_mlock()/sodium_munlock() have been introduced to lock pages |
| 605 |
in memory before storing sensitive data, and to zero them before |
| 606 |
unlocking them. |
| 607 |
- High-level wrappers for crypto_box and crypto_secretbox |
| 608 |
(crypto_box_easy and crypto_secretbox_easy) can be used to avoid |
| 609 |
dealing with the specific memory layout regular functions depend on. |
| 610 |
- crypto_pwhash_scryptsalsa208sha256* functions have been added |
| 611 |
to derive a key from a password, and for password storage. |
| 612 |
- Salsa20 and ed25519 implementations now support overlapping |
| 613 |
inputs/keys/outputs (changes imported from supercop-20140505). |
| 614 |
- New build scripts for Visual Studio, Emscripten, different Android |
| 615 |
architectures and msys2 are available. |
| 616 |
- The poly1305-53 implementation has been replaced with Floodyberry's |
| 617 |
poly1305-donna32 and poly1305-donna64 implementations. |
| 618 |
- sodium_hex2bin() has been added to complement sodium_bin2hex(). |
| 619 |
- On OpenBSD and Bitrig, arc4random() is used instead of reading |
| 620 |
/dev/urandom. |
| 621 |
- crypto_auth_hmac_sha512() has been implemented. |
| 622 |
- sha256 and sha512 now have a streaming interface. |
| 623 |
- hmacsha256, hmacsha512 and hmacsha512256 now support keys of |
| 624 |
arbitrary length, and have a streaming interface. |
| 625 |
- crypto_verify_64() has been implemented. |
| 626 |
- first-class Visual Studio build system, thanks to @evoskuil |
| 627 |
- CPU features are now detected at runtime. |
| 628 |
|
| 629 |
* Version 0.4.5 |
| 630 |
- Restore compatibility with OSX <= 10.6 |
| 631 |
|
| 632 |
* Version 0.4.4 |
| 633 |
- Visual Studio is officially supported (VC 2010 & VC 2013) |
| 634 |
- mingw64 is now supported |
| 635 |
- big-endian architectures are now supported as well |
| 636 |
- The donna_c64 implementation of curve25519_donna_c64 now handles |
| 637 |
non-canonical points like the ref implementation |
| 638 |
- Missing scalarmult_curve25519 and stream_salsa20 constants are now exported |
| 639 |
- A crypto_onetimeauth_poly1305_ref() wrapper has been added |
| 640 |
|
| 641 |
* Version 0.4.3 |
| 642 |
- crypto_sign_seedbytes() and crypto_sign_SEEDBYTES were added. |
| 643 |
- crypto_onetimeauth_poly1305_implementation_name() was added. |
| 644 |
- poly1305-ref has been replaced by a faster implementation, |
| 645 |
Floodyberry's poly1305-donna-unrolled. |
| 646 |
- Stackmarkings have been added to assembly code, for Hardened Gentoo. |
| 647 |
- pkg-config can now be used in order to retrieve compilations flags for |
| 648 |
using libsodium. |
| 649 |
- crypto_stream_aes256estream_*() can now deal with unaligned input |
| 650 |
on platforms that require word alignment. |
| 651 |
- portability improvements. |
| 652 |
|
| 653 |
* Version 0.4.2 |
| 654 |
- All NaCl constants are now also exposed as functions. |
| 655 |
- The Android and iOS cross-compilation script have been improved. |
| 656 |
- libsodium can now be cross-compiled to Windows from Linux. |
| 657 |
- libsodium can now be compiled with emscripten. |
| 658 |
- New convenience function (prototyped in utils.h): sodium_bin2hex(). |
| 659 |
|
| 660 |
* Version 0.4.1 |
| 661 |
- sodium_version_*() functions were not exported in version 0.4. They |
| 662 |
are now visible as intended. |
| 663 |
- sodium_init() now calls randombytes_stir(). |
| 664 |
- optimized assembly version of salsa20 is now used on amd64. |
| 665 |
- further cleanups and enhanced compatibility with non-C99 compilers. |
| 666 |
|
| 667 |
* Version 0.4 |
| 668 |
- Most constants and operations are now available as actual functions |
| 669 |
instead of macros, making it easier to use from other languages. |
| 670 |
- New operation: crypto_generichash, featuring a variable key size, a |
| 671 |
variable output size, and a streaming API. Currently implemented using |
| 672 |
Blake2b. |
| 673 |
- The package can be compiled in a separate directory. |
| 674 |
- aes128ctr functions are exported. |
| 675 |
- Optimized versions of curve25519 (curve25519_donna_c64), poly1305 |
| 676 |
(poly1305_53) and ed25519 (ed25519_ref10) are available. Optionally calling |
| 677 |
sodium_init() once before using the library makes it pick the fastest |
| 678 |
implementation. |
| 679 |
- New convenience function: sodium_memzero() in order to securely |
| 680 |
wipe a memory area. |
| 681 |
- A whole bunch of cleanups and portability enhancements. |
| 682 |
- On Windows, a .REF file is generated along with the shared library, |
| 683 |
for use with Visual Studio. The installation path for these has become |
| 684 |
$prefix/bin as expected by MingW. |
| 685 |
|
| 686 |
* Version 0.3 |
| 687 |
- The crypto_shorthash operation has been added, implemented using |
| 688 |
SipHash-2-4. |
| 689 |
|
| 690 |
* Version 0.2 |
| 691 |
- crypto_sign_seed_keypair() has been added |
| 692 |
|
| 693 |
* Version 0.1 |
| 694 |
- Initial release. |
| 695 |
|