Contents

init(nonce:ciphertext:tag:)

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

Declaration

init<C, T>(nonce: ChaChaPoly.Nonce, ciphertext: C, tag: T) throws where C : DataProtocol, T : DataProtocol

Parameters

  • nonce:

    The nonce.

  • ciphertext:

    The encrypted data.

  • tag:

    An authentication tag.

See Also

Creating the sealed box