init(nonce:ciphertext:tag:)

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

AES-GCM.swift:188
iOS
13+
macOS
10.15+
tvOS
13+
watchOS
6+
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.