Skip to content

Commit 1d2c715

Browse files
authored
Merge branch 'main' into feat/add-resiliency-e2e-tests
2 parents b9533d2 + 961cb31 commit 1d2c715

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/signer/file/local.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -436,9 +436,7 @@ func fallbackDeriveKey(passphrase []byte, keyLen int) []byte {
436436

437437
// zeroBytes overwrites a byte slice with zeros
438438
func zeroBytes(b []byte) {
439-
for i := range b {
440-
b[i] = 0
441-
}
439+
clear(b)
442440
}
443441

444442
// getAddress returns the Ed25519 address of the signer.

0 commit comments

Comments
 (0)