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

123

/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/
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 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 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/crypto/engines/
H A DAESWrapEngine.java56 int inOff,
107 int inOff,
54 wrap( byte[] in, int inOff, int inLen) argument
105 unwrap( byte[] in, int inOff, int inLen) argument
H A DRSAEngine.java92 * @param inOff the offset into the input buffer where the data starts.
99 int inOff,
106 else if (inLen == (getInputBlockSize() + 1) && (in[inOff] & (0x80 >> shift)) != 0)
113 if (inOff != 0 || inLen != in.length)
117 System.arraycopy(in, inOff, block, 0, inLen);
97 processBlock( byte[] in, int inOff, int inLen) argument
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/modes/
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
H A DCTSBlockCipher.java109 * @param inOff the offset at which the input data starts.
119 int inOff,
146 System.arraycopy(in, inOff, buf, bufOff, gapLen);
154 inOff += gapLen;
158 System.arraycopy(in, inOff, buf, bufOff, blockSize);
163 inOff += blockSize;
167 System.arraycopy(in, inOff, buf, bufOff, len);
117 processBytes( byte[] in, int inOff, int len, byte[] out, int outOff) argument
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/paddings/
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
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 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 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 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 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 DPaddedBufferedBlockCipher.java166 * @param inOff the offset at which the input data starts.
176 int inOff,
203 System.arraycopy(in, inOff, buf, bufOff, gapLen);
209 inOff += gapLen;
213 resultLen += cipher.processBlock(in, inOff, out, outOff + resultLen);
216 inOff += blockSize;
220 System.arraycopy(in, inOff, buf, bufOff, len);
174 processBytes( byte[] in, int inOff, int len, byte[] out, int outOff) argument
/dalvik/libcore/security/src/main/java/org/bouncycastle/util/encoders/
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
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 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
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/digests/
H A DShortenedDigest.java55 public void update(byte[] in, int inOff, int len) argument
57 baseDigest.update(in, inOff, len);

Completed in 150 milliseconds

123