Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

Instance MethodCrypto

isValidSignature(_:for:)

Verifies that the P256 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.

digest

The digest to verify the signature against.

Return Value

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

Discussion

Throws

If there is a problem verifying the signature.