Home
last modified time | relevance | path

Searched refs:outOff (Results 1 – 25 of 74) sorted by relevance

123

/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/engines/
DRC2Engine.java166 int outOff) in processBlock() argument
178 if ((outOff + BLOCK_SIZE) > out.length) in processBlock()
185 encryptBlock(in, inOff, out, outOff); in processBlock()
189 decryptBlock(in, inOff, out, outOff); in processBlock()
210 int outOff) in encryptBlock() argument
253 out[outOff + 0] = (byte)x10; in encryptBlock()
254 out[outOff + 1] = (byte)(x10 >> 8); in encryptBlock()
255 out[outOff + 2] = (byte)x32; in encryptBlock()
256 out[outOff + 3] = (byte)(x32 >> 8); in encryptBlock()
257 out[outOff + 4] = (byte)x54; in encryptBlock()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/engines/
DRC2Engine.java164 int outOff) in processBlock() argument
176 if ((outOff + BLOCK_SIZE) > out.length) in processBlock()
183 encryptBlock(in, inOff, out, outOff); in processBlock()
187 decryptBlock(in, inOff, out, outOff); in processBlock()
208 int outOff) in encryptBlock() argument
251 out[outOff + 0] = (byte)x10; in encryptBlock()
252 out[outOff + 1] = (byte)(x10 >> 8); in encryptBlock()
253 out[outOff + 2] = (byte)x32; in encryptBlock()
254 out[outOff + 3] = (byte)(x32 >> 8); in encryptBlock()
255 out[outOff + 4] = (byte)x54; in encryptBlock()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/modes/
DCTSBlockCipher.java89 int outOff) in processByte() argument
96 resultLen = cipher.processBlock(buf, 0, out, outOff); in processByte()
124 int outOff) in processBytes() argument
137 if ((outOff + length) > out.length) in processBytes()
150 resultLen += cipher.processBlock(buf, 0, out, outOff); in processBytes()
161 resultLen += cipher.processBlock(buf, 0, out, outOff + resultLen); in processBytes()
191 int outOff) in doFinal() argument
194 if (bufOff + outOff > out.length) in doFinal()
228 c.processBlock(buf, blockSize, out, outOff); in doFinal()
232 cipher.processBlock(buf, blockSize, out, outOff); in doFinal()
[all …]
DCBCBlockCipher.java145 int outOff) in processBlock() argument
148 … return (encrypting) ? encryptBlock(in, inOff, out, outOff) : decryptBlock(in, inOff, out, outOff); in processBlock()
179 int outOff) in encryptBlock() argument
196 int length = cipher.processBlock(cbcV, 0, out, outOff); in encryptBlock()
201 System.arraycopy(out, outOff, cbcV, 0, cbcV.length); in encryptBlock()
222 int outOff) in decryptBlock() argument
232 int length = cipher.processBlock(in, inOff, out, outOff); in decryptBlock()
239 out[outOff + i] ^= cbcV[i]; in decryptBlock()
DGCMBlockCipher.java324 public int processByte(byte in, byte[] out, int outOff) in processByte() argument
337 processBlock(bufBlock, 0, out, outOff); in processByte()
352 public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) in processBytes() argument
379 processBlock(bufBlock, 0, out, outOff); in processBytes()
389 processBlock(in, inOff, out, outOff + resultLen); in processBytes()
408 processBlock(bufBlock, 0, out, outOff + resultLen); in processBytes()
419 public int doFinal(byte[] out, int outOff) in doFinal() argument
433 if ((out.length - outOff) < (extra + macSize)) in doFinal()
446 if ((out.length - outOff) < extra) in doFinal()
454 processPartial(bufBlock, 0, extra, out, outOff); in doFinal()
[all …]
DCCMBlockCipher.java123 public int processByte(byte in, byte[] out, int outOff) in processByte() argument
131 public int processBytes(byte[] in, int inOff, int inLen, byte[] out, int outOff) in processBytes() argument
143 public int doFinal(byte[] out, int outOff) in doFinal() argument
146 int len = processPacket(data.getBuffer(), 0, data.size(), out, outOff); in doFinal()
238 public int processPacket(byte[] in, int inOff, int inLen, byte[] output, int outOff) in processPacket() argument
268 int outIndex = outOff; in processPacket()
273 if (output.length < (outputLen + outOff)) in processPacket()
299 System.arraycopy(encMac, 0, output, outOff + inLen, macSize); in processPacket()
308 if (output.length < (outputLen + outOff)) in processPacket()
339 calculateMac(output, outOff, outputLen, calculatedMacBlock); in processPacket()
DCFBBlockCipher.java191 int outOff) in processBlock() argument
194 processBytes(in, inOff, blockSize, out, outOff); in processBlock()
215 int outOff) in encryptBlock() argument
218 processBytes(in, inOff, blockSize, out, outOff); in encryptBlock()
239 int outOff) in decryptBlock() argument
242 processBytes(in, inOff, blockSize, out, outOff); in decryptBlock()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/modes/
DCTSBlockCipher.java91 int outOff) in processByte() argument
98 resultLen = cipher.processBlock(buf, 0, out, outOff); in processByte()
126 int outOff) in processBytes() argument
139 if ((outOff + length) > out.length) in processBytes()
152 resultLen += cipher.processBlock(buf, 0, out, outOff); in processBytes()
163 resultLen += cipher.processBlock(buf, 0, out, outOff + resultLen); in processBytes()
193 int outOff) in doFinal() argument
196 if (bufOff + outOff > out.length) in doFinal()
230 c.processBlock(buf, blockSize, out, outOff); in doFinal()
234 cipher.processBlock(buf, blockSize, out, outOff); in doFinal()
[all …]
DCBCBlockCipher.java147 int outOff) in processBlock() argument
150 … return (encrypting) ? encryptBlock(in, inOff, out, outOff) : decryptBlock(in, inOff, out, outOff); in processBlock()
181 int outOff) in encryptBlock() argument
198 int length = cipher.processBlock(cbcV, 0, out, outOff); in encryptBlock()
203 System.arraycopy(out, outOff, cbcV, 0, cbcV.length); in encryptBlock()
224 int outOff) in decryptBlock() argument
234 int length = cipher.processBlock(in, inOff, out, outOff); in decryptBlock()
241 out[outOff + i] ^= cbcV[i]; in decryptBlock()
DGCMBlockCipher.java326 public int processByte(byte in, byte[] out, int outOff) in processByte() argument
339 processBlock(bufBlock, 0, out, outOff); in processByte()
354 public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) in processBytes() argument
381 processBlock(bufBlock, 0, out, outOff); in processBytes()
391 processBlock(in, inOff, out, outOff + resultLen); in processBytes()
410 processBlock(bufBlock, 0, out, outOff + resultLen); in processBytes()
421 public int doFinal(byte[] out, int outOff) in doFinal() argument
435 if ((out.length - outOff) < (extra + macSize)) in doFinal()
448 if ((out.length - outOff) < extra) in doFinal()
456 processPartial(bufBlock, 0, extra, out, outOff); in doFinal()
[all …]
DCCMBlockCipher.java125 public int processByte(byte in, byte[] out, int outOff) in processByte() argument
133 public int processBytes(byte[] in, int inOff, int inLen, byte[] out, int outOff) in processBytes() argument
145 public int doFinal(byte[] out, int outOff) in doFinal() argument
148 int len = processPacket(data.getBuffer(), 0, data.size(), out, outOff); in doFinal()
240 public int processPacket(byte[] in, int inOff, int inLen, byte[] output, int outOff) in processPacket() argument
270 int outIndex = outOff; in processPacket()
275 if (output.length < (outputLen + outOff)) in processPacket()
301 System.arraycopy(encMac, 0, output, outOff + inLen, macSize); in processPacket()
310 if (output.length < (outputLen + outOff)) in processPacket()
341 calculateMac(output, outOff, outputLen, calculatedMacBlock); in processPacket()
DCFBBlockCipher.java193 int outOff) in processBlock() argument
196 processBytes(in, inOff, blockSize, out, outOff); in processBlock()
217 int outOff) in encryptBlock() argument
220 processBytes(in, inOff, blockSize, out, outOff); in encryptBlock()
241 int outOff) in decryptBlock() argument
244 processBytes(in, inOff, blockSize, out, outOff); in decryptBlock()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/digests/
DSHA512Digest.java61 int outOff) in doFinal() argument
65 Pack.longToBigEndian(H1, out, outOff); in doFinal()
66 Pack.longToBigEndian(H2, out, outOff + 8); in doFinal()
67 Pack.longToBigEndian(H3, out, outOff + 16); in doFinal()
68 Pack.longToBigEndian(H4, out, outOff + 24); in doFinal()
69 Pack.longToBigEndian(H5, out, outOff + 32); in doFinal()
70 Pack.longToBigEndian(H6, out, outOff + 40); in doFinal()
71 Pack.longToBigEndian(H7, out, outOff + 48); in doFinal()
72 Pack.longToBigEndian(H8, out, outOff + 56); in doFinal()
DSHA384Digest.java61 int outOff) in doFinal() argument
65 Pack.longToBigEndian(H1, out, outOff); in doFinal()
66 Pack.longToBigEndian(H2, out, outOff + 8); in doFinal()
67 Pack.longToBigEndian(H3, out, outOff + 16); in doFinal()
68 Pack.longToBigEndian(H4, out, outOff + 24); in doFinal()
69 Pack.longToBigEndian(H5, out, outOff + 32); in doFinal()
70 Pack.longToBigEndian(H6, out, outOff + 40); in doFinal()
DNullDigest.java34 public int doFinal(byte[] out, int outOff) in doFinal() argument
38 bOut.copy(out, outOff); in doFinal()
60 void copy(byte[] out, int outOff) in copy() argument
62 System.arraycopy(buf, 0, out, outOff, this.size()); in copy()
DSHA256Digest.java134 int outOff) in doFinal() argument
138 Pack.intToBigEndian(H1, out, outOff); in doFinal()
139 Pack.intToBigEndian(H2, out, outOff + 4); in doFinal()
140 Pack.intToBigEndian(H3, out, outOff + 8); in doFinal()
141 Pack.intToBigEndian(H4, out, outOff + 12); in doFinal()
142 Pack.intToBigEndian(H5, out, outOff + 16); in doFinal()
143 Pack.intToBigEndian(H6, out, outOff + 20); in doFinal()
144 Pack.intToBigEndian(H7, out, outOff + 24); in doFinal()
145 Pack.intToBigEndian(H8, out, outOff + 28); in doFinal()
DSHA224Digest.java133 int outOff) in doFinal() argument
137 Pack.intToBigEndian(H1, out, outOff); in doFinal()
138 Pack.intToBigEndian(H2, out, outOff + 4); in doFinal()
139 Pack.intToBigEndian(H3, out, outOff + 8); in doFinal()
140 Pack.intToBigEndian(H4, out, outOff + 12); in doFinal()
141 Pack.intToBigEndian(H5, out, outOff + 16); in doFinal()
142 Pack.intToBigEndian(H6, out, outOff + 20); in doFinal()
143 Pack.intToBigEndian(H7, out, outOff + 24); in doFinal()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/digests/
DSHA512Digest.java63 int outOff) in doFinal() argument
67 Pack.longToBigEndian(H1, out, outOff); in doFinal()
68 Pack.longToBigEndian(H2, out, outOff + 8); in doFinal()
69 Pack.longToBigEndian(H3, out, outOff + 16); in doFinal()
70 Pack.longToBigEndian(H4, out, outOff + 24); in doFinal()
71 Pack.longToBigEndian(H5, out, outOff + 32); in doFinal()
72 Pack.longToBigEndian(H6, out, outOff + 40); in doFinal()
73 Pack.longToBigEndian(H7, out, outOff + 48); in doFinal()
74 Pack.longToBigEndian(H8, out, outOff + 56); in doFinal()
DSHA384Digest.java63 int outOff) in doFinal() argument
67 Pack.longToBigEndian(H1, out, outOff); in doFinal()
68 Pack.longToBigEndian(H2, out, outOff + 8); in doFinal()
69 Pack.longToBigEndian(H3, out, outOff + 16); in doFinal()
70 Pack.longToBigEndian(H4, out, outOff + 24); in doFinal()
71 Pack.longToBigEndian(H5, out, outOff + 32); in doFinal()
72 Pack.longToBigEndian(H6, out, outOff + 40); in doFinal()
DNullDigest.java38 public int doFinal(byte[] out, int outOff) in doFinal() argument
42 bOut.copy(out, outOff); in doFinal()
64 void copy(byte[] out, int outOff) in copy() argument
66 System.arraycopy(buf, 0, out, outOff, this.size()); in copy()
DSHA256Digest.java136 int outOff) in doFinal() argument
140 Pack.intToBigEndian(H1, out, outOff); in doFinal()
141 Pack.intToBigEndian(H2, out, outOff + 4); in doFinal()
142 Pack.intToBigEndian(H3, out, outOff + 8); in doFinal()
143 Pack.intToBigEndian(H4, out, outOff + 12); in doFinal()
144 Pack.intToBigEndian(H5, out, outOff + 16); in doFinal()
145 Pack.intToBigEndian(H6, out, outOff + 20); in doFinal()
146 Pack.intToBigEndian(H7, out, outOff + 24); in doFinal()
147 Pack.intToBigEndian(H8, out, outOff + 28); in doFinal()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/paddings/
DPaddedBufferedBlockCipher.java147 int outOff) in processByte() argument
154 resultLen = cipher.processBlock(buf, 0, out, outOff); in processByte()
180 int outOff) in processBytes() argument
193 if ((outOff + length) > out.length) in processBytes()
206 resultLen += cipher.processBlock(buf, 0, out, outOff); in processBytes()
214 resultLen += cipher.processBlock(in, inOff, out, outOff + resultLen); in processBytes()
244 int outOff) in doFinal() argument
254 if ((outOff + 2 * blockSize) > out.length) in doFinal()
261 resultLen = cipher.processBlock(buf, 0, out, outOff); in doFinal()
267 resultLen += cipher.processBlock(buf, 0, out, outOff + resultLen); in doFinal()
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/paddings/
DPaddedBufferedBlockCipher.java149 int outOff) in processByte() argument
156 resultLen = cipher.processBlock(buf, 0, out, outOff); in processByte()
182 int outOff) in processBytes() argument
195 if ((outOff + length) > out.length) in processBytes()
208 resultLen += cipher.processBlock(buf, 0, out, outOff); in processBytes()
216 resultLen += cipher.processBlock(in, inOff, out, outOff + resultLen); in processBytes()
246 int outOff) in doFinal() argument
256 if ((outOff + 2 * blockSize) > out.length) in doFinal()
263 resultLen = cipher.processBlock(buf, 0, out, outOff); in doFinal()
269 resultLen += cipher.processBlock(buf, 0, out, outOff + resultLen); in doFinal()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/
DBufferedBlockCipher.java163 int outOff) in processByte() argument
172 resultLen = cipher.processBlock(buf, 0, out, outOff); in processByte()
196 int outOff) in processBytes() argument
209 if ((outOff + length) > out.length) in processBytes()
222 resultLen += cipher.processBlock(buf, 0, out, outOff); in processBytes()
230 resultLen += cipher.processBlock(in, inOff, out, outOff + resultLen); in processBytes()
243 resultLen += cipher.processBlock(buf, 0, out, outOff + resultLen); in processBytes()
266 int outOff) in doFinal() argument
273 if (outOff + bufOff > out.length) in doFinal()
288 System.arraycopy(buf, 0, out, outOff, resultLen); in doFinal()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/
DBufferedBlockCipher.java165 int outOff) in processByte() argument
174 resultLen = cipher.processBlock(buf, 0, out, outOff); in processByte()
198 int outOff) in processBytes() argument
211 if ((outOff + length) > out.length) in processBytes()
224 resultLen += cipher.processBlock(buf, 0, out, outOff); in processBytes()
232 resultLen += cipher.processBlock(in, inOff, out, outOff + resultLen); in processBytes()
245 resultLen += cipher.processBlock(buf, 0, out, outOff + resultLen); in processBytes()
268 int outOff) in doFinal() argument
275 if (outOff + bufOff > out.length) in doFinal()
290 System.arraycopy(buf, 0, out, outOff, resultLen); in doFinal()

123