---
title: kSecPrivateKeyAttrs
framework: security
role: symbol
role_heading: Global Variable
path: security/ksecprivatekeyattrs
---

# kSecPrivateKeyAttrs

A key whose value is a dictionary of cryptographic key attributes specific to a private key.

## Declaration

```swift
let kSecPrivateKeyAttrs: CFString
```

## Mentioned in

Generating New Cryptographic Keys

## Discussion

Discussion The corresponding value is a CFDictionary containing key-value pairs for attributes specific to the private key to be generated.
