Lines Matching refs:cipher
10 private BlockCipher cipher;
17 * @param cipher the block cipher to be wrapped.
18 * @exception IllegalArgumentException if the cipher has a block size other than
22 BlockCipher cipher)
24 if (cipher.getBlockSize() != 1)
26 throw new IllegalArgumentException("block cipher block size != 1.");
29 this.cipher = cipher;
33 * initialise the underlying cipher.
36 * @param params the necessary parameters for the underlying cipher to be initialised.
42 cipher.init(forEncryption, params);
52 return cipher.getAlgorithmName();
66 cipher.processBlock(oneByte, 0, oneByte, 0);
96 cipher.processBlock(in, inOff + i, out, outOff + i);
101 * reset the underlying cipher. This leaves it in the same state
106 cipher.reset();