mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-07 15:50:57 +03:00
StreamCipher can use the constructor without random.
This commit is contained in:
@@ -29,6 +29,6 @@ public class StreamCipher extends BaseCipher {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void initCipher(javax.crypto.Cipher cipher, Mode mode, byte[] key, byte[] iv) throws InvalidKeyException, InvalidAlgorithmParameterException {
|
protected void initCipher(javax.crypto.Cipher cipher, Mode mode, byte[] key, byte[] iv) throws InvalidKeyException, InvalidAlgorithmParameterException {
|
||||||
cipher.init(getMode(mode), getKeySpec(key), new SecureRandom());
|
cipher.init(getMode(mode), getKeySpec(key));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user