Lines Matching defs:cipher

9  * Note: in the case where the underlying cipher is either a CFB cipher or an
18 protected BlockCipher cipher;
31 * Create a buffered block cipher without padding.
33 * @param cipher the underlying block cipher this buffering object wraps.
36 BlockCipher cipher)
38 this.cipher = cipher;
40 buf = new byte[cipher.getBlockSize()];
46 String name = cipher.getAlgorithmName();
62 * return the cipher this object wraps.
64 * @return the cipher this object wraps.
68 return cipher;
72 * initialise the cipher.
74 * @param forEncryption if true the cipher is initialised for
76 * @param params the key and other data required by the cipher.
89 cipher.init(forEncryption, params);
93 * return the blocksize for the underlying cipher.
95 * @return the blocksize for the underlying cipher.
99 return cipher.getBlockSize();
118 leftOver = total % buf.length - (cipher.getBlockSize() + 2);
151 * @exception IllegalStateException if the cipher isn't initialised.
165 resultLen = cipher.processBlock(buf, 0, out, outOff);
182 * @exception IllegalStateException if the cipher isn't initialised.
215 resultLen += cipher.processBlock(buf, 0, out, outOff);
223 resultLen += cipher.processBlock(in, inOff, out, outOff + resultLen);
236 resultLen += cipher.processBlock(buf, 0, out, outOff + resultLen);
251 * @exception IllegalStateException if the underlying cipher is not
278 cipher.processBlock(buf, 0, buf, 0);
293 * Reset the buffer and cipher. After resetting the object is in the same
309 // reset the underlying cipher.
311 cipher.reset();