Home
last modified time | relevance | path

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

12345678910>>...13

/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 …]
DOpenSSLDSAPublicKey.java49 dsaKeySpec.getP().toByteArray(), in OpenSSLDSAPublicKey()
50 dsaKeySpec.getQ().toByteArray(), in OpenSSLDSAPublicKey()
51 dsaKeySpec.getG().toByteArray(), in OpenSSLDSAPublicKey()
52 dsaKeySpec.getY().toByteArray(), in OpenSSLDSAPublicKey()
69 dsaParams.getP().toByteArray(), in getInstance()
70 dsaParams.getQ().toByteArray(), in getInstance()
71 dsaParams.getG().toByteArray(), in getInstance()
72 dsaPublicKey.getY().toByteArray(), in getInstance()
174 p.toByteArray(), in readObject()
175 q.toByteArray(), in readObject()
[all …]
DOpenSSLDSAPrivateKey.java49 dsaKeySpec.getP().toByteArray(), in OpenSSLDSAPrivateKey()
50 dsaKeySpec.getQ().toByteArray(), in OpenSSLDSAPrivateKey()
51 dsaKeySpec.getG().toByteArray(), in OpenSSLDSAPrivateKey()
53 dsaKeySpec.getX().toByteArray())); in OpenSSLDSAPrivateKey()
77 dsaParams.getP().toByteArray(), in getInstance()
78 dsaParams.getQ().toByteArray(), in getInstance()
79 dsaParams.getG().toByteArray(), in getInstance()
81 dsaPrivateKey.getX().toByteArray())); in getInstance()
226 p.toByteArray(), in readObject()
227 q.toByteArray(), in readObject()
[all …]
DOpenSSLDHPublicKey.java59 dsaKeySpec.getP().toByteArray(), in OpenSSLDHPublicKey()
60 dsaKeySpec.getG().toByteArray(), in OpenSSLDHPublicKey()
61 dsaKeySpec.getY().toByteArray(), in OpenSSLDHPublicKey()
88 dhParams.getP().toByteArray(), in getInstance()
89 dhParams.getG().toByteArray(), in getInstance()
90 DHPublicKey.getY().toByteArray(), in getInstance()
194 p.toByteArray(), in readObject()
195 g.toByteArray(), in readObject()
196 y.toByteArray(), in readObject()
DOpenSSLDHPrivateKey.java60 dhKeySpec.getP().toByteArray(), in OpenSSLDHPrivateKey()
61 dhKeySpec.getG().toByteArray(), in OpenSSLDHPrivateKey()
63 dhKeySpec.getX().toByteArray())); in OpenSSLDHPrivateKey()
89 dhParams.getP().toByteArray(), in getInstance()
90 dhParams.getG().toByteArray(), in getInstance()
92 dhPrivateKey.getX().toByteArray())); in getInstance()
225 p.toByteArray(), in readObject()
226 g.toByteArray(), in readObject()
228 x.toByteArray())); in readObject()
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()
DOpenSSLECGroupContext.java59 final long ctx = NativeCrypto.EC_GROUP_new_curve(type, p.toByteArray(), a.toByteArray(), in getInstance()
60 b.toByteArray()); in getInstance()
74 x.toByteArray(), y.toByteArray()); in getInstance()
76 NativeCrypto.EC_GROUP_set_generator(ctx, generator.getContext(), n.toByteArray(), in getInstance()
77 h.toByteArray()); in getInstance()
DOpenSSLRSAPrivateKey.java71 modulus.toByteArray(), in init()
73 privateExponent.toByteArray(), in init()
99 .getModulus().toByteArray())); in wrapPlatformKey()
122 modulus.toByteArray(), in getInstance()
124 privateExponent.toByteArray(), in getInstance()
271 modulus.toByteArray(), in readObject()
273 privateExponent.toByteArray(), in readObject()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
DASN1InputStream.java140 return new DERApplicationSpecific(isConstructed, tagNo, defIn.toByteArray()); in buildObject()
169 return new LazyEncodedSequence(defIn.toByteArray()); in buildObject()
390 return defIn.toByteArray(); in getBuffer()
435 return new ASN1GeneralizedTime(defIn.toByteArray()); in createPrimitiveDERObject()
437 return new DERGeneralString(defIn.toByteArray()); in createPrimitiveDERObject()
439 return new DERIA5String(defIn.toByteArray()); in createPrimitiveDERObject()
441 return new ASN1Integer(defIn.toByteArray()); in createPrimitiveDERObject()
445 return new DERNumericString(defIn.toByteArray()); in createPrimitiveDERObject()
449 return new DEROctetString(defIn.toByteArray()); in createPrimitiveDERObject()
451 return new DERPrintableString(defIn.toByteArray()); in createPrimitiveDERObject()
[all …]
DASN1Object.java23 return bOut.toByteArray(); in getEncoded()
44 return bOut.toByteArray(); in getEncoded()
53 return bOut.toByteArray(); in getEncoded()
/external/chromium_org/third_party/protobuf/java/src/test/java/com/google/protobuf/
DCodedOutputStreamTest.java87 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteVarint()
99 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteVarint()
115 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteVarint()
124 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteVarint()
169 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteLittleEndian32()
177 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteLittleEndian32()
191 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteLittleEndian64()
199 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteLittleEndian64()
282 byte[] rawBytes = message.toByteArray(); in testWriteWholeMessage()
283 assertEqualBytes(TestUtil.getGoldenMessage().toByteArray(), rawBytes); in testWriteWholeMessage()
[all …]
DByteStringTest.java93 isArrayRange(substring.toByteArray(), bytes, 500, bytes.length - 500)); in testSubstring_BeginIndex()
100 isArrayRange(byteString.toByteArray(), bytes, 500, 200)); in testCopyFrom_BytesOffsetSize()
107 isArray(byteString.toByteArray(), bytes)); in testCopyFrom_Bytes()
117 isArrayRange(byteString.toByteArray(), bytes, 500, 200)); in testCopyFrom_ByteBufferSize()
127 isArrayRange(byteString.toByteArray(), bytes, 500, bytes.length - 500)); in testCopyFrom_ByteBuffer()
135 isArrayRange(byteString.toByteArray(), testBytes, 0, testBytes.length)); in testCopyFrom_StringEncoding()
143 isArrayRange(byteString.toByteArray(), testBytes, 0, testBytes.length)); in testCopyFrom_Utf8()
152 isArrayRange(byteString.toByteArray(), testBytes, 0, testBytes.length)); in testCopyFrom_Iterable()
189 byte[] originalValue = byteString.toByteArray(); in testReadFrom_mutating()
194 byte[] newValue = byteString.toByteArray(); in testReadFrom_mutating()
[all …]
/external/protobuf/java/src/test/java/com/google/protobuf/
DCodedOutputStreamTest.java86 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteVarint()
98 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteVarint()
114 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteVarint()
123 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteVarint()
168 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteLittleEndian32()
176 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteLittleEndian32()
190 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteLittleEndian64()
198 assertEqualBytes(data, rawOutput.toByteArray()); in assertWriteLittleEndian64()
281 byte[] rawBytes = message.toByteArray(); in testWriteWholeMessage()
282 assertEqualBytes(TestUtil.getGoldenMessage().toByteArray(), rawBytes); in testWriteWholeMessage()
[all …]
DNanoTest.java99 byte [] result = MessageNano.toByteArray(msg); in testSimpleMessageNano()
138 byte [] result = MessageNano.toByteArray(msg); in testRecursiveMessageNano()
156 assertEquals(0, MessageNano.toByteArray(msg).length); in testMessageNoFields()
168 byte [] result = MessageNano.toByteArray(msg); in testNanoRequiredInt32()
188 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalInt32()
209 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalInt64()
230 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalUint32()
251 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalUint64()
272 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalSint32()
293 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 …]
/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/guava/guava-tests/test/com/google/common/io/
DByteStreamsTest.java127 ByteStreams.toByteArray(ByteStreams.newInputStreamSupplier(range)))); in testByteSuppliers()
129 byte[] subRange = ByteStreams.toByteArray( in testByteSuppliers()
305 assertTrue(Arrays.equals(range, ByteStreams.toByteArray(okRead))); in testAlwaysCloses()
309 ByteStreams.toByteArray(brokenRead); in testAlwaysCloses()
374 assertTrue(Arrays.equals(expected, out.toByteArray()));
382 assertTrue(Arrays.equals(expected, out.toByteArray()));
393 assertTrue(Arrays.equals(expected, out.toByteArray()));
633 assertEquals(0, out.toByteArray().length);
640 assertTrue(Arrays.equals(BYTES, out.toByteArray()));
647 assertTrue(Arrays.equals(BYTES, out.toByteArray()));
[all …]
DFileBackedOutputStreamTest.java105 assertTrue(Arrays.equals(data, ByteStreams.toByteArray(supplier))); in testThreshold()
135 assertTrue(Arrays.equals(data, ByteStreams.toByteArray(supplier))); in testWriteErrorAfterClose()
146 assertTrue(Arrays.equals(data, ByteStreams.toByteArray(supplier))); in testWriteErrorAfterClose()
156 assertTrue(Arrays.equals(data, ByteStreams.toByteArray(supplier))); in testReset()
159 assertTrue(Arrays.equals(new byte[0], ByteStreams.toByteArray(supplier))); in testReset()
162 assertTrue(Arrays.equals(data, ByteStreams.toByteArray(supplier))); in testReset()
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()
/external/smack/src/org/xbill/DNS/
DAddress.java121 byte [] v4addr = Address.toByteArray(tokens[i], IPv4); in parseV6()
167 byte [] byteArray = toByteArray(s, family); in toArray()
193 toByteArray(String s, int family) { in toByteArray() method in Address
209 byte [] address = Address.toByteArray(s, IPv4); in isDottedQuad()
299 bytes = toByteArray(addr, IPv4); in getByAddress()
302 bytes = toByteArray(addr, IPv6); in getByAddress()
322 bytes = toByteArray(addr, family); in getByAddress()
/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/smack/src/org/xbill/DNS/utils/
Dbase16.java37 return new String(os.toByteArray()); in toString()
53 byte [] in = bs.toByteArray(); in fromString()
70 return bs.toByteArray(); in fromString()
/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
/external/protobuf/java/src/main/java/com/google/protobuf/nano/
DMessageNano.java98 public static final byte[] toByteArray(MessageNano msg) { in toByteArray() method in MessageNano
100 toByteArray(msg, result, 0, result.length); in toByteArray()
112 public static final void toByteArray(MessageNano msg, byte[] data, int offset, int length) { in toByteArray() method in MessageNano

12345678910>>...13