Contents

verify(_:signature:algorithm:completion:)

Verifies a digital signature for the data you supply.

Declaration

func verify(_ signedData: Data, signature: Data, algorithm: SecKeyAlgorithm, completion handler: @escaping  @Sendable ((any Error)?) -> Void)
func verify(_ signedData: Data, signature: Data, algorithm: SecKeyAlgorithm) async throws

Parameters

  • signedData:

    The signed data.

  • signature:

    The signature of the data.

  • algorithm:

    An algorithm suitable for verifying signatures with this public key.

  • handler:

    A completion handler to call when the verification operation completes.

    error

    An error object that indicates why the verification operation failed, or nil if it succeeded.

Discussion

See Also

Performing cryptographic operations