Upgrading dev.whyoleg.cryptography:cryptography-random 0.2 to 0.3
Breaking0.2.0 → 0.3.1Breaking3Platform2New9Changed2Fixed2Other2
BreakingUpgrade verdict
3 breaking changes and 2 platform requirement changes.
In plain terms
- Code using the old InsecureAlgorithm annotation must switch to DelicateCryptographyApi.
- If you set the RSA public exponent yourself, you now pass a BigInt instead of the previous type.
- RSA key format types are now a sealed class rather than an enum, so binaries must be recompiled.
- These two libraries can now be used on every platform Kotlin supports.
Must act 5 items need code or config changes
Adds org.jetbrains.kotlin:kotlin-stdlib 1.9.22.
Drops org.jetbrains.kotlin:kotlin-stdlib-common.
Installs 2 packages in all (was 1).
What you must change
Breaking3
Replaces InsecureAlgorithm annotation with DelicateCryptographyApi, an API breaking change.
InsecureAlgorithmDelicateCryptographyApiChanges publicExponent parameter in RSA keyPairGenerator to BigInt, an API and ABI breaking change.
publicExponentkeyPairGeneratorBigIntImplements RSA key formats via a sealed class instead of an enum, an ABI breaking change.
RSAPlatform2
cryptography-core and cryptography-random modules now support all Kotlin targets.
cryptography-corecryptography-randomOpenSSL provider now supports all Kotlin/Native targets, adding linuxArm64, tvOS*, watchOS* and androidNative*.
OpenSSL