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

# kSecCodeInfoDigestAlgorithm

A key whose value is a number indicating the cryptographic hash function.

```
let kSecCodeInfoDigestAlgorithm: CFString
```

## Discussion

The value is a <doc://com.apple.documentation/documentation/CoreFoundation/CFNumber> indicating the kind of cryptographic hash function used within the signature to seal its pieces together. See [`SecCSDigestAlgorithm`](/documentation/Security/SecCSDigestAlgorithm) for possible value.

---

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)