Make sure IV is only 8 bytes

This commit is contained in:
eater 2019-08-11 14:50:51 +02:00
parent 02e6457443
commit 4eecf0b3e5
Signed by: eater
GPG key ID: 656785D50BE51C0A

View file

@ -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)