Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

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")