SignatureGenerator

Generates signatures over data.

For the verification counterpart, see SignatureVerifier.

Use generateSignature for one-shot generation, or createSignFunction for incremental (streaming) signing.

Functions

Link copied to clipboard

Returns a new SignFunction for incremental signing.

Link copied to clipboard
open suspend fun generateSignature(data: ByteArray): ByteArray

Signs the given data and returns the resulting signature as a ByteArray.

open suspend fun generateSignature(data: RawSource): ByteString

Signs the given data read from a RawSource and returns the resulting signature as a ByteString.

open suspend fun generateSignature(data: ByteString): ByteString

Signs the given data and returns the resulting signature as a ByteString.

Link copied to clipboard

Signs the given data and returns the resulting signature as a ByteArray.

Signs the given data read from a RawSource and returns the resulting signature as a ByteString.

Signs the given data and returns the resulting signature as a ByteString.