---
title: "decapsulate(_:)"
framework: cryptokit
role: symbol
role_heading: Instance Method
path: "cryptokit/secureenclave/mlkem768/privatekey/decapsulate(_:)"
---

# decapsulate(_:)

Decapsulates the encapsulated shared secret

## Declaration

```swift
func decapsulate<D>(_ encapsulated: D) throws -> SymmetricKey where D : DataProtocol
```

## Parameters

- `encapsulated`: The encapsulated shared secret

## Return Value

Return Value The decapsulated shared secret
