Upgrading dev.whyoleg.cryptography:cryptography-random 0.3 to 0.4
Breaking0.3.1 → 0.4.0Breaking13Deprecated1New20Changed3
BreakingUpgrade verdict
11 breaking changes.
In plain terms
- ECDSA signing now requires you to specify the signature format explicitly.
- Some parameter names changed, which can break named-argument callers.
- The PEM and DER types are now spelled Pem and Der.
- AES methods that take an explicit IV are renamed to make the explicit case clear.
Must act Top 4 of 12 that need code or config changes
What you must change
Breaking11
Drops the default signature format parameter for ECDSA.
ECDSARenames some parameters in algorithms and operations for clarity.
Renames PEM and DER to Pem and Der.
PEMDERPemDerRenames AES encrypt(iv)/decrypt(iv) to encryptWithIv(iv)/decryptWithIv(iv).
encrypt(iv)decrypt(iv)encryptWithIv(iv)decryptWithIv(iv)Moves operations from subpackages to the operations package, deprecating old declarations with ReplaceWith.
dev.whyoleg.cryptography.operations.hash.Hasherdev.whyoleg.cryptography.operations.Hasherdev.whyoleg.cryptography.algorithms.digest.*dev.whyoleg.cryptography.algorithms.*Moves cipher operations from operations.cipher.* to the operations package.
dev.whyoleg.cryptography.operations.cipher.*dev.whyoleg.cryptography.operations.*Moves signature operations from operations.signature.* to the operations package.
dev.whyoleg.cryptography.operations.signature.*dev.whyoleg.cryptography.operations.*Moves symmetric algorithms from algorithms.symmetric.* to the algorithms package.
dev.whyoleg.cryptography.algorithms.symmetric.*dev.whyoleg.cryptography.algorithms.*Moves asymmetric algorithms from algorithms.asymmetric.* to the algorithms package.
dev.whyoleg.cryptography.algorithms.asymmetric.*dev.whyoleg.cryptography.algorithms.*SignatureVerifier.verifySignature now throws on invalid signature instead of returning Boolean.
SignatureVerifier.verifySignatureSignatureVerifier.tryVerifySignatureStops using CryptographyException and throws IllegalStateException instead.
CryptographyExceptionIllegalStateExceptionDeprecations to plan for
Deprecated1
Deprecates SymmetricKeySize in favor of AES.Key.Size properties.
SymmetricKeySizeAES.Key.Size