Lines Matching defs:cipher
9 * implements a Output-FeedBack (OFB) mode on top of a simple cipher.
19 private final BlockCipher cipher;
24 * @param cipher the block cipher to be used as the basis of the
29 BlockCipher cipher,
32 this.cipher = cipher;
35 this.IV = new byte[cipher.getBlockSize()];
36 this.ofbV = new byte[cipher.getBlockSize()];
37 this.ofbOutV = new byte[cipher.getBlockSize()];
41 * return the underlying block cipher that we are wrapping.
43 * @return the underlying block cipher that we are wrapping.
47 return cipher;
51 * Initialise the cipher and, possibly, the initialisation vector (IV).
55 * @param encrypting if true the cipher is initialised for
57 * @param params the key and other data required by the cipher.
90 cipher.init(true, ivParam.getParameters());
100 cipher.init(true, params);
113 return cipher.getAlgorithmName() + "/OFB" + (blockSize * 8);
137 * @exception IllegalStateException if the cipher isn't initialised.
157 cipher.processBlock(ofbV, 0, ofbOutV, 0);
160 // XOR the ofbV with the plaintext producing the cipher text (and
179 * cipher.
185 cipher.reset();