Contents

signature(for:context:)

Generates a MLDSA65 signature, with context.

Declaration

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

Parameters

  • data:

    The data to sign.

  • context:

    Context for the signature.

Return Value

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

See Also

Signing data