xChaCha20Poly1305IetfDecryptDetached

actual fun xChaCha20Poly1305IetfDecryptDetached(ciphertext: UByteArray, tag: UByteArray, associatedData: UByteArray, nonce: UByteArray, key: UByteArray): UByteArray
expect fun xChaCha20Poly1305IetfDecryptDetached(ciphertext: UByteArray, tag: UByteArray, associatedData: UByteArray, nonce: UByteArray, key: UByteArray): UByteArray

Check if authentication data (tag) is correct, then decrypt the message and return decrypted data. Using xChaChaPoly1305 (192 bit nonce)

Return

decrypted data

Parameters

ciphertext

message to decrypt

tag

authenticatoin data (tag)

associatedData

associated data the won't be encrypted, but will be authenticated

nonce

a nonce used to encrypt the message

key

secret key

Throws

if authentication data (tag) cannot be verified

actual fun xChaCha20Poly1305IetfDecryptDetached(ciphertext: UByteArray, tag: UByteArray, associatedData: UByteArray, nonce: UByteArray, key: UByteArray): UByteArray
actual fun xChaCha20Poly1305IetfDecryptDetached(ciphertext: UByteArray, tag: UByteArray, associatedData: UByteArray, nonce: UByteArray, key: UByteArray): UByteArray
actual fun xChaCha20Poly1305IetfDecryptDetached(ciphertext: UByteArray, tag: UByteArray, associatedData: UByteArray, nonce: UByteArray, key: UByteArray): UByteArray
actual fun xChaCha20Poly1305IetfDecryptDetached(ciphertext: UByteArray, tag: UByteArray, associatedData: UByteArray, nonce: UByteArray, key: UByteArray): UByteArray
actual fun xChaCha20Poly1305IetfDecryptDetached(ciphertext: UByteArray, tag: UByteArray, associatedData: UByteArray, nonce: UByteArray, key: UByteArray): UByteArray
actual fun xChaCha20Poly1305IetfDecryptDetached(ciphertext: UByteArray, tag: UByteArray, associatedData: UByteArray, nonce: UByteArray, key: UByteArray): UByteArray
actual fun xChaCha20Poly1305IetfDecryptDetached(ciphertext: UByteArray, tag: UByteArray, associatedData: UByteArray, nonce: UByteArray, key: UByteArray): UByteArray
actual fun xChaCha20Poly1305IetfDecryptDetached(ciphertext: UByteArray, tag: UByteArray, associatedData: UByteArray, nonce: UByteArray, key: UByteArray): UByteArray
actual fun xChaCha20Poly1305IetfDecryptDetached(ciphertext: UByteArray, tag: UByteArray, associatedData: UByteArray, nonce: UByteArray, key: UByteArray): UByteArray
actual fun xChaCha20Poly1305IetfDecryptDetached(ciphertext: UByteArray, tag: UByteArray, associatedData: UByteArray, nonce: UByteArray, key: UByteArray): UByteArray
actual fun xChaCha20Poly1305IetfDecryptDetached(ciphertext: UByteArray, tag: UByteArray, associatedData: UByteArray, nonce: UByteArray, key: UByteArray): UByteArray
actual fun xChaCha20Poly1305IetfDecryptDetached(ciphertext: UByteArray, tag: UByteArray, associatedData: UByteArray, nonce: UByteArray, key: UByteArray): UByteArray