---
title: kSecOAEPMessageLengthAttributeName
framework: security
role: symbol
role_heading: Global Variable
path: security/ksecoaepmessagelengthattributename
---

# kSecOAEPMessageLengthAttributeName

The OAEP message length.

## Declaration

```swift
let kSecOAEPMessageLengthAttributeName: CFString
```

## Discussion

Discussion Optionally set the value to a CFNumber indicating a specific message size when the kSecPaddingKey attribute is set to kSecPaddingOAEPKey. If you don’t set this attribute, the minimum padding is used by default. This attribute is ignored when padding is not set to OAEP.
