decrypt

expect fun decrypt(ciphertext: ByteArray, key: ByteArray, nonce: ByteArray): ByteArray

Decrypts ciphertext using ChaCha20.

Return

The decrypted plaintext

Parameters

ciphertext

The encrypted data

key

The 32-byte decryption key

nonce

The 12-byte nonce

actual fun decrypt(ciphertext: ByteArray, key: ByteArray, nonce: ByteArray): ByteArray
actual fun decrypt(ciphertext: ByteArray, key: ByteArray, nonce: ByteArray): ByteArray