/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
H A D | OpenSSLRandom.java | 37 byte[] output = new byte[numBytes]; 38 NativeCrypto.RAND_bytes(output); 39 return output;
|
H A D | OpenSSLCipherRSA.java | 230 protected int engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, argument 259 byte[] output = new byte[buffer.length]; 263 resultSize = NativeCrypto.RSA_private_encrypt(tmpBuf.length, tmpBuf, output, 266 resultSize = NativeCrypto.RSA_public_encrypt(tmpBuf.length, tmpBuf, output, 272 resultSize = NativeCrypto.RSA_private_decrypt(tmpBuf.length, tmpBuf, output, 275 resultSize = NativeCrypto.RSA_public_decrypt(tmpBuf.length, tmpBuf, output, 284 if (!encrypting && resultSize != output.length) { 285 output = Arrays.copyOf(output, resultSize); 289 return output; 293 engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument [all...] |
/libcore/luni/src/main/java/java/io/ |
H A D | Externalizable.java | 39 * Writes the receiver to the ObjectOutput <code>output</code>. 41 * @param output 44 * if an error occurs attempting to write to {@code output}. 46 public void writeExternal(ObjectOutput output) throws IOException; argument
|
H A D | EmulatedFieldsForDumping.java | 188 * @param output 196 public void write(ObjectOutput output) throws IOException { argument 197 if (!output.equals(oos)) { 204 output.writeInt(fieldValue != null ? ((Integer) fieldValue).intValue() : 0); 206 output.writeByte(fieldValue != null ? ((Byte) fieldValue).byteValue() : 0); 208 output.writeChar(fieldValue != null ? ((Character) fieldValue).charValue() : 0); 210 output.writeShort(fieldValue != null ? ((Short) fieldValue).shortValue() : 0); 212 output.writeBoolean(fieldValue != null ? ((Boolean) fieldValue).booleanValue() : false); 214 output.writeLong(fieldValue != null ? ((Long) fieldValue).longValue() : 0); 216 output [all...] |
H A D | ObjectOutputStream.java | 57 private DataOutputStream output; field in class:ObjectOutputStream 257 * {@code output}. 259 * @param output 266 public ObjectOutputStream(OutputStream output) throws IOException { argument 267 this.output = (output instanceof DataOutputStream) ? (DataOutputStream) output 268 : new DataOutputStream(output); 277 primitiveTypes = this.output; 284 * Writes optional information for class {@code aClass} to the output [all...] |
H A D | StringWriter.java | 229 String output = csq.subSequence(start, end).toString(); 230 write(output, 0, output.length());
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
H A D | MessageDigest2Test.java | 103 DataOutputStream output = new DataOutputStream(out); 106 output.writeUTF("tests.api.java.security.MessageDigestTest$InitializerFieldsTest3"); 107 output.writeInt(0); // class modifiers 108 output.writeUTF("java.io.Serializable"); // interfaces 111 output.writeUTF("sub_toBeNotSerialized"); // name 112 output.writeInt(9); // modifiers 113 output.writeUTF("Ljava/lang/String;"); // signature 115 output.writeUTF("sub_toBeNotSerialized2"); // name 116 output.writeInt(9); // modifiers 117 output [all...] |
/libcore/luni/src/main/java/java/lang/ |
H A D | CaseMapper.java | 148 char[] output = null; 157 if (output != null && i >= output.length) { 158 char[] newoutput = new char[output.length + (count / 6) + 2]; 159 System.arraycopy(output, 0, newoutput, 0, output.length); 160 output = newoutput; 164 if (output == null) { 165 output = new char[count]; 167 System.arraycopy(value, offset, output, [all...] |
/libcore/luni/src/main/java/java/nio/charset/ |
H A D | CharsetEncoder.java | 29 * output byte sequence is a {@link java.nio.ByteBuffer ByteBuffer}. 38 * The input buffer must be filled and the output buffer must be flushed between invocations. 41 * input buffer has been exhausted, the output buffer has been filled, or an 44 * the output buffer, or recovering from an error and try again, accordingly. 48 * <li>Invoke {@link #flush(ByteBuffer)} to flush remaining output.</li> 280 ByteBuffer output = ByteBuffer.allocate(length); 283 result = encode(in, output, false); 287 output = allocateMore(output); 292 result = encode(in, output, tru 330 allocateMore(ByteBuffer output) argument [all...] |
H A D | CharsetDecoder.java | 29 * {@link java.nio.ByteBuffer ByteBuffer} and the output character sequence is a 38 * output buffer must be flushed between invocations;</li> 43 * output.</li> 48 * bytes have run out, the output buffer has been filled or some error has 51 * further action, which includes filling the input buffer, flushing the output 187 CharBuffer output = CharBuffer.allocate(length); 190 result = decode(in, output, false); 195 output = allocateMore(output); 198 result = decode(in, output, tru 232 allocateMore(CharBuffer output) argument [all...] |
H A D | CharsetDecoderICU.java | 30 * data[INPUT_OFFSET] = on input contains the start of input and on output the number of input bytes consumed 31 * data[OUTPUT_OFFSET] = on input contains the start of output and on output the number of output chars written 40 private char[] output= null; field in class:CharsetDecoderICU 94 output = null; 112 int error = NativeConverter.decode(converterHandle, input, inEnd, output, outEnd, data, true); 138 int error = NativeConverter.decode(converterHandle, input, inEnd, output, outEnd, data, false); 169 output = out.array(); 178 output [all...] |
H A D | CharsetEncoderICU.java | 45 * data[INPUT_OFFSET] = on input contains the start of input and on output the number of input chars consumed 46 * data[OUTPUT_OFFSET] = on input contains the start of output and on output the number of output bytes written 55 private byte[] output = null; field in class:CharsetEncoderICU 122 output = null; 140 int error = NativeConverter.encode(converterHandle, input, inEnd, output, outEnd, data, true); 167 int error = NativeConverter.encode(converterHandle, input, inEnd, output, outEnd, data, false); 206 output = out.array(); 215 output [all...] |
/libcore/luni/src/test/java/libcore/java/util/zip/ |
H A D | DeflaterOutputStreamTest.java | 59 * output. 104 // make output buffer large enough that even if compressed it 107 byte[] output = new byte[outputBufferSize]; 108 for (int i = 0; i < output.length; i++) { 109 output[i] = (byte) i; 111 dos.write(output); 125 byte[] input = new byte[output.length]; 142 assertEquals(output.length, total); 143 assertTrue(Arrays.equals(input, output));
|
H A D | OldAndroidDeflateTest.java | 47 byte[] output = new byte[100]; 51 int compressedDataLength = compresser.deflate(output); 55 decompresser.setInput(output, 0, compressedDataLength); 78 byte[] output = new byte[128 * 1024 + 512]; 85 expand(inflater, comp, (int) deflater.getBytesWritten(), output); 121 * and output to exercise that part of the code. 151 // deflate to current position in output buffer 157 //System.out.println("Compressed " + want + ", output " + compCount); 187 // inflate to current position in output buffer 193 //System.out.println("Expanded " + want + ", output " [all...] |
/libcore/luni/src/main/java/javax/crypto/ |
H A D | CipherSpi.java | 125 * The actual output length of the next call to {@code update} or {@code 288 * transformed bytes are stored in the {@code output} buffer. 290 * If the size of the {@code output} buffer is too small to hold the result, 293 * output buffer. 301 * @param output 302 * the output buffer. 304 * the offset in the output buffer. 305 * @return the number of bytes placed in output. 307 * if the size of the {@code output} buffer is too small. 310 int inputLen, byte[] output, in 309 engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument 331 engineUpdate(ByteBuffer input, ByteBuffer output) argument 419 engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument 451 engineDoFinal(ByteBuffer input, ByteBuffer output) argument [all...] |
H A D | Cipher.java | 389 * Returns the length in bytes an output buffer needs to be when this cipher 394 * @return the output buffer length for the input length. 910 * transformed bytes are stored in the {@code output} buffer. 912 * If the size of the {@code output} buffer is too small to hold the result, 915 * output buffer. 923 * @param output 924 * the output buffer. 925 * @return the number of bytes placed in output. 927 * if the size of the {@code output} buffer is too small. 932 * if the input is {@code null}, the output i 936 update(byte[] input, int inputOffset, int inputLen, byte[] output) argument 971 update(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument 1017 update(ByteBuffer input, ByteBuffer output) argument 1076 doFinal(byte[] output, int outputOffset) argument 1179 doFinal(byte[] input, int inputOffset, int inputLen, byte[] output) argument 1217 doFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument 1255 doFinal(ByteBuffer input, ByteBuffer output) argument [all...] |
H A D | ExemptionMechanismSpi.java | 50 * into the {@code output} buffer at offset {@code outputOffset}. 52 * @param output 53 * the output buffer for the result key blob. 55 * the offset in the output buffer to start. 56 * @return the number of bytes written to the {@code output} buffer. 62 protected abstract int engineGenExemptionBlob(byte[] output, argument 67 * Returns the size in bytes for the output buffer needed to hold the output 73 * @return the size in bytes for the output buffer.
|
H A D | Mac.java | 333 * output} buffer at offset {@code outOffset}. 339 * @param output 340 * the output buffer 342 * the offset in the output buffer 344 * if the specified output buffer is either too small for the 345 * digest to be stored, the specified output buffer is {@code 347 * of the output buffer. 351 public final void doFinal(byte[] output, int outOffset) argument 356 if (output == null) { 357 throw new ShortBufferException("output [all...] |
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
H A D | CipherSymmetricKeyThread.java | 35 byte[] output = new byte[128]; 57 cip.doFinal(input, 0, input.length, output); 62 cip.doFinal(output, 0, outputSize, decrypted); 65 cip.doFinal(input, 0, input.length, output); 68 cip.doFinal(output, 0, outputSize, decrypted);
|
H A D | CipherPBEThread.java | 36 byte[] output = new byte[128]; 53 cip.doFinal(input, 0, input.length, output); 56 cip.doFinal(output, 0, outputSize, decrypted);
|
H A D | CipherRSAThread.java | 32 byte[] output = new byte[256]; 43 cip.doFinal(input, 0, input.length, output); 46 cip.doFinal(output, 0, outputSize, decrypted);
|
H A D | CipherWrapThread.java | 40 byte[] output = cip.wrap(key); 42 Key decrypted = cip.unwrap(output, getAlgName(), Cipher.SECRET_KEY);
|
/libcore/luni/src/main/java/org/apache/harmony/crypto/internal/ |
H A D | NullCipherSpi.java | 107 byte[] output, int outputOffset) throws ShortBufferException { 111 System.arraycopy(input, inputOffset, output, outputOffset, inputLen); 116 public int engineUpdate(ByteBuffer input, ByteBuffer output) argument 120 } else if (output == null) { 121 throw new NullPointerException("output == null"); 125 output.put(input); 127 throw new ShortBufferException("output buffer too small"); 143 byte[] output, int outputOffset) throws ShortBufferException, 145 int result = engineUpdate(input, inputOffset, inputLen, output, 151 public int engineDoFinal(ByteBuffer input, ByteBuffer output) argument 106 engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument 142 engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument [all...] |
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
H A D | CipherSpiTest.java | 56 protected int engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, argument 59 return super.engineDoFinal(input, inputOffset, inputLen, output, outputOffset); 116 protected int engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, argument 118 return super.engineUpdate(input, inputOffset, inputLen, output, outputOffset); 210 * throws ShortBufferException is there is no space in output to hold result 262 * throws ShortBufferException is there is no space in output to hold result 365 byte[] output, int outputOffset) throws ShortBufferException { 368 if ((output.length - outputOffset) < t) { 372 output[i + outputOffset] = initV[i]; 390 byte[] output, in 364 engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument 389 engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) argument 405 engineUpdate(ByteBuffer input, ByteBuffer output) argument 409 engineDoFinal(ByteBuffer input, ByteBuffer output) argument [all...] |
/libcore/luni/src/main/java/libcore/icu/ |
H A D | NativeConverter.java | 19 char[] output, int outEnd, int[] data, boolean flush); 22 byte[] output, int outEnd, int[] data, boolean flush); 18 decode(long converterHandle, byte[] input, int inEnd, char[] output, int outEnd, int[] data, boolean flush) argument 21 encode(long converterHandle, char[] input, int inEnd, byte[] output, int outEnd, int[] data, boolean flush) argument
|