StreamCipher can use the constructor without random.

This commit is contained in:
Jeroen van Erp
2016-12-28 09:52:58 +01:00
parent fc75f9796c
commit c9c68f019e

View File

@@ -29,6 +29,6 @@ public class StreamCipher extends BaseCipher {
@Override
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));
}
}