---
title: kSecOAEPMGF1DigestAlgorithmAttributeName
framework: security
role: symbol
role_heading: Global Variable
path: security/ksecoaepmgf1digestalgorithmattributename
---

# kSecOAEPMGF1DigestAlgorithmAttributeName

The OAEP MGF1 digest algorithm.

## Declaration

```swift
let kSecOAEPMGF1DigestAlgorithmAttributeName: CFString
```

## Discussion

Discussion Set this value to one of the digest algorithms listed in Digest Types when the kSecPaddingKey attribute is set to kSecPaddingOAEPKey. If you don’t set this attribute, kSecDigestSHA1 is used by default. This attribute is ignored when padding is not set to OAEP.
