Function

SecEncryptTransformCreate(_:_:)

Creates an encryption transform object.

Declaration

func SecEncryptTransformCreate(_ keyRef: SecKey, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>?) -> SecTransform

Parameters

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 NULL if you do not want an error returned.

Return Value

A new transform, or nil on error.

Discussion

This function creates a transform which encrypts data.

See Also

Encrypting

func SecEncryptTransformGetTypeID() -> CFTypeID

Returns the unique identifier of the opaque type to which an encryption transform belongs.

func SecDecryptTransformGetTypeID() -> CFTypeID

Returns the unique identifier of the opaque type to which a decryption transform belongs.