From: Chris Duncan Date: Wed, 5 Aug 2026 22:46:51 +0000 (-0700) Subject: Revert zeroing of buffers not local to function. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=74771c0785cd68af0da6819ffd05cab6157e6c88;p=libnemo.git Revert zeroing of buffers not local to function. --- diff --git a/src/lib/crypto/wallet-aes-gcm.ts b/src/lib/crypto/wallet-aes-gcm.ts index ce47c5b..3696de4 100644 --- a/src/lib/crypto/wallet-aes-gcm.ts +++ b/src/lib/crypto/wallet-aes-gcm.ts @@ -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 => {