Lines Matching refs:cipher
10 * implements a Cipher-FeedBack (CFB) mode on top of a simple cipher.
20 private BlockCipher cipher = null;
26 * @param cipher the block cipher to be used as the basis of the
31 BlockCipher cipher,
34 this.cipher = cipher;
37 this.IV = new byte[cipher.getBlockSize()];
38 this.cfbV = new byte[cipher.getBlockSize()];
39 this.cfbOutV = new byte[cipher.getBlockSize()];
43 * return the underlying block cipher that we are wrapping.
45 * @return the underlying block cipher that we are wrapping.
49 return cipher;
53 * Initialise the cipher and, possibly, the initialisation vector (IV).
57 * @param encrypting if true the cipher is initialised for
59 * @param params the key and other data required by the cipher.
94 cipher.init(true, ivParam.getParameters());
104 cipher.init(true, params);
117 return cipher.getAlgorithmName() + "/CFB" + (blockSize * 8);
140 * @exception IllegalStateException if the cipher isn't initialised.
162 * @exception IllegalStateException if the cipher isn't initialised.
182 cipher.processBlock(cfbV, 0, cfbOutV, 0);
210 * @exception IllegalStateException if the cipher isn't initialised.
230 cipher.processBlock(cfbV, 0, cfbOutV, 0);
261 * cipher.
267 cipher.reset();