- Library Support
- Update the vendored libsodium from v1.0.18-stable to v1.0.21-stable.
- Fixes
- Stop configuring the vendored libsodium with
--enable-opt: it compiles for the exact build CPU (-march=native), making the resulting library non-portable, and it produces silently incorrect ed25519 signature verification when built under x86_64 emulation (e.g. Rosetta via Docker on Apple Silicon). - Fix the dependency-tracking step of the vendored
erlang.mkon Erlang/OTP 27+ (removedfile:pid2name/1call). - Replace
erts_fprintfwith plainfprintfin the port driver: Erlang/OTP 29 no longer exports theerts_fprintfsymbol, so the driver failed to load. All uses were plain C format strings, sofprintfis equivalent. - Fix
test/libsodium_SUITE_data/pwhash_scrypt.configfor Erlang/OTP 27+ (adjacent string literals without whitespace are no longer allowed). - Update the Docker test image default to
hexpm/erlang:27.2-alpine-3.21.2and make thepythonsymlink creation idempotent.
- Stop configuring the vendored libsodium with
- Fixes
- Include
Makefilein hex.pm package so it works correctly with erlang.mk - Ditching the version tag matching upstream libsodium library since hex.pm requires semantic versioning :-( (which is really a good thing, I'm just whining that I can't break the rules just this once).
- Include
-
Library Support
- Update to libsodium 1.0.18.
- Removed (deprecated upstream)
crypto_core_salsa208crypto_stream_aes128ctrcrypto_stream_salsa208
- Added
crypto_aead_xchacha20poly1305crypto_box_curve25519xchacha20poly1305crypto_core_ed25519crypto_core_hchacha20crypto_core_ristretto255crypto_kdfcrypto_kdf_blake2bcrypto_kxcrypto_pwhash_argon2idcrypto_scalarmult_ed25519crypto_scalarmult_ristretto255crypto_secretboxcrypto_secretbox_xchacha20poly1305crypto_secretbox_xsalsa20poly1305crypto_secretstream_xchacha20poly1305crypto_shorthash_siphashx24crypto_sign_ed25519phcrypto_stream_xchacha20crypto_verify_16crypto_verify_32crypto_verify_64sodium_base64_encoded_lensodium_base642binsodium_bin2base64sodium_padsodium_subsodium_unpad
-
Enhancements
- Switch from Travis CI to GitHub Actions.
- Relicense library under MIT license.
- Update version tag to match upstream libsodium library.
-
Enhancements
- Add detached functions to
libsodium_crypto_aead_aes256gcm:encrypt_detached/3encrypt_detached/4decrypt_detached/4decrypt_detached/5
- Add detached functions to
- Enhancements
- Add detached functions to
libsodium_crypto_aead_aes256gcm:encrypt_detached/3encrypt_detached/4decrypt_detached/4decrypt_detached/5
- Add detached functions to
- Fixes
- Segfault when using
libsodium_crypto_box:seal_open/3where ciphertext length is less than sealbytes. (See #5, thanks to @mtaylor91)
- Segfault when using
- Library Support
- Update to libsodium 1.0.11.
- Library Support
libsodium_crypto_aead_chacha20poly1305detached mode and IETF compliance.
-
Enhancements
- Tests for the
crypto_pwhashgroup.
- Tests for the
-
Fixes
- Minor fixes to the following libraries:
libsodium_crypto_pwhashlibsodium_crypto_pwhash_argon2ilibsodium_crypto_pwhash_scryptsalsa208sha256
- Minor fixes to the following libraries:
- Library Support
- Update to libsodium 1.0.10.
libsodium_crypto_pwhash(See #2)libsodium_crypto_pwhash_argon2i(See #2)
- Library Support
libsodium_crypto_pwhash_scryptsalsa208sha256(See #1)
- Fixes
- Minor fixes to build flags and port driver lookup.
- Publish to hex.pm without binary files.
-
Initial Release
-
Library Support
libsodium_crypto_aead_aes256gcmlibsodium_crypto_aead_chacha20poly1305libsodium_crypto_authlibsodium_crypto_auth_hmacsha256libsodium_crypto_auth_hmacsha512libsodium_crypto_auth_hmacsha512256libsodium_crypto_boxlibsodium_crypto_box_curve25519xsalsa20poly1305libsodium_crypto_core_hsalsa20libsodium_crypto_core_salsa20libsodium_crypto_core_salsa2012libsodium_crypto_core_salsa208libsodium_crypto_generichashlibsodium_crypto_generichash_blake2blibsodium_crypto_hashlibsodium_crypto_hash_sha256libsodium_crypto_hash_sha512libsodium_crypto_onetimeauthlibsodium_crypto_onetimeauth_poly1305libsodium_crypto_scalarmultlibsodium_crypto_scalarmult_curve25519libsodium_crypto_shorthashlibsodium_crypto_shorthash_siphash24libsodium_crypto_signlibsodium_crypto_sign_ed25519libsodium_crypto_streamlibsodium_crypto_stream_aes128ctrlibsodium_crypto_stream_chacha20libsodium_crypto_stream_salsa20libsodium_crypto_stream_salsa2012libsodium_crypto_stream_salsa208libsodium_crypto_stream_xsalsa20libsodium_randombyteslibsodium_runtimelibsodium_utilslibsodium_version
-
Basic Tests
aead_aes256gcmaead_chacha20poly1305sign