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
signatureThe signature to verify.
digestThe 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.