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 : DataProtocolParameters
- 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.