Merge pull request #19 from joostrijneveld/fix/chacha-raw

Fix ChaCha operation Raw output
This commit is contained in:
Autumn 2023-12-21 20:37:23 +00:00 committed by GitHub
commit a218f0aa47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 1 deletions

View file

@ -191,7 +191,7 @@ ChaCha uses a nonce of 8 or 12 bytes (64 or 96 bits).`);
if (outputType === "Hex") {
return toHex(output);
} else {
return Utils.arrayBufferToStr(output);
return Utils.arrayBufferToStr(Uint8Array.from(output).buffer);
}
}