From 6f706d0d05612d9778ece6414b3427c176214586 Mon Sep 17 00:00:00 2001 From: Levi Durfee Date: Thu, 8 Jan 2026 18:50:19 -0500 Subject: Work on comments --- internal/encrypt.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal/encrypt.go') diff --git a/internal/encrypt.go b/internal/encrypt.go index 4efa722..5d2c794 100644 --- a/internal/encrypt.go +++ b/internal/encrypt.go @@ -1,5 +1,8 @@ package internal +// Encrypt generates a new salt, creates the kek from the passphrase and the new +// salt, creates a new dek, wraps the dek with the kek, encrypts the data with +// the dek, then returns the edek, salt, and ciphertext. func Encrypt(passphrase string, data []byte) (EncryptedDataPayload, error) { salt, err := NewSalt() if err != nil { -- cgit v1.2.3