from

fun <A : AuthCapability.Authenticated<out K>, K : KeyType> SealedBoxBuilder.WithNonce.Having<A, K>.from(    encryptedData: ByteArray,     authTag: ByteArray): KmmResult<SealedBox<A, NonceTrait.Required, K>>(source)

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


@JvmName(name = "fromAuthenticatedGeneric")
fun SealedBoxBuilder.Without.Authenticated<AuthCapability.Authenticated<*>, *>.from(    encryptedData: ByteArray,     authTag: ByteArray): KmmResult<SealedBox<AuthCapability.Authenticated<*>, NonceTrait.Without, *>>(source)
@JvmName(name = "fromAuthenticatedWihtKeyType")
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>>(source)

Creates a SealedBox matching the characteristics of the underlying SealedBoxBuilder.algorithm. Use this function to load external encrypted data for decryption.

Return

at.asitplus.KmmResult.failure on illegal auth tag length


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