pub type SecTransformDataBlock = *mut DynBlock<dyn Fn(NonNull<CFType>) -> *const CFType>;
SecCustomTransform
and block2
only.Expand description
A block used to override the default data handling for a transform.
Parameter data
: The data to be processed. When this block is used
to to implement the kSecTransformActionProcessData action,
the data is the input data that is to be processed into the
output data. When this block is used to implement the
kSecTransformActionInternalizeExtraData action, the data is
a CFDictionaryRef that contains the data that needs to be
imported.
Returns: When this block is used to implment the kSecTransformActionProcessData action, the value returned is to be the data that will be passed to the output attribute. If an error occured while processing the input data then the block should return a CFErrorRef.
When this block is used to implement the kSecTransformActionInternalizeExtraData action then this block should return NULL or a CFErrorRef if an error occurred.
See the example program for more details.
See also Appleās documentation