Contents

SecTransformSetDataAction(_:_:_:)

Changes the way a custom transform processes data.

Declaration

func SecTransformSetDataAction(_ ref: SecTransformImplementationRef, _ action: CFString, _ newAction: @escaping  SecTransformDataBlock) -> CFError?

Parameters

Return Value

An error on failure, or NULL on success. In Objective-C, call the CFRelease function to free the error’s memory when you are done with it.

Discussion

When the action parameter is kSecTransformActionProcessData, the newAction block changes the way that input data is processed to become the output data. When the action parameter is kSecTransformActionInternalizeExtraData it changes the way a custom transform reads in data to be imported into the transform.

You may call this function multiple times. The last call takes precedence.