Initializerswift-crypto 3.8.0Crypto
init(combined:)
Creates a sealed box from the given data.
ChaChaPoly.swift:136init<D>(combined: D) throws where D : DataProtocol
Parameters
- combined
The combined bytes of the tag and ciphertext.
Other members in extension
Type members
init<C, T>(nonce: ChaChaPoly.Nonce, ciphertext: C, tag: T
) throws Creates a sealed box from the given tag, nonce, and ciphertext.
Instance members
var ciphertext: Data
The encrypted data.
let combined: Data
A combined element composed of the tag, the nonce, and the ciphertext.
var nonce: ChaChaPoly.Nonce
The nonce used to encrypt the data.
var tag: Data
An authentication tag.