SignatureAlgorithm

sealed interface SignatureAlgorithm(source)

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class ECDSA(val digest: Digest?, val requiredCurve: ECCurve?) : SignatureAlgorithm
Link copied to clipboard
data class HMAC(val digest: Digest) : SignatureAlgorithm
Link copied to clipboard
data class RSA(val digest: Digest, val padding: RSAPadding) : SignatureAlgorithm

Properties

Link copied to clipboard
val SignatureAlgorithm.secKeyAlgorithm: SecKeyAlgorithm
Link copied to clipboard

Functions

Link copied to clipboard
fun SignatureAlgorithm.getJCASignatureInstance(provider: String? = null): KmmResult<Signature>

Get a pre-configured JCA instance for this algorithm

Link copied to clipboard

Get a pre-configured JCA instance for pre-hashed data for this algorithm

Link copied to clipboard

Finds a X.509 signature algorithm matching this algorithm. Curve restrictions are not preserved.