<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CryptoKit",
  "identifier" : "/documentation/CryptoKit/KEM/EncapsulationResult",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Apple CryptoKit"
    ],
    "preciseIdentifier" : "s:9CryptoKit3KEMO19EncapsulationResultV"
  },
  "title" : "KEM.EncapsulationResult"
}
-->

# KEM.EncapsulationResult

The result of a key encapsulation operation.

```
struct EncapsulationResult
```

## Topics

### Initializers

[`init(sharedSecret: SymmetricKey, encapsulated: Data)`](/documentation/CryptoKit/KEM/EncapsulationResult/init(sharedSecret:encapsulated:))

Initializes a key encapsulation result.

### Instance Properties

[`let encapsulated: Data`](/documentation/CryptoKit/KEM/EncapsulationResult/encapsulated)

The encapsulated representation of the shared secret.

[`let sharedSecret: SymmetricKey`](/documentation/CryptoKit/KEM/EncapsulationResult/sharedSecret)

The shared secret.

## Relationships

### Conforms To

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

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

---

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)