Upgrading dev.whyoleg.cryptography:cryptography-provider-apple 0.3 to 0.4
Breaking0.3.1 → 0.4.0Breaking8Deprecated1New17Changed2Other1
BreakingUpgrade verdict
7 breaking changes.
In plain terms
- You must now specify the ECDSA signature format explicitly.
- Some parameter names changed, which can break named-argument callers.
- The PEM and DER types are now spelled Pem and Der.
- The explicit-IV AES methods now have clearer names.
Must act Top 4 of 8 that need code or config changes
Adds dev.whyoleg.cryptography:cryptography-provider-base 0.4.0.
Drops dev.whyoleg.cryptography:cryptography-serialization-asn1, dev.whyoleg.cryptography:cryptography-serialization-asn1-modules, dev.whyoleg.cryptography:cryptography-serialization-pem.
Installs 13 packages in all (was 11).
What you must change
Breaking7
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)CryptographyException is no longer used; IllegalStateException is thrown instead.
CryptographyExceptionIllegalStateExceptionMoves operations from subpackages to the operations package; old declarations are deprecated for removal with ReplaceWith.
dev.whyoleg.cryptography.operations.hash.Hasherdev.whyoleg.cryptography.operations.Hasherdev.whyoleg.cryptography.operations.cipher.*dev.whyoleg.cryptography.operations.signature.*dev.whyoleg.cryptography.algorithms.digest.*dev.whyoleg.cryptography.algorithms.symmetric.*dev.whyoleg.cryptography.algorithms.asymmetric.*dev.whyoleg.cryptography.algorithms.*SignatureVerifier.verifySignature now throws on invalid signature instead of returning Boolean.
SignatureVerifier.verifySignatureDeprecations to plan for
Deprecated1
Deprecates SymmetricKeySize in favor of AES.Key.Size properties.
SymmetricKeySizeAES.Key.Size