Home
last modified time | relevance | path

Searched refs:toByteArray (Results 1 – 25 of 464) sorted by relevance

12345678910>>...19

/external/conscrypt/src/main/java/org/conscrypt/
DOpenSSLRSAPrivateCrtKey.java82 modulus.toByteArray(), in init()
83 publicExponent == null ? null : publicExponent.toByteArray(), in init()
84 privateExponent.toByteArray(), in init()
85 primeP == null ? null : primeP.toByteArray(), in init()
86 primeQ == null ? null : primeQ.toByteArray(), in init()
87 primeExponentP == null ? null : primeExponentP.toByteArray(), in init()
88 primeExponentQ == null ? null : primeExponentQ.toByteArray(), in init()
89 crtCoefficient == null ? null : crtCoefficient.toByteArray())); in init()
128 modulus.toByteArray(), in getInstance()
129 publicExponent == null ? null : publicExponent.toByteArray(), in getInstance()
[all …]
DOpenSSLRSAPublicKey.java51 spec.getModulus().toByteArray(), in OpenSSLRSAPublicKey()
52 spec.getPublicExponent().toByteArray(), in OpenSSLRSAPublicKey()
67 rsaPublicKey.getModulus().toByteArray(), in getInstance()
68 rsaPublicKey.getPublicExponent().toByteArray(), in getInstance()
174 modulus.toByteArray(), in readObject()
175 publicExponent.toByteArray(), in readObject()
DOpenSSLRSAPrivateKey.java74 modulus.toByteArray(), in init()
76 privateExponent.toByteArray(), in init()
102 .getModulus().toByteArray()), true); in wrapPlatformKey()
123 NativeCrypto.getRSAPrivateKeyWrapper(privateKey, modulus.toByteArray()), true); in wrapJCAPrivateKeyForTLSStackOnly()
146 modulus.toByteArray(), in getInstance()
148 privateExponent.toByteArray(), in getInstance()
288 modulus.toByteArray(), in readObject()
290 privateExponent.toByteArray(), in readObject()
DOpenSSLECGroupContext.java145 p.toByteArray(), a.toByteArray(), b.toByteArray(), x.toByteArray(), in getInstance()
146 y.toByteArray(), order.toByteArray(), cofactor); in getInstance()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
DASN1InputStream.java146 return new DERApplicationSpecific(isConstructed, tagNo, defIn.toByteArray()); in buildObject()
175 return new LazyEncodedSequence(defIn.toByteArray()); in buildObject()
396 return defIn.toByteArray(); in getBuffer()
441 return new ASN1GeneralizedTime(defIn.toByteArray()); in createPrimitiveDERObject()
443 return new DERGeneralString(defIn.toByteArray()); in createPrimitiveDERObject()
445 return new DERIA5String(defIn.toByteArray()); in createPrimitiveDERObject()
447 return new ASN1Integer(defIn.toByteArray(), false); in createPrimitiveDERObject()
451 return new DERNumericString(defIn.toByteArray()); in createPrimitiveDERObject()
455 return new DEROctetString(defIn.toByteArray()); in createPrimitiveDERObject()
457 return new DERPrintableString(defIn.toByteArray()); in createPrimitiveDERObject()
[all …]
DASN1Object.java28 return bOut.toByteArray(); in getEncoded()
49 return bOut.toByteArray(); in getEncoded()
58 return bOut.toByteArray(); in getEncoded()
DBERConstructedOctetString.java42 return bOut.toByteArray(); in toBytes()
67 super(toByteArray(obj)); in BERConstructedOctetString()
70 private static byte[] toByteArray(ASN1Primitive obj) in toByteArray() method in BERConstructedOctetString
/external/protobuf/java/src/test/java/com/google/protobuf/
DCodedOutputStreamTest.java88 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteVarint()
100 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteVarint()
116 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteVarint()
125 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteVarint()
170 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteLittleEndian32()
178 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteLittleEndian32()
192 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteLittleEndian64()
200 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteLittleEndian64()
283 byte[] rawBytes = message.toByteArray(); in testWriteWholeMessage()
284 assertEqualBytes(TestUtil.getGoldenMessage().toByteArray(), rawBytes); in testWriteWholeMessage()
[all …]
DByteStringTest.java94 isArrayRange(substring.toByteArray(), bytes, 500, bytes.length - 500)); in testSubstring_BeginIndex()
101 isArrayRange(byteString.toByteArray(), bytes, 500, 200)); in testCopyFrom_BytesOffsetSize()
108 isArray(byteString.toByteArray(), bytes)); in testCopyFrom_Bytes()
118 isArrayRange(byteString.toByteArray(), bytes, 500, 200)); in testCopyFrom_ByteBufferSize()
128 isArrayRange(byteString.toByteArray(), bytes, 500, bytes.length - 500)); in testCopyFrom_ByteBuffer()
136 isArrayRange(byteString.toByteArray(), testBytes, 0, testBytes.length)); in testCopyFrom_StringEncoding()
144 isArrayRange(byteString.toByteArray(), testBytes, 0, testBytes.length)); in testCopyFrom_Utf8()
153 isArrayRange(byteString.toByteArray(), testBytes, 0, testBytes.length)); in testCopyFrom_Iterable()
190 byte[] originalValue = byteString.toByteArray(); in testReadFrom_mutating()
195 byte[] newValue = byteString.toByteArray(); in testReadFrom_mutating()
[all …]
DNanoTest.java104 byte [] result = MessageNano.toByteArray(msg); in testSimpleMessageNano()
143 byte [] result = MessageNano.toByteArray(msg); in testRecursiveMessageNano()
161 assertEquals(0, MessageNano.toByteArray(msg).length); in testMessageNoFields()
173 byte [] result = MessageNano.toByteArray(msg); in testNanoRequiredInt32()
193 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalInt32()
214 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalInt64()
235 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalUint32()
256 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalUint64()
277 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalSint32()
298 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalSint64()
[all …]
DMicroTest.java93 byte [] result = msg.toByteArray(); in testSimpleMessageMicro()
132 byte [] result = msg.toByteArray(); in testRecursiveMessageMicro()
169 byte [] result = msg.toByteArray(); in testMicroRequiredInt32()
196 byte [] result = msg.toByteArray(); in testMicroOptionalInt32()
222 byte [] result = msg.toByteArray(); in testMicroOptionalInt64()
248 byte [] result = msg.toByteArray(); in testMicroOptionalUint32()
274 byte [] result = msg.toByteArray(); in testMicroOptionalUint64()
300 byte [] result = msg.toByteArray(); in testMicroOptionalSint32()
326 byte [] result = msg.toByteArray(); in testMicroOptionalSint64()
352 byte [] result = msg.toByteArray(); in testMicroOptionalFixed32()
[all …]
DIsValidUtf8Test.java127 private byte[] toByteArray(int... bytes) { in toByteArray() method in IsValidUtf8Test
136 return ByteString.copyFrom(toByteArray(bytes)); in toByteString()
140 byte[] realBytes = toByteArray(bytes); in assertValidUtf8()
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/instr/
DInstrumenterTest.java139 buffer.toByteArray())).readObject(); in testSerialization()
163 new ByteArrayInputStream(buffer.toByteArray()), out, "Test"); in testInstrumentAll_Zip()
167 out.toByteArray())); in testInstrumentAll_Zip()
185 new ByteArrayInputStream(buffer.toByteArray()), out, in testInstrumentAll_BrokenClassFileInZip()
207 jarbuffer.toByteArray())), gzipOutput); in testInstrumentAll_Pack200()
212 pack200buffer.toByteArray()), out, "Test"); in testInstrumentAll_Pack200()
217 out.toByteArray())), new JarOutputStream(jarbuffer)); in testInstrumentAll_Pack200()
221 jarbuffer.toByteArray())); in testInstrumentAll_Pack200()
234 assertEquals("text", new String(out.toByteArray())); in testInstrumentAll_Other()
247 new ByteArrayInputStream(buffer.toByteArray()), out, "Test"); in testInstrumentAll_RemoveSignatures()
[all …]
/external/guava/guava-tests/test/com/google/common/io/
DByteStreamsTest.java48 assertEquals(expected, out.toByteArray()); in testCopyChannel()
290 assertEquals(0, out.toByteArray().length); in testNewDataOutput_empty()
297 assertEquals(bytes, out.toByteArray()); in testNewDataOutput_writeInt()
304 assertEquals(bytes, out.toByteArray()); in testNewDataOutput_sized()
310 assertEquals(bytes, out.toByteArray()); in testNewDataOutput_writeLong()
316 assertEquals(bytes, out.toByteArray()); in testNewDataOutput_writeByteArray()
323 assertEquals(new byte[] {0x12, 0x34}, out.toByteArray()); in testNewDataOutput_writeByte()
330 assertEquals(expected, out.toByteArray()); in testNewDataOutput_writeByteOffset()
338 assertEquals(expected, out.toByteArray()); in testNewDataOutput_writeBoolean()
344 assertEquals(new byte[] {0, 97}, out.toByteArray()); in testNewDataOutput_writeChar()
[all …]
DLittleEndianDataOutputStreamTest.java58 byte[] data = baos.toByteArray(); in testWriteLittleEndian()
89 byte[] data = baos.toByteArray(); in testWriteBytes()
106 byte[] data = baos.toByteArray(); in testWriteBytes_discardHighOrderBytes()
123 byte[] data = baos.toByteArray(); in testWriteChars()
DByteSourceTester.java111 byte[] readBytes = ByteStreams.toByteArray(in); in testOpenStream()
121 byte[] readBytes = ByteStreams.toByteArray(in); in testOpenBufferedStream()
136 assertExpectedBytes(out.toByteArray()); in testCopyTo_outputStream()
148 assertExpectedBytes(out.toByteArray()); in testCopyTo_byteSink()
181 return out.toByteArray(); in testRead_usingByteProcessor()
/external/apache-harmony/crypto/src/test/api/java.injected/javax/crypto/
DCipherOutputStreamTest.java60 byte[] result = tos.toByteArray(); in testCipherOutputStream()
78 byte[] result = tos.toByteArray(); in testWrite1()
94 byte[] result = tos.toByteArray(); in testWrite2()
111 byte[] result = tos.toByteArray(); in testWrite3()
152 byte[] result = tos.toByteArray(); in testFlush()
168 byte[] result = tos.toByteArray(); in testClose()
/external/protobuf/java/src/main/java/com/google/protobuf/nano/
DMessageNano.java99 public static final byte[] toByteArray(MessageNano msg) { in toByteArray() method in MessageNano
101 toByteArray(msg, result, 0, result.length); in toByteArray()
113 public static final void toByteArray(MessageNano msg, byte[] data, int offset, int length) { in toByteArray() method in MessageNano
174 toByteArray(a, aByteArray, 0, serializedSize); in messageNanoEquals()
175 toByteArray(b, bByteArray, 0, serializedSize); in messageNanoEquals()
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/internal/
DPack200StreamsTest.java49 Pack200Streams.pack(jarbuffer.toByteArray(), new NoCloseOutputStream( in testPack()
54 new ByteArrayInputStream(pack200buffer.toByteArray()), in testPack()
58 jarbuffer.toByteArray())); in testPack()
74 jarbuffer.toByteArray())), pack200buffer); in testUnpack()
77 new ByteArrayInputStream(pack200buffer.toByteArray()))); in testUnpack()
/external/jmdns/src/javax/jmdns/impl/
DDNSEntry.java222 protected void toByteArray(DataOutputStream dout) throws IOException { in toByteArray() method in DNSEntry
233 protected byte[] toByteArray() { in toByteArray() method in DNSEntry
237 this.toByteArray(dout); in toByteArray()
239 return bout.toByteArray(); in toByteArray()
252 byte[] thisBytes = this.toByteArray(); in compareTo()
253 byte[] thatBytes = that.toByteArray(); in compareTo()
/external/protobuf/java/src/main/java/com/google/protobuf/micro/
DMessageMicro.java74 public byte[] toByteArray() { in toByteArray() method in MessageMicro
76 toByteArray(result, 0, result.length); in toByteArray()
89 public void toByteArray(byte [] data, int offset, int length) { in toByteArray() method in MessageMicro
/external/google-tv-pairing-protocol/java/src/com/google/polo/pairing/
DHexDump.java96 return toHexString(toByteArray(b)); in toHexString()
121 return toHexString(toByteArray(i)); in toHexString()
124 public static byte[] toByteArray(byte b) in toByteArray() method in HexDump
131 public static byte[] toByteArray(int i) in toByteArray() method in HexDump
DPoloChallengeResponse.java105 byte[] clientModulus = clientPubRsa.getModulus().abs().toByteArray(); in getAlpha()
107 clientPubRsa.getPublicExponent().abs().toByteArray(); in getAlpha()
108 byte[] serverModulus = serverPubRsa.getModulus().abs().toByteArray(); in getAlpha()
110 serverPubRsa.getPublicExponent().abs().toByteArray(); in getAlpha()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/encoders/
DHex.java63 return bOut.toByteArray(); in encode()
113 return bOut.toByteArray(); in decode()
135 return bOut.toByteArray(); in decode()
DBase64.java64 return bOut.toByteArray(); in encode()
115 return bOut.toByteArray(); in decode()
138 return bOut.toByteArray(); in decode()

12345678910>>...19