CryptoSignature

Interface which holds Asn1 Encoding of a signature of a specified algorithm Allows simple ASN1 - Raw transformation of signature values

Inheritors

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed class EC : CryptoSignature
Link copied to clipboard

This is the opposite of a RawByteEncodable signature

Link copied to clipboard

Well-defined CryptoSignatures, which can also be encoded to raw bytes, in addition to the DER encoding specified in the X.509 profile. RSA Signatures and EC Signatures with a known curve fall into this category.

Properties

Link copied to clipboard
Link copied to clipboard

In Java EC signatures are returned as DER-encoded, RSA signatures however are raw bytearrays

Link copied to clipboard
abstract val signature: Asn1Element

Functions

Link copied to clipboard

Convenience function to directly get the DER-encoded representation of the implementing object

Link copied to clipboard

Exception-free version of encodeToDer

Link copied to clipboard
open fun encodeToDerSafe(): KmmResult<ByteArray>

Safe version of encodeToDer, wrapping the result into a KmmResult

Link copied to clipboard
open override fun encodeToTlv(): Asn1Element

Encodes the implementing object into an A

Link copied to clipboard
Link copied to clipboard

Exception-free version of encodeToTlv

Link copied to clipboard
open fun encodeToTlvSafe(): KmmResult<Asn1Element>

Safe version of encodeToTlv, wrapping the result into a KmmResult