func isValidSignature<S, D, C>(_ signature: S, for data: D, context: C) -> Bool where S : DataProtocol, D : DataProtocol, C : DataProtocol
Verifies a MLDSA65 signature, in a specific context.
- Parameters:
- signature: The MLDSA65 signature to verify.
- data: The signed data.
- context: Context for the signature.
- Returns: `true` if the signature is valid in the specified context, `false` otherwise.
func isValidSignature<S, D>(_ signature: S, for data: D) -> Bool where S : DataProtocol, D : DataProtocol
Verifies a MLDSA65 signature.
- Parameters:
- signature: The MLDSA65 signature to verify.
- data: The signed data.
- Returns: `true` if the signature is valid, `false` otherwise.
get · iOS 26.0+
rawRepresentation
TypeScript
get rawRepresentation(): ArrayBuffer
Swift declaration
var rawRepresentation: Data { get }
A serialized representation of the public key.
This property provides a representation of the public key in the FIPS 204 standard serialization format.
init<D>(rawRepresentation: D) throws where D : DataProtocol
Parses a public key from a serialized representation.
- Parameter rawRepresentation: The public key, in the FIPS 204 standard serialization format.
- Returns: The deserialized public key.