Parcourir la source

swap argument order to match v3 spec

Steven Schobert il y a 9 ans
Parent
commit
b344160d52
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      rncryptor.go

+ 1 - 1
rncryptor.go

@@ -11,7 +11,7 @@ import(
   "golang.org/x/crypto/pbkdf2"
 )
 
-func Decrypt(text, password []byte) ([]byte, error) {
+func Decrypt(password, text []byte) ([]byte, error) {
   version         := text[:1]
   options         := text[1:2]
   encSalt         := text[2:10]