Searched refs:inOff (Results 1 - 25 of 59) sorted by relevance

123

/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/paddings/
H A DISO7816d4Padding.java41 int inOff)
43 int added = (in.length - inOff);
45 in [inOff]= (byte) 0x80;
46 inOff ++;
48 while (inOff < in.length)
50 in[inOff] = (byte) 0;
51 inOff++;
39 addPadding( byte[] in, int inOff) argument
H A DZeroBytePadding.java40 int inOff)
42 int added = (in.length - inOff);
44 while (inOff < in.length)
46 in[inOff] = (byte) 0;
47 inOff++;
38 addPadding( byte[] in, int inOff) argument
H A DTBCPadding.java43 * passed to it inside in. i.e. if inOff is zero, indicating the
50 int inOff)
52 int count = in.length - inOff;
55 if (inOff > 0)
57 code = (byte)((in[inOff - 1] & 0x01) == 0 ? 0xff : 0x00);
64 while (inOff < in.length)
66 in[inOff] = code;
67 inOff++;
48 addPadding( byte[] in, int inOff) argument
H A DX923Padding.java43 int inOff)
45 byte code = (byte)(in.length - inOff);
47 while (inOff < in.length - 1)
51 in[inOff] = 0;
55 in[inOff] = (byte)random.nextInt();
57 inOff++;
60 in[inOff] = code;
41 addPadding( byte[] in, int inOff) argument
H A DISO10126d2Padding.java49 int inOff)
51 byte code = (byte)(in.length - inOff);
53 while (inOff < (in.length - 1))
55 in[inOff] = (byte)random.nextInt();
56 inOff++;
59 in[inOff] = code;
47 addPadding( byte[] in, int inOff) argument
H A DPKCS7Padding.java40 int inOff)
42 byte code = (byte)(in.length - inOff);
44 while (inOff < in.length)
46 in[inOff] = code;
47 inOff++;
38 addPadding( byte[] in, int inOff) argument
H A DBlockCipherPadding.java32 * passed to it inside in. i.e. if inOff is zero, indicating the
39 public int addPadding(byte[] in, int inOff); argument
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/
H A DWrapper.java14 public byte[] wrap(byte[] in, int inOff, int inLen); argument
16 public byte[] unwrap(byte[] in, int inOff, int inLen) argument
H A DAsymmetricBlockCipher.java34 * process the block of len bytes stored in in from offset inOff.
37 * @param inOff offset into the in array where the data starts
43 public byte[] processBlock(byte[] in, int inOff, int len) argument
H A DBlockCipher.java40 * @param inOff offset into the in array the data starts at.
48 public int processBlock(byte[] in, int inOff, byte[] out, int outOff) argument
H A DDigest.java33 * @param inOff the offset into the byte array where the data starts.
36 public void update(byte[] in, int inOff, int len); argument
H A DMac.java44 * @param inOff the index in the array the data begins at.
45 * @param len the length of the input starting at inOff.
49 public void update(byte[] in, int inOff, int len) argument
H A DStreamCipher.java39 * @param inOff the offset into the in array where the data to be processed starts.
45 public void processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) argument
H A DStreamBlockCipher.java75 * @param inOff the offset into the in array where the data to be processed starts.
83 int inOff,
96 cipher.processBlock(in, inOff + i, out, outOff + i);
81 processBytes( byte[] in, int inOff, int len, byte[] out, int outOff) argument
/dalvik/libcore/security/src/main/java/org/bouncycastle/util/encoders/
H A DTranslator.java14 public int encode(byte[] in, int inOff, int length, byte[] out, int outOff); argument
22 public int decode(byte[] in, int inOff, int length, byte[] out, int outOff); argument
H A DHexTranslator.java26 int inOff,
33 out[outOff + j] = hexTable[(in[inOff] >> 4) & 0x0f];
34 out[outOff + j + 1] = hexTable[in[inOff] & 0x0f];
36 inOff++;
53 int inOff,
62 left = in[inOff + i * 2];
63 right = in[inOff + i * 2 + 1];
24 encode( byte[] in, int inOff, int length, byte[] out, int outOff) argument
51 decode( byte[] in, int inOff, int length, byte[] out, int outOff) argument
H A DBufferedDecoder.java54 int inOff,
69 System.arraycopy(in, inOff, buf, bufOff, gapLen);
76 inOff += gapLen;
81 resultLen += translator.decode(in, inOff, chunkSize, out, outOff);
84 inOff += chunkSize;
89 System.arraycopy(in, inOff, buf, bufOff, len);
52 processBytes( byte[] in, int inOff, int len, byte[] out, int outOff) argument
H A DBufferedEncoder.java54 int inOff,
69 System.arraycopy(in, inOff, buf, bufOff, gapLen);
76 inOff += gapLen;
81 resultLen += translator.encode(in, inOff, chunkSize, out, outOff);
84 inOff += chunkSize;
89 System.arraycopy(in, inOff, buf, bufOff, len);
52 processBytes( byte[] in, int inOff, int len, byte[] out, int outOff) argument
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/digests/
H A DGeneralDigest.java57 int inOff,
65 update(in[inOff]);
67 inOff++;
76 processWord(in, inOff);
78 inOff += xBuf.length;
88 update(in[inOff]);
90 inOff++;
130 protected abstract void processWord(byte[] in, int inOff); argument
55 update( byte[] in, int inOff, int len) argument
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/modes/
H A DCBCBlockCipher.java114 * @param inOff offset into the in array the data starts at.
124 int inOff,
129 return (encrypting) ? encryptBlock(in, inOff, out, outOff) : decryptBlock(in, inOff, out, outOff);
147 * @param inOff offset into the in array the data starts at.
157 int inOff,
162 if ((inOff + blockSize) > in.length)
173 cbcV[i] ^= in[inOff + i];
190 * @param inOff offset into the in array the data starts at.
200 int inOff,
122 processBlock( byte[] in, int inOff, byte[] out, int outOff) argument
155 encryptBlock( byte[] in, int inOff, byte[] out, int outOff) argument
198 decryptBlock( byte[] in, int inOff, byte[] out, int outOff) argument
[all...]
H A DCFBBlockCipher.java126 * @param inOff offset into the in array the data starts at.
136 int inOff,
141 return (encrypting) ? encryptBlock(in, inOff, out, outOff) : decryptBlock(in, inOff, out, outOff);
148 * @param inOff offset into the in array the data starts at.
158 int inOff,
163 if ((inOff + blockSize) > in.length)
180 out[outOff + i] = (byte)(cfbOutV[i] ^ in[inOff + i]);
196 * @param inOff offset into the in array the data starts at.
206 int inOff,
134 processBlock( byte[] in, int inOff, byte[] out, int outOff) argument
156 encryptBlock( byte[] in, int inOff, byte[] out, int outOff) argument
204 decryptBlock( byte[] in, int inOff, byte[] out, int outOff) argument
[all...]
H A DPaddedBlockCipher.java115 * @param inOff the offset at which the input data starts.
124 int inOff,
151 System.arraycopy(in, inOff, buf, bufOff, gapLen);
157 inOff += gapLen;
161 resultLen += cipher.processBlock(in, inOff, out, outOff + resultLen);
164 inOff += blockSize;
168 System.arraycopy(in, inOff, buf, bufOff, len);
122 processBytes( byte[] in, int inOff, int len, byte[] out, int outOff) argument
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/engines/
H A DNullEngine.java51 public int processBlock(byte[] in, int inOff, byte[] out, int outOff) argument
54 if ((inOff + BLOCK_SIZE) > in.length)
66 out[outOff + i] = in[inOff + i];
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/macs/
H A DBlockCipherMac.java96 int inOff,
110 System.arraycopy(in, inOff, buf, bufOff, gapLen);
116 inOff += gapLen;
120 resultLen += cipher.processBlock(in, inOff, mac, 0);
123 inOff += blockSize;
127 System.arraycopy(in, inOff, buf, bufOff, len);
94 update( byte[] in, int inOff, int len) argument
H A DCBCBlockCipherMac.java139 int inOff,
153 System.arraycopy(in, inOff, buf, bufOff, gapLen);
159 inOff += gapLen;
163 resultLen += cipher.processBlock(in, inOff, mac, 0);
166 inOff += blockSize;
170 System.arraycopy(in, inOff, buf, bufOff, len);
137 update( byte[] in, int inOff, int len) argument

Completed in 226 milliseconds

123