remove aes comparison and add ciphertext overhead comments

This commit is contained in:
Fabio Bozzo
2024-12-02 17:31:19 +01:00
parent 200d6a8ae2
commit 64d3024dec
4 changed files with 7 additions and 152 deletions

View File

@@ -150,6 +150,7 @@ func (m *Meta) Add(key string, val any) error {
// AddEncrypted adds a key/value pair in the meta set.
// The value is encrypted with the given encryptionKey.
// Accepted types for the value are: string, []byte.
// The ciphertext will be 40 bytes larger than the plaintext due to encryption overhead.
func (m *Meta) AddEncrypted(key string, val any, encryptionKey []byte) error {
var encrypted []byte
var err error