Instance Propertyswift-crypto 3.8.0Crypto
nonce
The nonce used to encrypt the data.
ChaChaPoly.swift:127var nonce: ChaChaPoly.Nonce { get }
Other members in extension
Type members
init<D>(combined: D
) throws Creates a sealed box from the given data.
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 tag: Data
An authentication tag.