Skip to content

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.

  • 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.
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).

Breaking3
Replaces InsecureAlgorithm annotation with DelicateCryptographyApi, an API breaking change.
InsecureAlgorithmDelicateCryptographyApi
Changes publicExponent parameter in RSA keyPairGenerator to BigInt, an API and ABI breaking change.
publicExponentkeyPairGeneratorBigInt
Implements RSA key formats via a sealed class instead of an enum, an ABI breaking change.
RSA
Platform2
cryptography-core and cryptography-random modules now support all Kotlin targets.
cryptography-corecryptography-random
OpenSSL provider now supports all Kotlin/Native targets, adding linuxArm64, tvOS*, watchOS* and androidNative*.
OpenSSL