Searched refs:bufOff (Results 1 – 5 of 5) sorted by relevance
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/ |
D | BufferedBlockCipher.java | 15 protected int bufOff; field in BufferedBlockCipher 41 bufOff = 0; in BufferedBlockCipher() 113 int total = len + bufOff; in getUpdateOutputSize() 140 return length + bufOff; in getOutputSize() 161 buf[bufOff++] = in; in processByte() 163 if (bufOff == buf.length) in processByte() 166 bufOff = 0; in processByte() 209 int gapLen = buf.length - bufOff; in processBytes() 213 System.arraycopy(in, inOff, buf, bufOff, gapLen); in processBytes() 217 bufOff = 0; in processBytes() [all …]
|
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/macs/ |
D | CBCBlockCipherMac.java | 19 private int bufOff; field in CBCBlockCipherMac 102 bufOff = 0; in CBCBlockCipherMac() 126 if (bufOff == buf.length) in update() 129 bufOff = 0; in update() 132 buf[bufOff++] = in; in update() 146 int gapLen = blockSize - bufOff; in update() 150 System.arraycopy(in, inOff, buf, bufOff, gapLen); in update() 154 bufOff = 0; in update() 167 System.arraycopy(in, inOff, buf, bufOff, len); in update() 169 bufOff += len; in update() [all …]
|
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/modes/ |
D | CTSBlockCipher.java | 35 bufOff = 0; in CTSBlockCipher() 49 int total = len + bufOff; in getUpdateOutputSize() 71 return len + bufOff; in getOutputSize() 92 if (bufOff == buf.length) in processByte() 97 bufOff = blockSize; in processByte() 100 buf[bufOff++] = in; in processByte() 142 int gapLen = buf.length - bufOff; in processBytes() 146 System.arraycopy(in, inOff, buf, bufOff, gapLen); in processBytes() 151 bufOff = blockSize; in processBytes() 158 System.arraycopy(in, inOff, buf, bufOff, blockSize); in processBytes() [all …]
|
D | GCMBlockCipher.java | 44 private int bufOff; field in GCMBlockCipher 160 this.bufOff = 0; in init() 173 return len + bufOff + macSize; in getOutputSize() 176 return len + bufOff - macSize; in getOutputSize() 181 return ((len + bufOff) / BLOCK_SIZE) * BLOCK_SIZE; in getUpdateOutputSize() 198 bufBlock[bufOff++] = in[inOff + i]; in processBytes() 200 if (bufOff == bufBlock.length) in processBytes() 208 bufOff = bufBlock.length - BLOCK_SIZE; in processBytes() 220 bufBlock[bufOff++] = in; in process() 222 if (bufOff == bufBlock.length) in process() [all …]
|
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/paddings/ |
D | PaddedBufferedBlockCipher.java | 36 bufOff = 0; in PaddedBufferedBlockCipher() 95 int total = len + bufOff; in getOutputSize() 122 int total = len + bufOff; in getUpdateOutputSize() 151 if (bufOff == buf.length) in processByte() 154 bufOff = 0; in processByte() 157 buf[bufOff++] = in; in processByte() 199 int gapLen = buf.length - bufOff; in processBytes() 203 System.arraycopy(in, inOff, buf, bufOff, gapLen); in processBytes() 207 bufOff = 0; in processBytes() 220 System.arraycopy(in, inOff, buf, bufOff, len); in processBytes() [all …]
|