}
public int getInputBlockSize() { return engine.getInputBlockSize() - (forEncryption ? HEADER_LENGTH : 0); }
- public int getOutputBlockSize() { return engine.getInputBlockSize() - (forEncryption ? 0 : HEADER_LENGTH); }
+ public int getOutputBlockSize() { return engine.getOutputBlockSize() - (forEncryption ? 0 : HEADER_LENGTH); }
public byte[] processBlock(byte[] in, int inOff, int inLen) throws InvalidCipherTextException {
return forEncryption ? encodeBlock(in, inOff, inLen) : decodeBlock(in, inOff, inLen);