<!--
{
  "availability" : [
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Security",
  "identifier" : "/documentation/Security/SecKeychainAttributeInfo",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Security"
    ],
    "preciseIdentifier" : "c:@S@SecKeychainAttributeInfo"
  },
  "title" : "SecKeychainAttributeInfo"
}
-->

# SecKeychainAttributeInfo

A structure that represents an attribute.

```
struct SecKeychainAttributeInfo
```

## Overview

Each tag and format item form a pair. Use [`SecKeychainAttributeInfoForItemID(_:_:_:)`](/documentation/Security/SecKeychainAttributeInfoForItemID(_:_:_:)) to obtain the structure for a given keychain item, and [`SecKeychainFreeAttributeInfo(_:)`](/documentation/Security/SecKeychainFreeAttributeInfo(_:)) to release that structure’s memory when you are done with it. Use an instance of this structure in a call to the [`SecKeychainItemCopyAttributesAndData(_:_:_:_:_:_:)`](/documentation/Security/SecKeychainItemCopyAttributesAndData(_:_:_:_:_:_:)) function to specify the attributes of a keychain item to retrieve.

## Topics

### Instance Properties

[`count`](/documentation/Security/SecKeychainAttributeInfo/count)

The number of tag-format pairs in the respective arrays.

[`format`](/documentation/Security/SecKeychainAttributeInfo/format)

A pointer to the first attribute format in the array.

[`tag`](/documentation/Security/SecKeychainAttributeInfo/tag)

A pointer to the first attribute tag in the array.

### Initializers

[`init(count:tag:format:)`](/documentation/Security/SecKeychainAttributeInfo/init(count:tag:format:))

Creates a new attribute information structure.



---

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)