<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMedia",
  "identifier" : "/documentation/CoreMedia/CMSampleBuffer/SampleAttachments-swift.struct/cryptorSubsampleAuxiliaryData",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Media"
    ],
    "preciseIdentifier" : "s:So17CMSampleBufferRefa9CoreMediaE17SampleAttachmentsV29cryptorSubsampleAuxiliaryData10Foundation0K0VSgvp"
  },
  "title" : "cryptorSubsampleAuxiliaryData"
}
-->

# cryptorSubsampleAuxiliaryData

Describes the ranges of protected and unprotected data within a protected sample buffer.

```
var cryptorSubsampleAuxiliaryData: Data? { get set }
```

## Discussion

The value should contain one or more `BytesOfClearData/BytesOfProtectedData` pairs as appears in the ‘senc’
box (see ISO/IEC 23001-7 section 7.2.2).
The `BytesOfClearData` and the `BytesOfProtectedData` fields are 32-bit integers. Both are native endian in
the Data. This attachment is not present if the CMSampleBuffer contains unprotected content.

---

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)