mirror of
https://github.com/rwinkhart/rcw.git
synced 2026-09-03 23:57:28 -04:00
Remove warnings about using Decrypt/Encrypt directly
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
package wrappers
|
package wrappers
|
||||||
|
|
||||||
// Decrypt decrypts the provided byte slice using the provided passphrase.
|
// 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) {
|
func Decrypt(encBytes []byte, passphrase []byte) ([]byte, error) {
|
||||||
var err error = nil
|
var err error = nil
|
||||||
encBytes, err = decryptCha(encBytes, passphrase)
|
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.
|
// 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 {
|
func Encrypt(decBytes []byte, passphrase []byte) []byte {
|
||||||
decBytes = encryptAES(decBytes, passphrase)
|
decBytes = encryptAES(decBytes, passphrase)
|
||||||
decBytes = encryptCha(decBytes, passphrase)
|
decBytes = encryptCha(decBytes, passphrase)
|
||||||
|
|||||||
Reference in New Issue
Block a user