Home
last modified time | relevance | path

Searched refs:inOff (Results 1 – 25 of 52) sorted by relevance

123

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/engines/
DRC2Engine.java162 int inOff, in processBlock() argument
171 if ((inOff + BLOCK_SIZE) > in.length) in processBlock()
183 encryptBlock(in, inOff, out, outOff); in processBlock()
187 decryptBlock(in, inOff, out, outOff); in processBlock()
206 int inOff, in encryptBlock() argument
212 x76 = ((in[inOff + 7] & 0xff) << 8) + (in[inOff + 6] & 0xff); in encryptBlock()
213 x54 = ((in[inOff + 5] & 0xff) << 8) + (in[inOff + 4] & 0xff); in encryptBlock()
214 x32 = ((in[inOff + 3] & 0xff) << 8) + (in[inOff + 2] & 0xff); in encryptBlock()
215 x10 = ((in[inOff + 1] & 0xff) << 8) + (in[inOff + 0] & 0xff); in encryptBlock()
263 int inOff, in decryptBlock() argument
[all …]
DDESEngine.java66 int inOff, in processBlock() argument
75 if ((inOff + BLOCK_SIZE) > in.length) in processBlock()
85 desFunc(workingKey, in, inOff, out, outOff); in processBlock()
404 int inOff, in desFunc() argument
410 left = (in[inOff + 0] & 0xff) << 24; in desFunc()
411 left |= (in[inOff + 1] & 0xff) << 16; in desFunc()
412 left |= (in[inOff + 2] & 0xff) << 8; in desFunc()
413 left |= (in[inOff + 3] & 0xff); in desFunc()
415 right = (in[inOff + 4] & 0xff) << 24; in desFunc()
416 right |= (in[inOff + 5] & 0xff) << 16; in desFunc()
[all …]
DDESedeEngine.java87 int inOff, in processBlock() argument
96 if ((inOff + BLOCK_SIZE) > in.length) in processBlock()
110 desFunc(workingKey1, in, inOff, temp, 0); in processBlock()
116 desFunc(workingKey3, in, inOff, temp, 0); in processBlock()
DRFC3394WrapEngine.java87 int inOff, in wrap() argument
106 System.arraycopy(in, inOff, block, iv.length, inLen); in wrap()
138 int inOff, in unwrap() argument
158 System.arraycopy(in, inOff, a, 0, iv.length); in unwrap()
159 System.arraycopy(in, inOff + iv.length, block, 0, inLen - iv.length); in unwrap()
DRC4Engine.java73 int inOff, in processBytes() argument
78 if ((inOff + len) > in.length) in processBytes()
99 out[i+outOff] = (byte)(in[i + inOff] in processBytes()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/paddings/
DISO7816d4Padding.java41 int inOff) in addPadding() argument
43 int added = (in.length - inOff); in addPadding()
45 in [inOff]= (byte) 0x80; in addPadding()
46 inOff ++; in addPadding()
48 while (inOff < in.length) in addPadding()
50 in[inOff] = (byte) 0; in addPadding()
51 inOff++; in addPadding()
DX923Padding.java43 int inOff) in addPadding() argument
45 byte code = (byte)(in.length - inOff); in addPadding()
47 while (inOff < in.length - 1) in addPadding()
51 in[inOff] = 0; in addPadding()
55 in[inOff] = (byte)random.nextInt(); in addPadding()
57 inOff++; in addPadding()
60 in[inOff] = code; in addPadding()
DTBCPadding.java50 int inOff) in addPadding() argument
52 int count = in.length - inOff; in addPadding()
55 if (inOff > 0) in addPadding()
57 code = (byte)((in[inOff - 1] & 0x01) == 0 ? 0xff : 0x00); in addPadding()
64 while (inOff < in.length) in addPadding()
66 in[inOff] = code; in addPadding()
67 inOff++; in addPadding()
DISO10126d2Padding.java49 int inOff) in addPadding() argument
51 byte code = (byte)(in.length - inOff); in addPadding()
53 while (inOff < (in.length - 1)) in addPadding()
55 in[inOff] = (byte)random.nextInt(); in addPadding()
56 inOff++; in addPadding()
59 in[inOff] = code; in addPadding()
DZeroBytePadding.java40 int inOff) in addPadding() argument
42 int added = (in.length - inOff); in addPadding()
44 while (inOff < in.length) in addPadding()
46 in[inOff] = (byte) 0; in addPadding()
47 inOff++; in addPadding()
DPKCS7Padding.java40 int inOff) in addPadding() argument
42 byte code = (byte)(in.length - inOff); in addPadding()
44 while (inOff < in.length) in addPadding()
46 in[inOff] = code; in addPadding()
47 inOff++; in addPadding()
DPaddedBufferedBlockCipher.java177 int inOff, in processBytes() argument
204 System.arraycopy(in, inOff, buf, bufOff, gapLen); in processBytes()
210 inOff += gapLen; in processBytes()
214 resultLen += cipher.processBlock(in, inOff, out, outOff + resultLen); in processBytes()
217 inOff += blockSize; in processBytes()
221 System.arraycopy(in, inOff, buf, bufOff, len); in processBytes()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/modes/
DCCMBlockCipher.java117 public void processAADBytes(byte[] in, int inOff, int len) in processAADBytes() argument
120 associatedText.write(in, inOff, len); in processAADBytes()
131 public int processBytes(byte[] in, int inOff, int inLen, byte[] out, int outOff) in processBytes() argument
134 if (in.length < (inOff + inLen)) in processBytes()
138 data.write(in, inOff, inLen); in processBytes()
202 public byte[] processPacket(byte[] in, int inOff, int inLen) in processPacket() argument
220 processPacket(in, inOff, inLen, output, 0); in processPacket()
238 public int processPacket(byte[] in, int inOff, int inLen, byte[] output, int outOff) in processPacket() argument
267 int inIndex = inOff; in processPacket()
278 calculateMac(in, inOff, inLen, macBlock); in processPacket()
[all …]
DCBCBlockCipher.java143 int inOff, in processBlock() argument
148 … return (encrypting) ? encryptBlock(in, inOff, out, outOff) : decryptBlock(in, inOff, out, outOff); in processBlock()
177 int inOff, in encryptBlock() argument
182 if ((inOff + blockSize) > in.length) in encryptBlock()
193 cbcV[i] ^= in[inOff + i]; in encryptBlock()
220 int inOff, in decryptBlock() argument
225 if ((inOff + blockSize) > in.length) in decryptBlock()
230 System.arraycopy(in, inOff, cbcNextV, 0, blockSize); in decryptBlock()
232 int length = cipher.processBlock(in, inOff, out, outOff); in decryptBlock()
DCFBBlockCipher.java189 int inOff, in processBlock() argument
194 processBytes(in, inOff, blockSize, out, outOff); in processBlock()
213 int inOff, in encryptBlock() argument
218 processBytes(in, inOff, blockSize, out, outOff); in encryptBlock()
237 int inOff, in decryptBlock() argument
242 processBytes(in, inOff, blockSize, out, outOff); in decryptBlock()
DCTSBlockCipher.java120 int inOff, in processBytes() argument
147 System.arraycopy(in, inOff, buf, bufOff, gapLen); in processBytes()
155 inOff += gapLen; in processBytes()
159 System.arraycopy(in, inOff, buf, bufOff, blockSize); in processBytes()
164 inOff += blockSize; in processBytes()
168 System.arraycopy(in, inOff, buf, bufOff, len); in processBytes()
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cert/selector/
DMSOutlookKeyIdCalculator.java89 int inOff, in update() argument
97 update(in[inOff]); in update()
99 inOff++; in update()
108 processWord(in, inOff); in update()
110 inOff += xBuf.length; in update()
120 update(in[inOff]); in update()
122 inOff++; in update()
157 protected abstract void processWord(byte[] in, int inOff); in processWord() argument
194 int inOff) in processWord() argument
198 int n = in[ inOff] << 24; in processWord()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/encodings/
DPKCS1Encoding.java184 int inOff, in processBlock() argument
190 return encodeBlock(in, inOff, inLen); in processBlock()
194 return decodeBlock(in, inOff, inLen); in processBlock()
200 int inOff, in encodeBlock() argument
240 System.arraycopy(in, inOff, block, block.length - inLen, inLen); in encodeBlock()
302 private byte[] decodeBlockOrRandom(byte[] in, int inOff, int inLen) in decodeBlockOrRandom() argument
310 byte[] block = engine.processBlock(in, inOff, inLen); in decodeBlockOrRandom()
365 int inOff, in decodeBlock() argument
375 return this.decodeBlockOrRandom(in, inOff, inLen); in decodeBlock()
378 byte[] block = engine.processBlock(in, inOff, inLen); in decodeBlock()
DOAEPEncoding.java125 int inOff, in processBlock() argument
131 return encodeBlock(in, inOff, inLen); in processBlock()
135 return decodeBlock(in, inOff, inLen); in processBlock()
141 int inOff, in encodeBlock() argument
150 System.arraycopy(in, inOff, block, block.length - inLen, inLen); in encodeBlock()
208 int inOff, in decodeBlock() argument
212 byte[] data = engine.processBlock(in, inOff, inLen); in decodeBlock()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/macs/
DCBCBlockCipherMac.java137 int inOff, in update() argument
150 System.arraycopy(in, inOff, buf, bufOff, gapLen); in update()
156 inOff += gapLen; in update()
160 cipher.processBlock(in, inOff, mac, 0); in update()
163 inOff += blockSize; in update()
167 System.arraycopy(in, inOff, buf, bufOff, len); in update()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/
DStreamBlockCipher.java32 public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) in processBytes() argument
40 if (inOff + len > in.length) in processBytes()
45 int inStart = inOff; in processBytes()
46 int inEnd = inOff + len; in processBytes()
DBufferedBlockCipher.java193 int inOff, in processBytes() argument
220 System.arraycopy(in, inOff, buf, bufOff, gapLen); in processBytes()
226 inOff += gapLen; in processBytes()
230 resultLen += cipher.processBlock(in, inOff, out, outOff + resultLen); in processBytes()
233 inOff += blockSize; in processBytes()
237 System.arraycopy(in, inOff, buf, bufOff, len); in processBytes()
DWrapper.java14 public byte[] wrap(byte[] in, int inOff, int inLen); in wrap() argument
16 public byte[] unwrap(byte[] in, int inOff, int inLen) in unwrap() argument
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/digests/
DGeneralDigest.java70 int inOff, in update() argument
83 xBuf[xBufOff++] = in[inOff + i++]; in update()
99 processWord(in, inOff + i); in update()
107 xBuf[xBufOff++] = in[inOff + i++]; in update()
155 protected abstract void processWord(byte[] in, int inOff); in processWord() argument
DLongDigest.java133 int inOff, in update() argument
141 update(in[inOff]); in update()
143 inOff++; in update()
152 processWord(in, inOff); in update()
154 inOff += xBuf.length; in update()
164 update(in[inOff]); in update()
166 inOff++; in update()
218 int inOff) in processWord() argument
220 W[wOff] = Pack.bigEndianToLong(in, inOff); in processWord()

123