SecKeyVerifySignature(_:_:_:_:_:)
Verifies the cryptographic signature of a block of data using a public key and specified algorithm.
Declaration
func SecKeyVerifySignature(_ key: SecKey, _ algorithm: SecKeyAlgorithm, _ signedData: CFData, _ signature: CFData, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>?) -> BoolParameters
- key:
The public key to use in evaluating the signature.
- algorithm:
The algorithm that was used to create the signature. Use one of the signing algorithms listed in Seckeyalgorithm. You can use the Seckeyisalgorithmsupported(_:_:_:) function to test that the key is suitable for the algorithm.
- signedData:
The data that was signed.
- signature:
The signature that was created with a call to the Seckeycreatesignature(_:_:_:_:) function.
- error:
The address of a Cferror object. If an error occurs, this is set to point at an error instance that describes the failure.
Mentioned in
Return Value
A Boolean indicating whether or not the data and signature are intact.