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)
fun SealedBoxBuilder.WithNonce.Having<AuthCapability.Unauthenticated, KeyType.Integrated>.from( encryptedData: ByteArray): KmmResult<SealedBox<AuthCapability.Unauthenticated, NonceTrait.Required, KeyType.Integrated>>(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
fun SealedBoxBuilder.Without.Authenticated<AuthCapability.Authenticated<*>, *>.from( encryptedData: ByteArray, authTag: ByteArray): KmmResult<SealedBox<AuthCapability.Authenticated<*>, NonceTrait.Without, *>>(source)
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
fun SealedBoxBuilder.Without<AuthCapability.Unauthenticated, KeyType.Integrated>.from( encryptedData: ByteArray): KmmResult<SealedBox<AuthCapability.Unauthenticated, NonceTrait.Without, KeyType.Integrated>>(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