Function

SecTransformCreate

Creates a transform computation object.

Declaration

SecTransformRef SecTransformCreate(CFStringRef name, CFErrorRef  _Nullable *error);

Parameters

name

The type of transform to create. Use one of the pre-defined transform types or a custom type that you previously registered using SecTransformRegister.

error

A pointer that the function uses to provide an error object with details if an error occurs. The caller becomes responsible for the object's memory. Pass NULL to ignore the error.

Return Value

A pointer to a new transform or NULL on failure. Call the CFRelease function to free this object's memory when you are done with it.

See Also

Custom Transforms

SecTransformRegister

Registers a custom transform.

SecTransformCreateFP

A pointer to a function that creates a new instance of a custom transform.

SecTransformInstanceBlock

A block that you return from a transform creation function.

SecTransformImplementationRef

An opaque pointer to a block that implements an instance of a transform.