<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CryptoKit",
  "identifier" : "/documentation/CryptoKit/AES/KeyWrap",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Apple CryptoKit",
      "CryptoKit"
    ],
    "preciseIdentifier" : "s:9CryptoKit3AESO7KeyWrapO"
  },
  "title" : "AES.KeyWrap"
}
-->

# AES.KeyWrap

An implementation of AES Key Wrapping in accordance with the IETF RFC
3394 specification.

```
enum KeyWrap
```

## Topics

### Wrapping an AES key

[`static func wrap(SymmetricKey, using: SymmetricKey) throws -> Data`](/documentation/CryptoKit/AES/KeyWrap/wrap(_:using:))

Wraps a key using the AES wrap algorithm.

### Unwrapping an AES key

[`static func unwrap<WrappedKey>(WrappedKey, using: SymmetricKey) throws -> SymmetricKey`](/documentation/CryptoKit/AES/KeyWrap/unwrap(_:using:))

Unwraps a key using the AES wrap algorithm.

## Relationships

### Conforms To

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

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

---

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)