Skip to content

Upgrading dev.whyoleg.cryptography:cryptography-provider-cryptokit 0.5 to 0.6

Breaking0.5.0 → 0.6.0Breaking8Deprecated1New15Changed6Fixed2Other5

BreakingUpgrade verdict

7 breaking changes.

  • The key generator type moved to a new package.
  • The PEM label property has a new name.
  • Simplifies the AlgorithmIdentifier hierarchy by removing KeyAlgorithmIdentifier in the ASN.1 module.
  • Code that used the old key encoding interfaces must switch to the new ones.
Top 4 of 8 that need code or config changes

Installs 15 packages in all (was 13).

Breaking7
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
Simplifies the AlgorithmIdentifier hierarchy by removing KeyAlgorithmIdentifier in the ASN.1 module.
AlgorithmIdentifierKeyAlgorithmIdentifier
Refactors key-related abstractions, replacing EncodableKey, KeyDecoder, and KeyFormat with Encodable, Decoder, and EncodingFormat.
EncodableKeyKeyDecoderKeyFormatEncodableDecoderEncodingFormat
Makes EC.PrivateKey and RSA.PrivateKey generic over their public key type.
EC.PrivateKeyRSA.PrivateKey
Extracts AES.IvCipher, AES.IvAuthenticatedCipher, and related IV cipher interfaces from AES into dev.whyoleg.cryptography.operations.
AES.IvCipherAES.IvAuthenticatedCipherIvCipherIvAuthenticatedCipherIvEncryptorIvDecryptor
Refactors AlgorithmIdentifierSerializer for better extensibility and optional parameters support.
AlgorithmIdentifierSerializer
Deprecated1
Deprecates the dev.whyoleg.cryptography.materials.key.Key interface without replacement.
dev.whyoleg.cryptography.materials.key.Key