Home
last modified time | relevance | path

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

12

/external/bouncycastle/src/main/java/org/bouncycastle/crypto/engines/
DRC2Engine.java163 int outOff) in processBlock() argument
175 if ((outOff + BLOCK_SIZE) > out.length) in processBlock()
182 encryptBlock(in, inOff, out, outOff); in processBlock()
186 decryptBlock(in, inOff, out, outOff); in processBlock()
207 int outOff) in encryptBlock() argument
250 out[outOff + 0] = (byte)x10; in encryptBlock()
251 out[outOff + 1] = (byte)(x10 >> 8); in encryptBlock()
252 out[outOff + 2] = (byte)x32; in encryptBlock()
253 out[outOff + 3] = (byte)(x32 >> 8); in encryptBlock()
254 out[outOff + 4] = (byte)x54; in encryptBlock()
[all …]
DDESEngine.java67 int outOff) in processBlock() argument
79 if ((outOff + BLOCK_SIZE) > out.length) in processBlock()
84 desFunc(workingKey, in, inOff, out, outOff); in processBlock()
405 int outOff) in desFunc() argument
485 out[outOff + 0] = (byte)((right >>> 24) & 0xff); in desFunc()
486 out[outOff + 1] = (byte)((right >>> 16) & 0xff); in desFunc()
487 out[outOff + 2] = (byte)((right >>> 8) & 0xff); in desFunc()
488 out[outOff + 3] = (byte)(right & 0xff); in desFunc()
489 out[outOff + 4] = (byte)((left >>> 24) & 0xff); in desFunc()
490 out[outOff + 5] = (byte)((left >>> 16) & 0xff); in desFunc()
[all …]
DDESedeEngine.java88 int outOff) in processBlock() argument
100 if ((outOff + BLOCK_SIZE) > out.length) in processBlock()
111 desFunc(workingKey3, temp, 0, out, outOff); in processBlock()
117 desFunc(workingKey1, temp, 0, out, outOff); in processBlock()
DRC4Engine.java75 int outOff) in processBytes() argument
82 if ((outOff + len) > out.length) in processBytes()
98 out[i+outOff] = (byte)(in[i + inOff] in processBytes()
DBlowfishEngine.java352 int outOff) in processBlock() argument
364 if ((outOff + BLOCK_SIZE) > out.length) in processBlock()
371 encryptBlock(in, inOff, out, outOff); in processBlock()
375 decryptBlock(in, inOff, out, outOff); in processBlock()
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/modes/
DCCMBlockCipher.java96 public int processByte(byte in, byte[] out, int outOff) in processByte() argument
104 public int processBytes(byte[] in, int inOff, int inLen, byte[] out, int outOff) in processBytes() argument
112 public int doFinal(byte[] out, int outOff) in doFinal() argument
118 System.arraycopy(enc, 0, out, outOff, enc.length); in doFinal()
184 int outOff = 0; in processPacket() local
194 ctrCipher.processBlock(in, index, out, outOff); in processPacket()
195 outOff += blockSize; in processPacket()
205 System.arraycopy(block, 0, out, outOff, inLen - index); in processPacket()
207 outOff += inLen - index; in processPacket()
209 System.arraycopy(macBlock, 0, out, outOff, out.length - outOff); in processPacket()
[all …]
DCTSBlockCipher.java87 int outOff) in processByte() argument
94 resultLen = cipher.processBlock(buf, 0, out, outOff); in processByte()
122 int outOff) in processBytes() argument
135 if ((outOff + length) > out.length) in processBytes()
148 resultLen += cipher.processBlock(buf, 0, out, outOff); in processBytes()
159 resultLen += cipher.processBlock(buf, 0, out, outOff + resultLen); in processBytes()
189 int outOff) in doFinal() argument
192 if (bufOff + outOff > out.length) in doFinal()
224 c.processBlock(buf, blockSize, out, outOff); in doFinal()
228 cipher.processBlock(buf, blockSize, out, outOff); in doFinal()
[all …]
DCFBBlockCipher.java138 int outOff) in processBlock() argument
141 … return (encrypting) ? encryptBlock(in, inOff, out, outOff) : decryptBlock(in, inOff, out, outOff); in processBlock()
160 int outOff) in encryptBlock() argument
168 if ((outOff + blockSize) > out.length) in encryptBlock()
180 out[outOff + i] = (byte)(cfbOutV[i] ^ in[inOff + i]); in encryptBlock()
187 System.arraycopy(out, outOff, cfbV, cfbV.length - blockSize, blockSize); in encryptBlock()
208 int outOff) in decryptBlock() argument
216 if ((outOff + blockSize) > out.length) in decryptBlock()
234 out[outOff + i] = (byte)(cfbOutV[i] ^ in[inOff + i]); in decryptBlock()
DCBCBlockCipher.java127 int outOff) in processBlock() argument
130 … return (encrypting) ? encryptBlock(in, inOff, out, outOff) : decryptBlock(in, inOff, out, outOff); in processBlock()
161 int outOff) in encryptBlock() argument
178 int length = cipher.processBlock(cbcV, 0, out, outOff); in encryptBlock()
183 System.arraycopy(out, outOff, cbcV, 0, cbcV.length); in encryptBlock()
204 int outOff) in decryptBlock() argument
214 int length = cipher.processBlock(in, inOff, out, outOff); in decryptBlock()
221 out[outOff + i] ^= cbcV[i]; in decryptBlock()
DEAXBlockCipher.java167 public int processByte(byte in, byte[] out, int outOff) in processByte() argument
170 return process(in, out, outOff); in processByte()
173 public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) in processBytes() argument
180 resultLen += process(in[inOff + i], out, outOff + resultLen); in processBytes()
186 public int doFinal(byte[] out, int outOff) in doFinal() argument
199 System.arraycopy(tmp, 0, out, outOff, extra); in doFinal()
205 System.arraycopy(macBlock, 0, out, outOff + extra, macSize); in doFinal()
220 System.arraycopy(tmp, 0, out, outOff, extra - macSize); in doFinal()
262 private int process(byte b, byte[] out, int outOff) in process() argument
272 size = cipher.processBlock(bufBlock, 0, out, outOff); in process()
[all …]
DGOFBBlockCipher.java150 int outOff) in processBlock() argument
158 if ((outOff + blockSize) > out.length) in processBlock()
183 out[outOff + i] = (byte)(ofbOutV[i] ^ in[inOff + i]); in processBlock()
219 int outOff) in intTobytes() argument
221 out[outOff + 3] = (byte)(num >>> 24); in intTobytes()
222 out[outOff + 2] = (byte)(num >>> 16); in intTobytes()
223 out[outOff + 1] = (byte)(num >>> 8); in intTobytes()
224 out[outOff] = (byte)num; in intTobytes()
DGCMBlockCipher.java184 public int processByte(byte in, byte[] out, int outOff) in processByte() argument
187 return process(in, out, outOff); in processByte()
190 public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) in processBytes() argument
202 gCTRBlock(bufBlock, BLOCK_SIZE, out, outOff + resultLen); in processBytes()
217 private int process(byte in, byte[] out, int outOff) in process() argument
224 gCTRBlock(bufBlock, BLOCK_SIZE, out, outOff); in process()
238 public int doFinal(byte[] out, int outOff) in doFinal() argument
255 gCTRBlock(tmp, extra, out, outOff); in doFinal()
281 System.arraycopy(macBlock, 0, out, outOff + bufOff, macSize); in doFinal()
326 private void gCTRBlock(byte[] buf, int bufCount, byte[] out, int outOff) in gCTRBlock() argument
[all …]
DAEADBlockCipher.java47 public int processByte(byte in, byte[] out, int outOff) in processByte() argument
61 public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) in processBytes() argument
73 public int doFinal(byte[] out, int outOff) in doFinal() argument
DOFBBlockCipher.java136 int outOff) in processBlock() argument
144 if ((outOff + blockSize) > out.length) in processBlock()
157 out[outOff + i] = (byte)(ofbOutV[i] ^ in[inOff + i]); in processBlock()
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/digests/
DSHA512Digest.java50 int outOff) in doFinal() argument
54 Pack.longToBigEndian(H1, out, outOff); in doFinal()
55 Pack.longToBigEndian(H2, out, outOff + 8); in doFinal()
56 Pack.longToBigEndian(H3, out, outOff + 16); in doFinal()
57 Pack.longToBigEndian(H4, out, outOff + 24); in doFinal()
58 Pack.longToBigEndian(H5, out, outOff + 32); in doFinal()
59 Pack.longToBigEndian(H6, out, outOff + 40); in doFinal()
60 Pack.longToBigEndian(H7, out, outOff + 48); in doFinal()
61 Pack.longToBigEndian(H8, out, outOff + 56); in doFinal()
DSHA384Digest.java51 int outOff) in doFinal() argument
55 Pack.longToBigEndian(H1, out, outOff); in doFinal()
56 Pack.longToBigEndian(H2, out, outOff + 8); in doFinal()
57 Pack.longToBigEndian(H3, out, outOff + 16); in doFinal()
58 Pack.longToBigEndian(H4, out, outOff + 24); in doFinal()
59 Pack.longToBigEndian(H5, out, outOff + 32); in doFinal()
60 Pack.longToBigEndian(H6, out, outOff + 40); in doFinal()
DSHA256Digest.java100 int outOff) in doFinal() argument
104 Pack.intToBigEndian(H1, out, outOff); in doFinal()
105 Pack.intToBigEndian(H2, out, outOff + 4); in doFinal()
106 Pack.intToBigEndian(H3, out, outOff + 8); in doFinal()
107 Pack.intToBigEndian(H4, out, outOff + 12); in doFinal()
108 Pack.intToBigEndian(H5, out, outOff + 16); in doFinal()
109 Pack.intToBigEndian(H6, out, outOff + 20); in doFinal()
110 Pack.intToBigEndian(H7, out, outOff + 24); in doFinal()
111 Pack.intToBigEndian(H8, out, outOff + 28); in doFinal()
DMD5Digest.java80 int outOff) in unpackWord() argument
82 out[outOff] = (byte)word; in unpackWord()
83 out[outOff + 1] = (byte)(word >>> 8); in unpackWord()
84 out[outOff + 2] = (byte)(word >>> 16); in unpackWord()
85 out[outOff + 3] = (byte)(word >>> 24); in unpackWord()
90 int outOff) in doFinal() argument
94 unpackWord(H1, out, outOff); in doFinal()
95 unpackWord(H2, out, outOff + 4); in doFinal()
96 unpackWord(H3, out, outOff + 8); in doFinal()
97 unpackWord(H4, out, outOff + 12); in doFinal()
DSHA1Digest.java89 int outOff) in doFinal() argument
93 Pack.intToBigEndian(H1, out, outOff); in doFinal()
94 Pack.intToBigEndian(H2, out, outOff + 4); in doFinal()
95 Pack.intToBigEndian(H3, out, outOff + 8); in doFinal()
96 Pack.intToBigEndian(H4, out, outOff + 12); in doFinal()
97 Pack.intToBigEndian(H5, out, outOff + 16); in doFinal()
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/paddings/
DPaddedBufferedBlockCipher.java146 int outOff) in processByte() argument
153 resultLen = cipher.processBlock(buf, 0, out, outOff); in processByte()
179 int outOff) in processBytes() argument
192 if ((outOff + length) > out.length) in processBytes()
205 resultLen += cipher.processBlock(buf, 0, out, outOff); in processBytes()
213 resultLen += cipher.processBlock(in, inOff, out, outOff + resultLen); in processBytes()
243 int outOff) in doFinal() argument
253 if ((outOff + 2 * blockSize) > out.length) in doFinal()
260 resultLen = cipher.processBlock(buf, 0, out, outOff); in doFinal()
266 resultLen += cipher.processBlock(buf, 0, out, outOff + resultLen); in doFinal()
[all …]
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/
DBufferedBlockCipher.java156 int outOff) in processByte() argument
165 resultLen = cipher.processBlock(buf, 0, out, outOff); in processByte()
189 int outOff) in processBytes() argument
202 if ((outOff + length) > out.length) in processBytes()
215 resultLen += cipher.processBlock(buf, 0, out, outOff); in processBytes()
223 resultLen += cipher.processBlock(in, inOff, out, outOff + resultLen); in processBytes()
236 resultLen += cipher.processBlock(buf, 0, out, outOff + resultLen); in processBytes()
259 int outOff) in doFinal() argument
264 if (outOff + bufOff > out.length) in doFinal()
274 System.arraycopy(buf, 0, out, outOff, resultLen); in doFinal()
DStreamBlockCipher.java86 int outOff) in processBytes() argument
89 if (outOff + len > out.length) in processBytes()
96 cipher.processBlock(in, inOff + i, out, outOff + i); in processBytes()
/external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/
DJCEBlockCipher.java1244 public int processByte(byte in, byte[] out, int outOff) in processByte() argument
1247 public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) in processBytes() argument
1250 public int doFinal(byte[] out, int outOff) in doFinal() argument
1305 public int processByte(byte in, byte[] out, int outOff) throws DataLengthException in processByte() argument
1307 return cipher.processByte(in, out, outOff); in processByte()
1310 …public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) throws DataLengthEx… in processBytes() argument
1312 return cipher.processBytes(in, inOff, len, out, outOff); in processBytes()
1315 …public int doFinal(byte[] out, int outOff) throws IllegalStateException, InvalidCipherTextException in doFinal() argument
1317 return cipher.doFinal(out, outOff); in doFinal()
1362 public int processByte(byte in, byte[] out, int outOff) throws DataLengthException in processByte() argument
[all …]
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/generators/
DPKCS5S2ParametersGenerator.java37 int outOff) in F() argument
53 System.arraycopy(state, 0, out, outOff, state.length); in F()
68 out[outOff + j] ^= state[j]; in F()
/external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/util/
DNullDigest.java33 public int doFinal(byte[] out, int outOff) in doFinal() argument
37 System.arraycopy(res, 0, out, outOff, res.length); in doFinal()

12