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

# kSecOAEPMGF1DigestAlgorithmAttributeName

The OAEP MGF1 digest algorithm.

```
let kSecOAEPMGF1DigestAlgorithmAttributeName: CFString
```

## Discussion

Set this value to one of the digest algorithms listed in [Digest Types](/documentation/Security/transform-attributes#Digest-Types) when the [`kSecPaddingKey`](/documentation/Security/kSecPaddingKey) attribute is set to [`kSecPaddingOAEPKey`](/documentation/Security/kSecPaddingOAEPKey). If you don’t set this attribute, [`kSecDigestSHA1`](/documentation/Security/kSecDigestSHA1) is used by default.

This attribute is ignored when padding is not set to OAEP.

---

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)