Authenticated
class Authenticated<A : AuthCapability.Authenticated<out K>, K : KeyType> : SealedBoxBuilder.Without<A, K> (source)
Functions
Link copied to clipboard
fun SealedBoxBuilder.Without<AuthCapability.Unauthenticated, KeyType.Integrated>.from( encryptedData: ByteArray): KmmResult<SealedBox<AuthCapability.Unauthenticated, NonceTrait.Without, KeyType.Integrated>>
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
fun SealedBoxBuilder.Without.Authenticated<AuthCapability.Authenticated<*>, *>.from( encryptedData: ByteArray, authTag: ByteArray): KmmResult<SealedBox<AuthCapability.Authenticated<*>, NonceTrait.Without, *>>
fun <K : KeyType> SealedBoxBuilder.Without.Authenticated<AuthCapability.Authenticated<out K>, K>.from( encryptedData: ByteArray, authTag: ByteArray): KmmResult<SealedBox<AuthCapability.Authenticated<out K>, NonceTrait.Without, K>>
Creates a SealedBox matching the characteristics of the underlying SealedBoxBuilder.algorithm. Use this function to load external encrypted data for decryption.