From 5375294e0bed1fa01cb5f4ff73f2c093b74cd8e2 Mon Sep 17 00:00:00 2001 From: ishaan Date: Mon, 3 Aug 2026 11:15:02 +0530 Subject: fix new --edit fallthrough, cleanup error handling --- internal/crypt/headers.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'internal/crypt/headers.go') diff --git a/internal/crypt/headers.go b/internal/crypt/headers.go index c47d39c..ee38560 100644 --- a/internal/crypt/headers.go +++ b/internal/crypt/headers.go @@ -30,11 +30,11 @@ type FileHeaders struct { } type WrappedKey struct { - PKType string // "ssh-ed25519" - PubKeyBytes []byte - EphemeralPub []byte // of X25519, for ECDH on decrypt (also can replace salt) - Nonce [12]byte // for decrypting EncNoteKey - EncNoteKey []byte // encrypted note key (ciphertext + 16B tag) + PKType string // "ssh-ed25519" + PubKeyBytes []byte + EphemeralPub []byte // of X25519, for ECDH on decrypt (also can replace salt) + Nonce [12]byte // for decrypting EncNoteKey + EncNoteKey []byte // encrypted note key (ciphertext + 16B tag) } func GetFileHeaders(b []byte) (FileHeaders, error) { -- cgit v1.3