Releases: cryptomator/cryptolib
Releases · cryptomator/cryptolib
Release 2.1.0-beta2
- Fixed class loading error in modular downstream projects due to incomplete
ModulePackages
(see JVM Spec 4.7.26) in shaded jar
Release 2.1.0-beta1
Release 2.0.1
- Hotfix for Android, see #23
- Renamed
DestroyableSecretKey.clone()
→copy()
and no longer implementCloneable
Release 2.0.0
Removed APIs
Cryptors.version1(...)
; replaced withCryptorProvider.forScheme(SIV_CTRMAC)
KeyFile
; replaced withMasterkeyFileAccess
Cryptors.cleartextSize(...)
; moved toFileContentCryptor.cleartextSize(...)
Cryptors.ciphertextSize(...)
; moved toFileContentCryptor.ciphertextSize(...)
Added APIs
- Added new
DestroyableSecretKey
, which is aSecretKey
that is bothAutoCloseable
andCloneable
. It is intended to be used in try-with-resource statements and will destroy itself as soon as it is no longer used. When a copy is needed that should outlive its surrounding scope, it must be explicitly cloned. - Added new
Masterkey
, which is a 512 bitDestroyableSecretKey
consisting of two 256 bit keys for encryption and message authentication, as required by Cryptomator's encryption scheme. - Introduced new
MasterkeyLoader
, which allows implementations of customMasterkey
suppliers.
Changed APIs
- BaseEncoding is now a required parameter in
FileNameCryptor.encryptFilename(...)
- BaseEncoding is now a required parameter in
FileNameCryptor.decryptFilename(...)
- Moved
DecryptingReadableByteChannel
,EncryptingReadableByteChannel
andEncryptingWritableByteChannel
to packageorg.cryptomator.cryptolib.common
Misc
- Added GCM file content encryption (via
CryptorProvider.forScheme(SIV_GCM)
) - Added
module-info.java
- Included reflection metadata for GraalVM native images
Release 2.0.0-rc7
- Removed deprecated methods
FileHeader.getFilesize()
andFileHeader.setFilesize(...)
- Updated dependencies
Release 2.0.0-rc6
- Replaced legacy method
Cryptors.version1(...)
withCryptorProvider.forScheme(SIV_CTRMAC)
- Replaced
CryptorProvider.withKey(key)
withCryptorProvider.provide(key, csprng)
- Replaced
Cryptors.cleartextSize(ciphertextSize, cryptor)
withFileContentCryptor.cleartextSize(ciphertextSize)
- Replaced
Cryptors.ciphertextSize(cleartextSize, cryptor)
withFileContentCryptor.ciphertextSize(cleartextSize)
- Moved
DecryptingReadableByteChannel
,EncryptingReadableByteChannel
andEncryptingWritableByteChannel
to packageorg.cryptomator.cryptolib.common
- Removed package
org.cryptomator.cryptolib
Release 2.0.0-rc5
- Fixed issue with invalid masterkey files on JDK17 (#20)
Release 2.0.0-rc4
- Removed
encryptFilename(String cleartextName, byte[]... associatedData)
(useencryptFilename(BaseEncoding encoding, String cleartextName, byte[]... associatedData)
instead) - Removed
decryptFilename(String ciphertextName, byte[]... associatedData)
(usedecryptFilename(BaseEncoding encoding, String ciphertextName, byte[]... associatedData)
instead) - Requires Android API Level 19+
Release 2.0.0-rc3
- Expose Masterkey parsing API
Release 2.0.0-rc2
- Modularized lib