SealedBox
Represents symmetrically encrypted data in a structured manner. Construct using SymmetricEncryptionAlgorithm.sealedBoxFrom
Inheritors
Types
Link copied to clipboard
interface Authenticated<I : NonceTrait, K : KeyType> : SealedBox<AuthCapability.Authenticated<out K>, I, K>
Link copied to clipboard
interface Unauthenticated<I : NonceTrait> : SealedBox<AuthCapability.Unauthenticated, I, KeyType.Integrated>
Link copied to clipboard
sealed class WithNonce<A : AuthCapability<out K>, K : KeyType> : SealedBox<A, NonceTrait.Required, K>
A sealed box consisting of an nonce and the actual ciphertext. Construct using SymmetricEncryptionAlgorithm.sealedBoxFrom
Link copied to clipboard
sealed class WithoutNonce<A : AuthCapability<out K>, K : KeyType> : SealedBox<A, NonceTrait.Without, K>
A sealed box without an IV/nonce. Construct using SymmetricEncryptionAlgorithm.sealedBoxFrom
Functions
Link copied to clipboard
fun <A : AuthCapability<out K>, K : KeyType, I : NonceTrait> SealedBox<A, I, out K>.isAuthenticated(): Boolean
Use to smart-cast this sealed box