Functions

Link copied to clipboard

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

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

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