isValidSignature(_:for:)

Verifies that the P384 key signature is valid for the given digest.

P384+CurveType.swift:40
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.

Returns

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

Throws

If there is a problem verifying the signature.