aboutsummaryrefslogtreecommitdiff
path: root/internal/crypt/headers.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/crypt/headers.go')
-rw-r--r--internal/crypt/headers.go10
1 files changed, 5 insertions, 5 deletions
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) {