Make sure IV is only 8 bytes

master
eater 5 years ago
parent 02e6457443
commit 4eecf0b3e5
Signed by: eater
GPG Key ID: 656785D50BE51C0A

@ -32,7 +32,7 @@ func DecryptAndVerify(input []byte, key *rsa.PrivateKey, pub *rsa.PublicKey, sig
}
password := passwordAndIV[:32]
iv := passwordAndIV[32:]
iv := passwordAndIV[32:40]
cipher, err := blowfish.NewCipher(password)

Loading…
Cancel
Save