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 throwsParameters
- 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.
errorAn error object that indicates why the verification operation failed, or
nilif it succeeded.