]> git.codecow.com Git - libnemo.git/commitdiff
Revert zeroing of buffers not local to function.
authorChris Duncan <chris@codecow.com>
Wed, 5 Aug 2026 22:46:51 +0000 (15:46 -0700)
committerChris Duncan <chris@codecow.com>
Wed, 5 Aug 2026 22:46:51 +0000 (15:46 -0700)
src/lib/crypto/wallet-aes-gcm.ts

index ce47c5b27ced8946b94729ec2533f6e259b38d6a..3696de433570be3d8e9497fa85660d00a14a50b2 100644 (file)
@@ -38,8 +38,6 @@ export class WalletAesGcm {
                const s = new Uint8Array(seed)
                const m = new Uint8Array(mnemonic ?? [])
                const encoded = new Uint8Array([...s, ...m])
-               s.fill(0)
-               m.fill(0)
                return crypto.subtle
                        .encrypt({ name: 'AES-GCM', iv, additionalData }, key, encoded)
                        .then(encrypted => {