<!--
{
  "availability" : [
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreWLAN",
  "identifier" : "/documentation/CoreWLAN/CWCipherKeyFlags",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Core WLAN"
    ],
    "preciseIdentifier" : "c:@E@CWCipherKeyFlags"
  },
  "title" : "CWCipherKeyFlags"
}
-->

# CWCipherKeyFlags

Cipher key flags.

```
struct CWCipherKeyFlags
```

## Overview

Use these flags with [`setWEPKey(_:flags:index:)`](/documentation/CoreWLAN/CWInterface/setWEPKey(_:flags:index:)).

## Topics

### Constants

[`kCWCipherKeyFlagsNone`](/documentation/CoreWLAN/CWCipherKeyFlags/kCWCipherKeyFlagsNone)

Open System authentication.

[`kCWCipherKeyFlagsUnicast`](/documentation/CoreWLAN/CWCipherKeyFlags/unicast)

A flag that indicates to use the cipher key for unicast packets.

[`kCWCipherKeyFlagsMulticast`](/documentation/CoreWLAN/CWCipherKeyFlags/multicast)

A flag that indicates to use the cipher key for multicast packets.

[`kCWCipherKeyFlagsTx`](/documentation/CoreWLAN/CWCipherKeyFlags/tx)

A flag that indicates to use the cipher key for packets sent from the interface.

[`kCWCipherKeyFlagsRx`](/documentation/CoreWLAN/CWCipherKeyFlags/rx)

A flag that indicates to use the cipher key for packets received by the interface.

### Initializers

[`init(rawValue:)`](/documentation/CoreWLAN/CWCipherKeyFlags/init(rawValue:))

Creates a cipher key flags structure with the specified raw value.

## Relationships

### Conforms To

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`OptionSet`](/documentation/Swift/OptionSet)

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`ExpressibleByArrayLiteral`](/documentation/Swift/ExpressibleByArrayLiteral)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Sendable`](/documentation/Swift/Sendable)

[`SetAlgebra`](/documentation/Swift/SetAlgebra)

---

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)