Functions

Link copied to clipboard
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