Searched defs:in (Results 26 - 50 of 213) sorted by relevance

123456789

/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/
H A DDigest.java16 * return the size, in bytes, of the digest produced by this message digest.
18 * @return the size, in bytes, of the digest produced by this message digest.
25 * @param in the input byte to be entered.
27 public void update(byte in); argument
32 * @param in the byte array containing the data.
36 public void update(byte[] in, int inOff, int len); argument
H A DMac.java27 * Return the block size for this MAC (in bytes).
29 * @return the block size for this MAC in bytes.
36 * @param in the byte to be processed.
39 public void update(byte in) argument
43 * @param in the array containing the input.
44 * @param inOff the index in the array the data begins at.
47 * @exception DataLengthException if there isn't enough data in in.
49 public void update(byte[] in, int inOff, int len) argument
56 * doFinal leaves the MAC in th
[all...]
H A DSigner.java22 * update the internal digest with the byte array in
24 public void update(byte[] in, int off, int len); argument
35 * in the passed in array.
H A DStreamCipher.java30 * @param in the byte to be processed.
33 public byte returnByte(byte in); argument
36 * process a block of bytes from in putting the result into out.
38 * @param in the input byte array.
39 * @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
49 * reset the cipher. This leaves it in the same state
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
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/engines/
H A DAESWrapEngine.java55 byte[] in,
75 System.arraycopy(in, 0, block, iv.length, inLen);
106 byte[] in,
127 System.arraycopy(in, 0, a, 0, iv.length);
128 System.arraycopy(in, iv.length, block, 0, inLen - iv.length);
54 wrap( byte[] in, int inOff, int inLen) argument
105 unwrap( byte[] in, int inOff, int inLen) argument
H A DRSAEngine.java91 * @param in the input array.
98 byte[] in,
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);
121 block = in;
153 h = h.mod(p); // mod (in Java) returns the positive residual
97 processBlock( byte[] in, int inOff, int inLen) argument
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/modes/
H A DPaddedBlockCipher.java9 * A wrapper class that allows block ciphers to be used to process data in
12 * or on a doFinal (unless the current block in the buffer is a pad block).
13 * The padding mechanism used is the one outlined in PKCS5/PKCS7.
86 * @param in the input byte.
89 * @exception DataLengthException if there isn't enough space in out.
93 byte in,
106 buf[bufOff++] = in;
114 * @param in the input byte array.
119 * @exception DataLengthException if there isn't enough space in out.
123 byte[] in,
92 processByte( byte in, byte[] out, int outOff) argument
122 processBytes( byte[] in, int inOff, int len, byte[] out, int outOff) argument
[all...]
/dalvik/libcore/security/src/main/java/org/bouncycastle/crypto/paddings/
H A DBlockCipherPadding.java28 * add the pad bytes to the passed in block, returning the
32 * passed to it inside in. i.e. if inOff is zero, indicating the
33 * entire block is to be overwritten with padding the value of in
39 public int addPadding(byte[] in, int inOff); argument
42 * return the number of pad bytes present in the block.
46 public int padCount(byte[] in) argument
H A DISO10126d2Padding.java44 * add the pad bytes to the passed in block, returning the
48 byte[] in,
51 byte code = (byte)(in.length - inOff);
53 while (inOff < (in.length - 1))
55 in[inOff] = (byte)random.nextInt();
59 in[inOff] = code;
65 * return the number of pad bytes present in the block.
67 public int padCount(byte[] in) argument
70 int count = in[in
47 addPadding( byte[] in, int inOff) argument
[all...]
H A DISO7816d4Padding.java8 * A padder that adds the padding according to the scheme referenced in
36 * add the pad bytes to the passed in block, returning the
40 byte[] in,
43 int added = (in.length - inOff);
45 in [inOff]= (byte) 0x80;
48 while (inOff < in.length)
50 in[inOff] = (byte) 0;
58 * return the number of pad bytes present in the block.
60 public int padCount(byte[] in) argument
63 int count = in
39 addPadding( byte[] in, int inOff) argument
[all...]
H A DPKCS7Padding.java35 * add the pad bytes to the passed in block, returning the
39 byte[] in,
42 byte code = (byte)(in.length - inOff);
44 while (inOff < in.length)
46 in[inOff] = code;
54 * return the number of pad bytes present in the block.
56 public int padCount(byte[] in) argument
59 int count = in[in.length - 1] & 0xff;
61 if (count > in
38 addPadding( byte[] in, int inOff) argument
[all...]
H A DTBCPadding.java39 * add the pad bytes to the passed in block, returning the
43 * passed to it inside in. i.e. if inOff is zero, indicating the
44 * entire block is to be overwritten with padding the value of in
49 byte[] in,
52 int count = in.length - inOff;
57 code = (byte)((in[inOff - 1] & 0x01) == 0 ? 0xff : 0x00);
61 code = (byte)((in[in.length - 1] & 0x01) == 0 ? 0xff : 0x00);
64 while (inOff < in.length)
66 in[inOf
48 addPadding( byte[] in, int inOff) argument
76 padCount(byte[] in) argument
[all...]
H A DX923Padding.java9 * passed in random padding is assumed, otherwise padding with zeros is used.
38 * add the pad bytes to the passed in block, returning the
42 byte[] in,
45 byte code = (byte)(in.length - inOff);
47 while (inOff < in.length - 1)
51 in[inOff] = 0;
55 in[inOff] = (byte)random.nextInt();
60 in[inOff] = code;
66 * return the number of pad bytes present in the block.
68 public int padCount(byte[] in) argument
41 addPadding( byte[] in, int inOff) argument
[all...]
H A DZeroBytePadding.java35 * add the pad bytes to the passed in block, returning the
39 byte[] in,
42 int added = (in.length - inOff);
44 while (inOff < in.length)
46 in[inOff] = (byte) 0;
54 * return the number of pad bytes present in the block.
56 public int padCount(byte[] in) argument
59 int count = in.length;
63 if (in[count - 1] != 0)
71 return in
38 addPadding( byte[] in, int inOff) argument
[all...]
/dalvik/libcore/security/src/main/java/org/bouncycastle/util/encoders/
H A DBufferedDecoder.java6 * be done in discrete chunks.
35 byte in,
41 buf[bufOff++] = in;
53 byte[] in,
69 System.arraycopy(in, inOff, buf, bufOff, gapLen);
81 resultLen += translator.decode(in, inOff, chunkSize, out, outOff);
89 System.arraycopy(in, inOff, buf, bufOff, len);
34 processByte( byte in, byte[] out, int outOff) argument
52 processBytes( byte[] in, int inOff, int len, byte[] out, int outOff) argument
H A DBufferedEncoder.java6 * be done in discrete chunks.
35 byte in,
41 buf[bufOff++] = in;
53 byte[] in,
69 System.arraycopy(in, inOff, buf, bufOff, gapLen);
81 resultLen += translator.encode(in, inOff, chunkSize, out, outOff);
89 System.arraycopy(in, inOff, buf, bufOff, len);
34 processByte( byte in, byte[] out, int outOff) argument
52 processBytes( byte[] in, int inOff, int len, byte[] out, int outOff) argument
H A DHexTranslator.java25 byte[] in,
33 out[outOff + j] = hexTable[(in[inOff] >> 4) & 0x0f];
34 out[outOff + j + 1] = hexTable[in[inOff] & 0x0f];
52 byte[] in,
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/support/src/test/java/tests/support/
H A DSupport_Exec.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
139 private static Callable<String> streamToStringCallable(final InputStream in) { argument
143 Reader reader = new InputStreamReader(in);
H A DThrowingReader.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
33 public ThrowingReader(Reader in, int throwAt) { argument
34 super(in);
/dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DCertificateMessage.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
47 * Certificates in encoded form
54 * @param in
58 public CertificateMessage(HandshakeIODataStream in, int length) argument
60 int l = in.readUint24(); // total_length
82 size = in.readUint24();
85 certs_vector.add(cf.generateCertificate(in));
H A DCertificateVerify.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
56 * @param in
60 public CertificateVerify(HandshakeIODataStream in, int length) argument
66 if (in.readUint16() != length - 2) {
70 signedHash = in.read(length -2);
H A DFinished.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
47 * @param in
51 public Finished(HandshakeIODataStream in, int length) argument
54 data = in.read(length);
H A DHelloRequest.java6 * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
44 * @param in
48 public HelloRequest(HandshakeIODataStream in, int length) argument

Completed in 212 milliseconds

123456789