Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
class CFCryptoOperationFailed(thing: String, val osStatus: OSStatus) : CryptoOperationFailed
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class UnlockFailed(message: String? = null, cause: Throwable? = null) : UserInitiatedCancellationReason
Link copied to clipboard

These map to SignatureResult.Failure instead of SignatureResult.Error

Properties

Link copied to clipboard
Link copied to clipboard

Retrieves the contained signature, asserting it exists. If it does not exist, throws the contained problem.

Link copied to clipboard

Retrieves the contained signature, if one exists.

Functions

Link copied to clipboard

Transforms this SignatureResult into a KmmResult. Both Failure and Error map to KmmResult.Failure.

Link copied to clipboard

Modifies the contained CryptoSignature, usually in order to reinterpret it as a more narrow type.

Link copied to clipboard
inline fun <T : CryptoSignature.RawByteEncodable, S : CryptoSignature.RawByteEncodable> SignatureResult<T>.modify(    block: KmmResult<T>.() -> KmmResult<S>): SignatureResult<S>

Modifies the contained CryptoSignature, usually in order to reinterpret it as a more narrow type.

Link copied to clipboard
suspend fun Signer.sign(tbsCertificate: TbsCertificate): KmmResult<X509Certificate>

Shorthand helper to create an X509Certificate by signing tbsCertificate

Shorthand helper to create a Pkcs10CertificationRequest by signing tbsCsr