Skip to content

Instance Method

sign(_:)

Creates a signature from the supplied plaintext.
func sign(_ plaintext: some DataProtocol) throws -> [UInt8]

Parameters

plaintext

Plaintext data to sign.

Return Value

Signature unique to the supplied data.

Discussion

let sig = try alg.sign("hello")