Home
last modified time | relevance | path

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

12345678910>>...17

/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()
295 modulus.toByteArray(), in readObject()
297 privateExponent.toByteArray(), in readObject()
DOpenSSLECGroupContext.java150 p.toByteArray(), a.toByteArray(), b.toByteArray(), x.toByteArray(), in getInstance()
151 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 …]
DNanoTest.java101 byte [] result = MessageNano.toByteArray(msg); in testSimpleMessageNano()
140 byte [] result = MessageNano.toByteArray(msg); in testRecursiveMessageNano()
158 assertEquals(0, MessageNano.toByteArray(msg).length); in testMessageNoFields()
170 byte [] result = MessageNano.toByteArray(msg); in testNanoRequiredInt32()
190 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalInt32()
211 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalInt64()
232 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalUint32()
253 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalUint64()
274 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalSint32()
295 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalSint64()
[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 …]
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/guava/guava-tests/test/com/google/common/io/
DByteStreamsTest.java52 assertEquals(expected, out.toByteArray()); in testCopyChannel()
294 assertEquals(0, out.toByteArray().length); in testNewDataOutput_empty()
301 assertEquals(bytes, out.toByteArray()); in testNewDataOutput_writeInt()
308 assertEquals(bytes, out.toByteArray()); in testNewDataOutput_sized()
314 assertEquals(bytes, out.toByteArray()); in testNewDataOutput_writeLong()
320 assertEquals(bytes, out.toByteArray()); in testNewDataOutput_writeByteArray()
327 assertEquals(new byte[] {0x12, 0x34}, out.toByteArray()); in testNewDataOutput_writeByte()
334 assertEquals(expected, out.toByteArray()); in testNewDataOutput_writeByteOffset()
342 assertEquals(expected, out.toByteArray()); in testNewDataOutput_writeBoolean()
348 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.java121 byte[] readBytes = ByteStreams.toByteArray(in); in testOpenStream()
131 byte[] readBytes = ByteStreams.toByteArray(in); in testOpenBufferedStream()
146 assertExpectedBytes(out.toByteArray()); in testCopyTo_outputStream()
158 assertExpectedBytes(out.toByteArray()); in testCopyTo_byteSink()
191 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/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/jmonkeyengine/engine/src/desktop/com/jme3/app/state/
DMjpegFileWriter.java156 return baos.toByteArray(); in toBytes()
226 return baos.toByteArray(); in toBytes()
246 return baos.toByteArray(); in toBytes()
316 return baos.toByteArray(); in toBytes()
371 return baos.toByteArray(); in toBytes()
392 return baos.toByteArray(); in toBytes()
427 return baos.toByteArray(); in toBytes()
451 return baos.toByteArray(); in toBytes()
472 return baos.toByteArray(); in toBytes()
488 return baos.toByteArray(); in writeImageToBytes()
/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()
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
DDigestOutputStreamTest.java156 bos.toByteArray())); in testWriteint01()
194 bos.toByteArray())); in testWriteint02()
277 bos.toByteArray())); in testWriteint05()
299 assertTrue("write", Arrays.equals(myMessage, bos.toByteArray())); in testWritebyteArrayintint01()
334 assertTrue("write", Arrays.equals(myMessage, bos.toByteArray())); in testWritebyteArrayintint02()
375 assertTrue("write", Arrays.equals(myMessage, bos.toByteArray())); in testWritebyteArrayintint03()
416 assertTrue("write", Arrays.equals(myMessage, bos.toByteArray())); in testWritebyteArrayintint04()

12345678910>>...17