Function

SecEncryptTransformCreate

Creates an encryption transform object.

Declaration

SecTransformRef SecEncryptTransformCreate(SecKeyRef keyRef, CFErrorRef  _Nullable *error);

Parameters

keyRef

The key for the encryption operation

error

A pointer to a CFErrorRef. 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 pointer to a new transform or NULL on error. 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.

See Also

Encrypting

SecDecryptTransformCreate

Creates a decryption transform object.

SecEncryptTransformGetTypeID

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

SecDecryptTransformGetTypeID

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