isValidSignature(_:for:)
Verifies an elliptic curve digital signature algorithm (ECDSA) signature on a digest over the P-256 elliptic curve.
Declaration
func isValidSignature<D>(_ signature: P256.Signing.ECDSASignature, for digest: D) -> Bool where D : DigestParameters
- signature:
The signature to verify.
- digest:
The signed digest.
Return Value
A Boolean value that’s true if the signature is valid for the given digest; otherwise, false.