mirror of
https://github.com/rwinkhart/rcw.git
synced 2026-10-26 22:09:56 -04:00
Remove warnings about using Decrypt/Encrypt directly
This commit is contained in:
1 parent
f447c8a28b
commit
b49d9f1eea
1 file changed
-2
@@ -1,7 +1,6 @@
|
||||
package wrappers
|
||||
|
||||
// Decrypt decrypts the provided byte slice using the provided passphrase.
|
||||
// Do NOT use directly if using the RCW daemon.
|
||||
func Decrypt(encBytes []byte, passphrase []byte) ([]byte, error) {
|
||||
var err error = nil
|
||||
encBytes, err = decryptCha(encBytes, passphrase)
|
||||
@@ -16,7 +15,6 @@ func Decrypt(encBytes []byte, passphrase []byte) ([]byte, error) {
|
||||
}
|
||||
|
||||
// Encrypt encrypts the provided byte slice using the provided passphrase.
|
||||
// Do NOT use directly if using the RCW daemon.
|
||||
func Encrypt(decBytes []byte, passphrase []byte) []byte {
|
||||
decBytes = encryptAES(decBytes, passphrase)
|
||||
decBytes = encryptCha(decBytes, passphrase)
|
||||
|
||||
Reference in new issue
Block a user