aboutsummaryrefslogtreecommitdiff
path: root/internal/crypt
diff options
context:
space:
mode:
authorishaan <contact@ishaan.cc>2026-07-14 22:05:23 +0530
committerishaan <contact@ishaan.cc>2026-07-14 22:05:23 +0530
commit6fc45951e42b0a7d4760e7b2eb09c647d1f75402 (patch)
treed37a12add7bb092f200eea7c7f4a27d225cbc8d1 /internal/crypt
parent6b33b7a8abf03d15a8164ff207547f45475e737e (diff)
read me
Diffstat (limited to 'internal/crypt')
-rw-r--r--internal/crypt/sshKey.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/crypt/sshKey.go b/internal/crypt/sshKey.go
index 3b0b344..e36d6fd 100644
--- a/internal/crypt/sshKey.go
+++ b/internal/crypt/sshKey.go
@@ -178,7 +178,7 @@ func FindAndUnwrapNoteKey(recipients []WrappedKey, privKeyPath string) ([]byte,
return nil, fmt.Errorf("read SSH key: %w", err)
}
TryMlock(pemBytes)
- clear(pemBytes)
+ defer clear(pemBytes)
parsed, err := ssh.ParseRawPrivateKey(pemBytes)
if err != nil {