From 74771c0785cd68af0da6819ffd05cab6157e6c88 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Wed, 5 Aug 2026 15:46:51 -0700 Subject: [PATCH] Revert zeroing of buffers not local to function. --- src/lib/crypto/wallet-aes-gcm.ts | 2 -- 1 file changed, 2 deletions(-) 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 => { -- 2.52.0