Adding comment in hardly understandable part
Some checks failed
Build project and push to maven snapshot / Build-And-Push-Linux (push) Has been cancelled
Build project and push to maven snapshot / Build-And-Push-Mac (push) Has been cancelled
Build project and push to maven snapshot / Build-And-Push-Windows (push) Has been cancelled

This commit is contained in:
kildishevps 2025-02-05 00:37:27 +03:00
parent 2acf7218b4
commit c39c9ec71e

View File

@ -38,6 +38,8 @@ actual object SecretStream {
ciphertext: UByteArray,
associatedData: UByteArray
): DecryptedDataAndTag {
// crypto_secretstream_xchacha20poly1305_pull JavaScript realization returns either 0
// or DecryptedDataAndTagType object, therefore if 0 is returned an identifying exception is thrown
try {
val dataAndTag = getSodium().crypto_secretstream_xchacha20poly1305_pull(
state, ciphertext.toUInt8Array(), associatedData.toUInt8Array()