Lines Matching defs:BLOCK_SIZE
24 private static final int BLOCK_SIZE = 16;
58 if (c.getBlockSize() != BLOCK_SIZE)
61 "cipher required with a block size of " + BLOCK_SIZE + ".");
122 int bufLength = forEncryption ? BLOCK_SIZE : (BLOCK_SIZE + macSize);
131 // (but must be 16 if nonce length not 12) (BLOCK_SIZE?)
140 this.H = new byte[BLOCK_SIZE];
148 this.J0 = new byte[BLOCK_SIZE];
153 this.J0[BLOCK_SIZE - 1] = 0x01;
158 byte[] X = new byte[BLOCK_SIZE];
163 this.S = new byte[BLOCK_SIZE];
164 this.S_at = new byte[BLOCK_SIZE];
165 this.S_atPre = new byte[BLOCK_SIZE];
166 this.atBlock = new byte[BLOCK_SIZE];
208 return totalData - totalData % BLOCK_SIZE;
214 if (++atBlockPos == BLOCK_SIZE)
219 atLength += BLOCK_SIZE;
228 if (++atBlockPos == BLOCK_SIZE)
233 atLength += BLOCK_SIZE;
242 System.arraycopy(S_at, 0, S_atPre, 0, BLOCK_SIZE);
255 System.arraycopy(S_atPre, 0, S, 0, BLOCK_SIZE);
266 return BLOCK_SIZE;
282 resultLen += BLOCK_SIZE;
302 System.arraycopy(bufBlock, BLOCK_SIZE, bufBlock, 0, macSize);
373 byte[] X = new byte[BLOCK_SIZE];
381 byte[] tag = new byte[BLOCK_SIZE];
423 S = new byte[BLOCK_SIZE];
424 S_at = new byte[BLOCK_SIZE];
425 S_atPre = new byte[BLOCK_SIZE];
426 atBlock = new byte[BLOCK_SIZE];
455 System.arraycopy(tmp, 0, out, outOff, BLOCK_SIZE);
459 totalLength += BLOCK_SIZE;
476 for (int pos = 0; pos < len; pos += BLOCK_SIZE)
478 int num = Math.min(len - pos, BLOCK_SIZE);
508 byte[] tmp = new byte[BLOCK_SIZE];