---
title: kSecAttrCanSign
framework: security
role: symbol
role_heading: Global Variable
path: security/ksecattrcansign
---

# kSecAttrCanSign

A key whose value is a Boolean that indicates whether the cryptographic key can be used for digital signing.

## Declaration

```swift
let kSecAttrCanSign: CFString
```

## Mentioned in

Signing and Verifying

## Discussion

Discussion The corresponding value is of type CFBoolean and indicates whether this cryptographic key can be used to create a digital signature. On key creation, if not explicitly specified, this attribute defaults to kCFBooleanTrue for private keys and kCFBooleanFalse for public keys.
