Lines Matching defs:cipher
10 * implements Cipher-Block-Chaining (CBC) 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 chaining.
29 BlockCipher cipher)
31 this.cipher = cipher;
32 this.blockSize = cipher.getBlockSize();
40 * return the underlying block cipher that we are wrapping.
42 * @return the underlying block cipher that we are wrapping.
46 return cipher;
50 * Initialise the cipher and, possibly, the initialisation vector (IV).
53 * @param encrypting if true the cipher is initialised for
55 * @param params the key and other data required by the cipher.
85 cipher.init(encrypting, ivParam.getParameters());
99 cipher.init(encrypting, params);
115 return cipher.getAlgorithmName() + "/CBC";
119 * return the block size of the underlying cipher.
121 * @return the block size of the underlying cipher.
125 return cipher.getBlockSize();
138 * @exception IllegalStateException if the cipher isn't initialised.
153 * cipher.
160 cipher.reset();
172 * @exception IllegalStateException if the cipher isn't initialised.
196 int length = cipher.processBlock(cbcV, 0, out, outOff);
215 * @exception IllegalStateException if the cipher isn't initialised.
232 int length = cipher.processBlock(in, inOff, out, outOff);