Skip to content

Upgrading dev.whyoleg.cryptography:cryptography-random 0.3 to 0.4

Breaking0.3.1 → 0.4.0Breaking13Deprecated1New20Changed3

BreakingUpgrade verdict

11 breaking changes.

  • 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.
Top 4 of 12 that need code or config changes
Breaking11
Drops the default signature format parameter for ECDSA.
ECDSA
Renames some parameters in algorithms and operations for clarity.
Renames PEM and DER to Pem and Der.
PEMDERPemDer
Renames 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.tryVerifySignature
Stops using CryptographyException and throws IllegalStateException instead.
CryptographyExceptionIllegalStateException
Deprecated1
Deprecates SymmetricKeySize in favor of AES.Key.Size properties.
SymmetricKeySizeAES.Key.Size