From b6201cc0f1862906a30167cbe4e3b1dfb454c0bb Mon Sep 17 00:00:00 2001 From: Christophe Diederichs Date: Thu, 18 Jun 2020 11:38:44 +0200 Subject: [PATCH] standard fixes --- crypto_aead.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto_aead.js b/crypto_aead.js index 241ada7..60e8679 100644 --- a/crypto_aead.js +++ b/crypto_aead.js @@ -84,7 +84,7 @@ function crypto_aead_chacha20poly1305_ietf_decrypt (m, nsec, c, ad, npub, k) { m, nsec, c.subarray(0, c.byteLength - crypto_aead_chacha20poly1305_ietf_ABYTES), c.subarray(c.byteLength - crypto_aead_chacha20poly1305_ietf_ABYTES), - ad, npub, k) + ad, npub, k) return c.byteLength - crypto_aead_chacha20poly1305_ietf_ABYTES } @@ -139,7 +139,7 @@ function crypto_aead_chacha20poly1305_ietf_decrypt_detached (m, nsec, c, mac, ad } function write64LE (buf, offset, int) { - buf.fill(0, 0 ,8) + buf.fill(0, 0, 8) const view = new DataView(buf.buffer, buf.byteOffset, buf.byteLength) view.setUint32(offset, int & 0xffffffff, true)