Initializerswift-crypto 3.12.2Crypto
init(nonce:ciphertext:tag:)
Creates a sealed box from the given tag, nonce, and ciphertext.
- 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.