Changes since 1.1.0:
- Changed the authenticated encryption format. It now conforms to
RFC 7539, with one exception: it uses XChacha20 initialisation instead
of the IETF version of Chacha20. This new format conforms to
Libsodium'scrypto_aead_xchacha20poly1305_ietf_encrypt. - Removed
crypto_lock_encrypt()andcrypto_lock_auth(). - Renamed
crypto_lock_aead_auth()tocrypto_lock_auth_ad(). - Renamed
crypto_unlock_aead_auth()tocrypto_unlock_auth_ad(). - Added
crypto_lock_auth_message()andcrypto_unlock_auth_message() - Renamed
crypto_aead_locktocrypto_lock_aead; - Renamed
crypto_aead_unlocktocrypto_unlock_aead;
The format change facilitates optimisation by aligning data to block
boundaries. The API changes increase consistency.