SecVerifyTransformCreate(_:_:_:)
Creates a verify transform object.
Declaration
func SecVerifyTransformCreate(_ key: SecKey, _ signature: CFData?, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>?) -> SecTransform?Parameters
- key:
A Seckey with the public key used for signing.
- signature:
A Cfdata with the signature. This value may be
NULL, and you may connect a transform to kSecTransformSignatureAttributeName to supply it from another signature. - error:
A pointer to a Cferror. This pointer will be set if an error occurred. This value may be
NULLif you do not want an error returned.
Return Value
A pointer to a new transform or NULL on error. In Objective-C, call the CFRelease function to free this object’s memory when you are done with it.
Discussion
This function creates a transform which verifies a cryptographic signature. The kSecInputIsAttributeName attribute defaults to kSecInputIsPlainText, and the kSecDigestTypeAttribute and kSecDigestLengthAttribute attributes default to something appropriate for the type of key you have supplied.