Contents

signature(for:)

Generates a MLDSA87 signature.

Declaration

func signature<D>(for data: D) throws -> Data where D : DataProtocol

Parameters

  • data:

    The data to sign.

Return Value

The MLDSA87 signature. This method throws if CryptoKit encounters an error producing the signature.

See Also

Signing data