<!--
{
  "availability" : [
    "macOS: 10.7.0 - 13.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Security",
  "identifier" : "/documentation/Security/kSecDigestTypeAttribute",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Security"
    ],
    "preciseIdentifier" : "c:@kSecDigestTypeAttribute"
  },
  "title" : "kSecDigestTypeAttribute"
}
-->

# kSecDigestTypeAttribute

The digest algorithm.

```
let kSecDigestTypeAttribute: CFString
```

## Discussion

Use one of the values listed in [Digest Types](/documentation/Security/transform-attributes#Digest-Types).

---

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)