mirror of
https://github.com/rwinkhart/rcw.git
synced 2026-08-28 04:46:42 -04:00
Remove warnings about using Decrypt/Encrypt directly
This commit is contained in:
@@ -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