Crypto
object 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.
Functions
Link copied to clipboard
fun checkSignature(publicKey: EcPublicKey, message: ByteArray, algorithm: Algorithm, signature: EcSignature)
Checks signature validity.
Link copied to clipboard
Creates an EC private key.
Link copied to clipboard
Performs Key Agreement.
Link copied to clipboard
Signs data with a key.