<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Security",
  "identifier" : "/documentation/Security/SecTransformDataBlock",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Security"
    ],
    "preciseIdentifier" : "c:@T@SecTransformDataBlock"
  },
  "title" : "SecTransformDataBlock"
}
-->

# SecTransformDataBlock

A block used to override the default data handling for a transform.

```
typealias SecTransformDataBlock = (CFTypeRef) -> Unmanaged<CFTypeRef>?
```

## Parameters

`data`

The data to be processed. When this block is used to to implement the [`kSecTransformActionProcessData`](/documentation/Security/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`](/documentation/Security/kSecTransformActionInternalizeExtraData) action, the data is a <doc://com.apple.documentation/documentation/CoreFoundation/CFDictionary> that contains the data that needs to be imported.

## Return Value

`NULL` for the [`kSecTransformActionInternalizeExtraData`](/documentation/Security/kSecTransformActionInternalizeExtraData) action, the data to be passed to the output attribute for any other action, or a <doc://com.apple.documentation/documentation/CoreFoundation/CFError> instance on failure.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)