Decoder

Decodes cryptographic material of type M from an encoded byte representation in a given EncodingFormat.

For the encoding counterpart, see Encodable.

Functions

Link copied to clipboard
open suspend fun decodeFromByteArray(format: F, bytes: ByteArray): M

Decodes material from the given bytes encoded in the specified format and returns the resulting instance of M.

Link copied to clipboard
abstract fun decodeFromByteArrayBlocking(format: F, bytes: ByteArray): M

Decodes material from the given bytes encoded in the specified format and returns the resulting instance of M.

Link copied to clipboard
open suspend fun decodeFromByteString(format: F, byteString: ByteString): M

Decodes material from the given byteString encoded in the specified format and returns the resulting instance of M.

Link copied to clipboard
open fun decodeFromByteStringBlocking(format: F, byteString: ByteString): M

Decodes material from the given byteString encoded in the specified format and returns the resulting instance of M.