Skip to content

Upgrading dev.whyoleg.cryptography:cryptography-random 0.5 to 0.6

Breaking0.5.0 → 0.6.0Breaking6Deprecated1New15Changed8Fixed2Other4

BreakingUpgrade verdict

6 breaking changes.

  • The KeyGenerator class moved to a new package.
  • The PEM label property was renamed.
  • The ASN.1 AlgorithmIdentifier hierarchy no longer includes KeyAlgorithmIdentifier.
  • Key encoding interfaces moved to a new package and were renamed.
Top 4 of 7 that need code or config changes
Breaking6
Renames dev.whyoleg.cryptography.materials.key.KeyGenerator to dev.whyoleg.cryptography.operations.KeyGenerator.
KeyGenerator
Renames PemLabel.representation to PemLabel.value in the cryptography-serialization-pem module.
PemLabel.representationPemLabel.value
Removes KeyAlgorithmIdentifier from the ASN.1 module to simplify the AlgorithmIdentifier hierarchy.
AlgorithmIdentifierKeyAlgorithmIdentifier
Replaces EncodableKey, KeyDecoder, and KeyFormat with Encodable, Decoder, and EncodingFormat in the materials package.
EncodableKeyKeyDecoderKeyFormatEncodableDecoderEncodingFormat
Makes EC.PrivateKey and RSA.PrivateKey generic over their public key type.
EC.PrivateKeyRSA.PrivateKey
Moves AES.IvCipher, AES.IvAuthenticatedCipher, and related IV cipher interfaces to dev.whyoleg.cryptography.operations.
AES.IvCipherAES.IvAuthenticatedCipherIvCipherIvAuthenticatedCipherIvEncryptorIvDecryptor
Deprecated1
Deprecates the dev.whyoleg.cryptography.materials.key.Key interface without replacement.
dev.whyoleg.cryptography.materials.key.Key