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

# SecTrustSettingsKeyUsage

Allowed uses for the encryption key in a certificate.

```
struct SecTrustSettingsKeyUsage
```

## Topics

### Initializers

[`init(rawValue:)`](/documentation/Security/SecTrustSettingsKeyUsage/init(rawValue:))

Initializes a trust settings key usage structure.

### Constants

[`useSignature`](/documentation/Security/SecTrustSettingsKeyUsage/useSignature)

The key can be used to sign data or verify a signature.

[`useEnDecryptData`](/documentation/Security/SecTrustSettingsKeyUsage/useEnDecryptData)

The key can be used to encrypt or decrypt data.

[`useEnDecryptKey`](/documentation/Security/SecTrustSettingsKeyUsage/useEnDecryptKey)

The key can be used to encrypt or decrypt (wrap or unwrap) a key.

[`useSignCert`](/documentation/Security/SecTrustSettingsKeyUsage/useSignCert)

The key can be used to sign a certificate or verify a signature.

[`useSignRevocation`](/documentation/Security/SecTrustSettingsKeyUsage/useSignRevocation)

The key can be used to sign an OCSP (online certificate status protocol) message or CRL (certificate verification list), or to verify a signature.

[`useKeyExchange`](/documentation/Security/SecTrustSettingsKeyUsage/useKeyExchange)

The key is a private key that has been shared using a key exchange protocol, such as Diffie-Hellman key exchange.

[`useAny`](/documentation/Security/SecTrustSettingsKeyUsage/useAny)

The key can be used for any purpose.



---

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)