Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed interface EphemeralKey

An ephemeral keypair, not stored in any kind of persistent storage. Can be either EC or RSA. Has a CryptoPublicKey, and you can obtain a Signer from it.

Link copied to clipboard
sealed class EphemeralSigner : Signer
sealed class EphemeralSigner : Signer
Link copied to clipboard
class InvalidSignature(message: String, cause: Throwable? = null) : Throwable
Link copied to clipboard
sealed interface KotlinVerifier : Verifier

A distinguishing interface for verifiers that are implemented in pure Kotlin

Link copied to clipboard
sealed interface PlatformVerifier : Verifier

A distinguishing interface for verifiers that delegate to the underlying platform (JCA, CryptoKit, ...)

Link copied to clipboard

Configures JVM-specific properties.

Configures iOS-specific properties.

Configures JVM-specific properties.

Link copied to clipboard
sealed class PrivateKeySigner : Signer
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface Signer

Shared interface of all objects that can sign data. Signatures are created using the signatureAlgorithm, and can be verified using publicKey, potentially with a verifierFor this object.

Link copied to clipboard

DSL for configuring a signing key.

Link copied to clipboard
sealed interface Verifier

Properties

Functions

Link copied to clipboard

Gets a platform verifier for signatures generated by this Signer.

Link copied to clipboard
fun Signer.makeVerifier(configure: ConfigurePlatformVerifier = null): KmmResult<Verifier>

Get a verifier for signatures generated by this Signer.

Link copied to clipboard

Creates a signer for the specified privateKey. Fails if the key type does not match the signature algorithm type (EC/RSA)

Creates a signer for the specified privateKey. Fails if the key type does not match the signature algorithm type (EC/RSA) or if it has no public key attached This JVM-specific variant allows for optionally specifying a provider

Link copied to clipboard
Link copied to clipboard