Contents

isValidSignature(_:for:)

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

Declaration

func isValidSignature<D>(_ signature: P256.Signing.ECDSASignature, for data: D) -> Bool where D : DataProtocol

Parameters

  • signature:

    The signature to verify.

  • data:

    The signed data.

Return Value

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

See Also

Verifying a signature