---
title: KEM.EncapsulationResult
framework: cryptokit
role: symbol
role_heading: Structure
path: cryptokit/kem/encapsulationresult
---

# KEM.EncapsulationResult

The result of a key encapsulation operation.

## Declaration

```swift
struct EncapsulationResult
```

## Topics

### Initializers

- [init(sharedSecret:encapsulated:)](cryptokit/kem/encapsulationresult/init(sharedsecret:encapsulated:).md)

### Instance Properties

- [encapsulated](cryptokit/kem/encapsulationresult/encapsulated.md)
- [sharedSecret](cryptokit/kem/encapsulationresult/sharedsecret.md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
