Crypto
Cryptographic support routines.
This object contains various cryptographic primitives and is a wrapper to a platform-specific crypto library.
For post-quantum cryptography algorithms (ML-DSA and ML-KEM) to work on the JVM or Android, the bcprov package (org.bouncycastle:bcprov-jdk18on) must be present on the classpath. It is consumed via reflection to avoid pulling in a large dependency into the core SDK.
Cryptographic support routines.
This object contains various cryptographic primitives and is a wrapper to a platform- specific crypto library.
For post-quantum cryptography algorithms (ML-DSA and ML-KEM) to work on the JVM or Android, the bcprov package (org.bouncycastle:bcprov-jdk18on) must be present on the classpath. It is consumed via reflection to avoid pulling in a large dependency into the core SDK.
Properties
A cryptographically secure pseudo-random number generator (CSPRNG).
The Elliptic Curve Cryptography curves supported by the platform.
CryptoKit supports the following curves from EcCurve.
The encryption algorithms supported by the platform.
The ML-DSA algorithms supported by the platform.
The ML-DSA algorithms supported by the platform.
The ML-KEM algorithms supported by the platform.
The ML-KEM algorithms supported by the platform.
Functions
Checks signature validity.
Checks signature validity for an ML-DSA key.
Checks signature validity for an RSA key.
Checks signature validity.
Creates an EC private key.
Creates an EC private key.
Creates an ML-DSA private key.
Creates an ML-KEM private key.
Creates an RSA private key.
Message decryption.
Message digest function.
Message digest function.
Message encryption.
Decapsulates a shared secret using an ML-KEM private key and ciphertext.
Encapsulates a shared secret using an ML-KEM recipient public key.
Performs Key Agreement.
Performs Key Agreement.
Message authentication code function.
Message authentication code function.
Signs data with a key.
Signs data with an ML-DSA key.
Signs data with an RSA key.
Signs data with a key.