Skip to content

Instance Method

isValidSignature(_:for:)

Verifies that the P384 key signature is valid for the given digest.
func isValidSignature(_ signature: some DataProtocol, for data: some Digest) throws -> Bool

Parameters

signature

The signature to verify.

Return Value

True if the signature is valid for the given digest, false otherwise.

Discussion

Throws

If there is a problem verifying the signature.