isValidSignature(_:for:)

Verifies an elliptic curve digital signature algorithm (ECDSA) signature on a digest over the P-256 elliptic curve.

ECDSA.swift:183
iOS
13+
macOS
10.15+
tvOS
13+
watchOS
6+
func isValidSignature<D>(_ signature: P256.Signing.ECDSASignature, for digest: D) -> Bool where D : Digest

Parameters

signature

The signature to verify.

digest

The signed digest.

Returns

A Boolean value that’s true if the signature is valid for the given digest; otherwise, false.