---
title: keyUsage
framework: security
role: symbol
role_heading: Instance Property
path: security/seckeyimportexportparameters/keyusage
---

# keyUsage

A word of bits constituting the low-level use flags for imported keys.

## Declaration

```swift
var keyUsage: CSSM_KEYUSE
```

## Discussion

Discussion Use flags defined in cssmtype.h. If this field is 0 or keyParams is NULL, the default value is CSSM_KEYUSE_ANY.
