processBlock method

int processBlock(
  1. List<int> inp,
  2. int inOff,
  3. List<int> out,
  4. int outOff,
)

Implementation

int processBlock(List<int> inp, int inOff, List<int> out, int outOff) {
  if ((inOff + GOST28147Engine.BLOCK_SIZE) > inp.length) {
    throw Exception("input buffer too short");
  }

  if ((outOff + GOST28147Engine.BLOCK_SIZE) > out.length) {
    throw Exception("output buffer too short");
  }

  _GOST28147Func(_workingKey, inp, inOff, out, outOff);

  return GOST28147Engine.BLOCK_SIZE;
}