SecEncryptTransformCreate(_:_:)
Creates an encryption transform object.
Declaration
func SecEncryptTransformCreate(_ keyRef: SecKey, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>?) -> SecTransformParameters
- keyRef:
The key for the encryption operation
- error:
A pointer to a Cferror. This pointer will be set if an error occurred. This value may be
nilif 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 encrypts data.