SealedBox

sealed interface SealedBox<A : AuthCapability<out K>, I : NonceTrait, K : KeyType>(source)

Represents symmetrically encrypted data in a structured manner. Construct using SymmetricEncryptionAlgorithm.sealedBoxFrom

Inheritors

Types

Link copied to clipboard
Link copied to clipboard

A sealed box consisting of an nonce and the actual ciphertext. Construct using SymmetricEncryptionAlgorithm.sealedBoxFrom

Link copied to clipboard

A sealed box without an IV/nonce. Construct using SymmetricEncryptionAlgorithm.sealedBoxFrom

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract val encryptedData: ByteArray
Link copied to clipboard

Functions

Link copied to clipboard

Use to smart-cast this sealed box

Link copied to clipboard

Use to smart-cast this sealed box