Make sure IV is only 8 bytes
This commit is contained in:
parent
02e6457443
commit
4eecf0b3e5
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ func DecryptAndVerify(input []byte, key *rsa.PrivateKey, pub *rsa.PublicKey, sig
|
||||||
}
|
}
|
||||||
|
|
||||||
password := passwordAndIV[:32]
|
password := passwordAndIV[:32]
|
||||||
iv := passwordAndIV[32:]
|
iv := passwordAndIV[32:40]
|
||||||
|
|
||||||
cipher, err := blowfish.NewCipher(password)
|
cipher, err := blowfish.NewCipher(password)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue