Having
sealed class Having<A : AuthCapability<out K>, K : KeyType> : SealedBoxBuilder.WithNonce<A, K> (source)
Inheritors
Types
Link copied to clipboard
class Authenticated<A : AuthCapability.Authenticated<out K>, K : KeyType> : SealedBoxBuilder.WithNonce.Having<A, K>
Link copied to clipboard
Functions
Link copied to clipboard
fun SealedBoxBuilder.WithNonce.Having<AuthCapability.Unauthenticated, KeyType.Integrated>.from( encryptedData: ByteArray): KmmResult<SealedBox<AuthCapability.Unauthenticated, NonceTrait.Required, KeyType.Integrated>>
fun <A : AuthCapability.Authenticated<out K>, K : KeyType> SealedBoxBuilder.WithNonce.Having<A, K>.from( encryptedData: ByteArray, authTag: ByteArray): KmmResult<SealedBox<A, NonceTrait.Required, K>>
Creates a SealedBox matching the characteristics of the underlying SealedBoxBuilder.algorithm. Use this function to load external encrypted data for decryption. Returns a KmmResult purely for the sake of consistency, even though this operation will always success