From 0479447f147b770d4f95fc4ddd9141b8d4f30291 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Sun, 4 May 2025 17:47:13 -0400 Subject: [PATCH] Add documentation for high-level functions --- wrappers/highLevel.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wrappers/highLevel.go b/wrappers/highLevel.go index f4c3ae7..be5d0a7 100644 --- a/wrappers/highLevel.go +++ b/wrappers/highLevel.go @@ -1,5 +1,6 @@ package wrappers +// Decrypt decrypts the provided byte slice using the provided passphrase. func Decrypt(encBytes []byte, passphrase []byte) ([]byte, error) { var err error = nil encBytes, err = decryptCha(encBytes, passphrase) @@ -13,6 +14,7 @@ func Decrypt(encBytes []byte, passphrase []byte) ([]byte, error) { return encBytes, err } +// Encrypt encrypts the provided byte slice using the provided passphrase. func Encrypt(decBytes []byte, passphrase []byte) []byte { decBytes = encryptAES(decBytes, passphrase) decBytes = encryptCha(decBytes, passphrase)