---
title: "init(nonce:ciphertext:tag:)"
framework: cryptokit
role: symbol
role_heading: Initializer
path: "cryptokit/aes/gcm/sealedbox/init(nonce:ciphertext:tag:)"
---

# init(nonce:ciphertext:tag:)

Creates a sealed box from the given tag, nonce, and ciphertext.

## Declaration

```swift
init<C, T>(nonce: AES.GCM.Nonce, ciphertext: C, tag: T) throws where C : DataProtocol, T : DataProtocol
```

## Parameters

- `nonce`: The nonce.
- `ciphertext`: The encrypted data.
- `tag`: The authentication tag.

## See Also

### Creating the sealed box

- [init(combined:)](cryptokit/aes/gcm/sealedbox/init(combined:).md)
