/external/conscrypt/common/src/main/java/org/conscrypt/ |
D | OpenSSLRSAPrivateCrtKey.java | 85 modulus.toByteArray(), in init() 86 publicExponent == null ? null : publicExponent.toByteArray(), in init() 87 privateExponent.toByteArray(), in init() 88 primeP == null ? null : primeP.toByteArray(), in init() 89 primeQ == null ? null : primeQ.toByteArray(), in init() 90 primeExponentP == null ? null : primeExponentP.toByteArray(), in init() 91 primeExponentQ == null ? null : primeExponentQ.toByteArray(), in init() 92 crtCoefficient == null ? null : crtCoefficient.toByteArray())); in init() 131 modulus.toByteArray(), in getInstance() 132 publicExponent == null ? null : publicExponent.toByteArray(), in getInstance() [all …]
|
D | OpenSSLRSAPrivateKey.java | 77 modulus.toByteArray(), in init() 79 privateExponent.toByteArray(), in init() 105 .getModulus().toByteArray()), true); in wrapPlatformKey() 126 NativeCrypto.getRSAPrivateKeyWrapper(privateKey, modulus.toByteArray()), true); in wrapJCAPrivateKeyForTLSStackOnly() 149 modulus.toByteArray(), in getInstance() 151 privateExponent.toByteArray(), in getInstance() 262 modulus.toByteArray(), in readObject() 264 privateExponent.toByteArray(), in readObject()
|
D | OpenSSLRSAPublicKey.java | 56 spec.getModulus().toByteArray(), in OpenSSLRSAPublicKey() 57 spec.getPublicExponent().toByteArray(), in OpenSSLRSAPublicKey() 72 rsaPublicKey.getModulus().toByteArray(), in getInstance() 73 rsaPublicKey.getPublicExponent().toByteArray(), in getInstance() 179 modulus.toByteArray(), in readObject() 180 publicExponent.toByteArray(), in readObject()
|
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ |
D | OpenSSLRSAPrivateCrtKey.java | 86 modulus.toByteArray(), in init() 87 publicExponent == null ? null : publicExponent.toByteArray(), in init() 88 privateExponent.toByteArray(), in init() 89 primeP == null ? null : primeP.toByteArray(), in init() 90 primeQ == null ? null : primeQ.toByteArray(), in init() 91 primeExponentP == null ? null : primeExponentP.toByteArray(), in init() 92 primeExponentQ == null ? null : primeExponentQ.toByteArray(), in init() 93 crtCoefficient == null ? null : crtCoefficient.toByteArray())); in init() 132 modulus.toByteArray(), in getInstance() 133 publicExponent == null ? null : publicExponent.toByteArray(), in getInstance() [all …]
|
D | OpenSSLRSAPrivateKey.java | 78 modulus.toByteArray(), in init() 80 privateExponent.toByteArray(), in init() 106 .getModulus().toByteArray()), true); in wrapPlatformKey() 127 NativeCrypto.getRSAPrivateKeyWrapper(privateKey, modulus.toByteArray()), true); in wrapJCAPrivateKeyForTLSStackOnly() 150 modulus.toByteArray(), in getInstance() 152 privateExponent.toByteArray(), in getInstance() 263 modulus.toByteArray(), in readObject() 265 privateExponent.toByteArray(), in readObject()
|
D | OpenSSLRSAPublicKey.java | 58 spec.getModulus().toByteArray(), in OpenSSLRSAPublicKey() 59 spec.getPublicExponent().toByteArray(), in OpenSSLRSAPublicKey() 74 rsaPublicKey.getModulus().toByteArray(), in getInstance() 75 rsaPublicKey.getPublicExponent().toByteArray(), in getInstance() 181 modulus.toByteArray(), in readObject() 182 publicExponent.toByteArray(), in readObject()
|
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/compressors/lz4/ |
D | FramedLZ4CompressorInputStreamTest.java | 57 byte[] expected = IOUtils.toByteArray(e); in readBlaLz4() 58 byte[] actual = IOUtils.toByteArray(a); in readBlaLz4() 69 byte[] expected = IOUtils.toByteArray(e); in readBlaLz4ViaFactory() 70 byte[] actual = IOUtils.toByteArray(a); in readBlaLz4ViaFactory() 80 byte[] expected = IOUtils.toByteArray(e); in readBlaLz4ViaFactoryAutoDetection() 81 byte[] actual = IOUtils.toByteArray(a); in readBlaLz4ViaFactoryAutoDetection() 90 byte[] expected = IOUtils.toByteArray(e); in readBlaLz4WithDecompressConcatenated() 91 byte[] actual = IOUtils.toByteArray(a); in readBlaLz4WithDecompressConcatenated() 133 byte[] expected = IOUtils.toByteArray(e); in readBlaLz4ViaFactoryWithDecompressConcatenated() 134 byte[] actual = IOUtils.toByteArray(a); in readBlaLz4ViaFactoryWithDecompressConcatenated() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
D | ASN1InputStream.java | 146 return new DLApplicationSpecific(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 …]
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/ |
D | ASN1InputStream.java | 153 return new DLApplicationSpecific(isConstructed, tagNo, defIn.toByteArray()); in buildObject() 182 return new LazyEncodedSequence(defIn.toByteArray()); in buildObject() 405 return defIn.toByteArray(); in getBuffer() 450 return new ASN1GeneralizedTime(defIn.toByteArray()); in createPrimitiveDERObject() 452 return new DERGeneralString(defIn.toByteArray()); in createPrimitiveDERObject() 454 return new DERIA5String(defIn.toByteArray()); in createPrimitiveDERObject() 456 return new ASN1Integer(defIn.toByteArray(), false); in createPrimitiveDERObject() 460 return new DERNumericString(defIn.toByteArray()); in createPrimitiveDERObject() 464 return new DEROctetString(defIn.toByteArray()); in createPrimitiveDERObject() 466 return new DERPrintableString(defIn.toByteArray()); in createPrimitiveDERObject() [all …]
|
/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | CodedOutputStreamTest.java | 57 byte[] toByteArray(); in toByteArray() method 77 public byte[] toByteArray() { in toByteArray() method in CodedOutputStreamTest.OutputStreamCoder 78 return output.toByteArray(); in toByteArray() 102 public byte[] toByteArray() { in toByteArray() method in CodedOutputStreamTest.ArrayCoder 134 public byte[] toByteArray() { in toByteArray() method in CodedOutputStreamTest.NioHeapCoder 172 public byte[] toByteArray() { in toByteArray() method in CodedOutputStreamTest.NioDirectCoder 317 final byte[] expectedBytes = TestUtil.getGoldenMessage().toByteArray(); in testWriteWholeMessage() 324 byte[] rawBytes = coder.toByteArray(); in testWriteWholeMessage() 333 assertEqualBytes(OutputType.STREAM, expectedBytes, coder.toByteArray()); in testWriteWholeMessage() 342 byte[] expectedBytes = TestUtil.getGoldenPackedFieldsMessage().toByteArray(); in testWriteWholePackedFieldsMessage() [all …]
|
D | ByteStringTest.java | 95 isArrayRange(substring.toByteArray(), bytes, 500, bytes.length - 500)); in testSubstring_BeginIndex() 102 isArrayRange(byteString.toByteArray(), bytes, 500, 200)); in testCopyFrom_BytesOffsetSize() 109 isArray(byteString.toByteArray(), bytes)); in testCopyFrom_Bytes() 119 isArrayRange(byteString.toByteArray(), bytes, 500, 200)); in testCopyFrom_ByteBufferSize() 129 isArrayRange(byteString.toByteArray(), bytes, 500, bytes.length - 500)); in testCopyFrom_ByteBuffer() 137 isArrayRange(byteString.toByteArray(), testBytes, 0, testBytes.length)); in testCopyFrom_StringEncoding() 145 isArrayRange(byteString.toByteArray(), testBytes, 0, testBytes.length)); in testCopyFrom_Utf8() 154 isArrayRange(byteString.toByteArray(), testBytes, 0, testBytes.length)); in testCopyFrom_Iterable() 192 byte[] originalValue = byteString.toByteArray(); in testReadFrom_mutating() 197 byte[] newValue = byteString.toByteArray(); in testReadFrom_mutating() [all …]
|
/external/archive-patcher/shared/src/test/java/com/google/archivepatcher/shared/ |
D | DeflateUncompressorTest.java | 62 compressedContent = compressedContentBuffer.toByteArray(); in setUp() 71 assertTrue(Arrays.equals(CONTENT, uncompressedContentOut.toByteArray())); in testUncompress() 92 compressedContent = compressedContentBuffer.toByteArray(); in testNowrap() 98 assertTrue(Arrays.equals(CONTENT, uncompressedContentOut.toByteArray())); in testNowrap() 107 Assert.assertArrayEquals(CONTENT, uncompressedContentOut.toByteArray()); in testSetInputBufferSize() 116 Assert.assertArrayEquals(CONTENT, uncompressedContentOut.toByteArray()); in testSetOutputBufferSize() 150 Assert.assertArrayEquals(CONTENT, uncompressedContentOut.toByteArray()); in testReusability() 156 Assert.assertArrayEquals(CONTENT, uncompressedContentOut.toByteArray()); in testReusability() 168 compressedContent = compressedContentBuffer.toByteArray(); in testReusability() 175 assertTrue(Arrays.equals(CONTENT, uncompressedContentOut.toByteArray())); in testReusability()
|
D | DeflateCompressorTest.java | 74 return uncompressedOut.toByteArray(); in uncompressWithJavaInflater() 90 uncompressWithJavaInflater(compressor.isNowrap(), compressedContentOut.toByteArray()); in testCompress() 109 byte[] compressedWithNowrapOn = compressedContentOut.toByteArray(); 120 byte[] compressedWithNowrapOff = compressedContentOut.toByteArray(); 141 content[strategy].compressed = compressedContentOut.toByteArray(); 170 content[level].compressed = compressedContentOut.toByteArray(); 195 uncompressWithJavaInflater(compressor.isNowrap(), compressedContentOut.toByteArray()); 206 uncompressWithJavaInflater(compressor.isNowrap(), compressedContentOut.toByteArray()); 242 uncompressWithJavaInflater(compressor.isNowrap(), compressedContentOut.toByteArray()); 250 uncompressWithJavaInflater(compressor.isNowrap(), compressedContentOut.toByteArray()); [all …]
|
D | PartiallyUncompressingPipeTest.java | 48 Assert.assertArrayEquals(expectedBytes, outBuffer.toByteArray()); in testWriteAll_Uncompressed() 56 Assert.assertArrayEquals(entry.getUncompressedBinaryContent(), outBuffer.toByteArray()); in testWriteAll_Compressed_NoWrapTrue() 72 stream.pipe(new ByteArrayInputStream(compressBuffer.toByteArray()), Mode.UNCOMPRESS_WRAPPED); in testWriteAll_Compressed_NoWrapFalse() 73 Assert.assertArrayEquals(entry.getUncompressedBinaryContent(), outBuffer.toByteArray()); in testWriteAll_Compressed_NoWrapFalse() 106 Assert.assertArrayEquals(expected.toByteArray(), outBuffer.toByteArray()); in testWriteAll_Multiple()
|
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/instr/ |
D | InstrumenterTest.java | 166 buffer.toByteArray())).readObject(); in testSerialization() 190 new ByteArrayInputStream(buffer.toByteArray()), out, "Test"); in testInstrumentAll_Zip() 194 out.toByteArray())); in testInstrumentAll_Zip() 280 new ByteArrayInputStream(out.toByteArray()), in testInstrumentAll_BrokenZipEntry() 303 new ByteArrayInputStream(buffer.toByteArray()), out, in testInstrumentAll_BrokenClassFileInZip() 341 jarbuffer.toByteArray())), gzipOutput); in testInstrumentAll_Pack200() 346 pack200buffer.toByteArray()), out, "Test"); in testInstrumentAll_Pack200() 351 out.toByteArray())), new JarOutputStream(jarbuffer)); in testInstrumentAll_Pack200() 355 jarbuffer.toByteArray())); in testInstrumentAll_Pack200() 386 assertEquals("text", new String(out.toByteArray())); in testInstrumentAll_Other() [all …]
|
/external/guava/guava-tests/test/com/google/common/io/ |
D | ByteStreamsTest.java | 48 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 …]
|
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/compressors/ |
D | GZipTestCase.java | 116 final byte[] data = ((ByteArrayOutputStream) out).toByteArray(); in testCorruptedInput() 146 content = IOUtils.toByteArray(fis); in testInteroperabilityWithGzipCompressorInputStream() 162 …ressorInputStream in = new GzipCompressorInputStream(new ByteArrayInputStream(bout.toByteArray())); in testInteroperabilityWithGzipCompressorInputStream() 163 final byte[] content2 = IOUtils.toByteArray(in); in testInteroperabilityWithGzipCompressorInputStream() 172 content = IOUtils.toByteArray(fis); in testInteroperabilityWithGZIPInputStream() 188 … final GZIPInputStream in = new GZIPInputStream(new ByteArrayInputStream(bout.toByteArray())); in testInteroperabilityWithGZIPInputStream() 189 final byte[] content2 = IOUtils.toByteArray(in); in testInteroperabilityWithGZIPInputStream() 215 content = IOUtils.toByteArray(fis); in testExtraFlags() 227 assertEquals("extra flags (XFL)", flag, bout.toByteArray()[8]); in testExtraFlags() 273 new GzipCompressorInputStream(new ByteArrayInputStream(bout.toByteArray())); in testMetadataRoundTrip() [all …]
|
D | FramedSnappyTestCase.java | 93 assertArrayEquals(IOUtils.toByteArray(written), in testUnarchive() 94 IOUtils.toByteArray(orig)); in testUnarchive() 121 byte[] b = IOUtils.toByteArray(is); in testRoundtripWithOneBigWrite() 130 byte[] expected = IOUtils.toByteArray(is); in testRoundtripWithOneBigWrite() 131 byte[] actual = IOUtils.toByteArray(sis); in testRoundtripWithOneBigWrite() 150 byte[] expected = IOUtils.toByteArray(is); in testRoundtrip() 151 byte[] actual = IOUtils.toByteArray(sis); in testRoundtrip()
|
/external/protobuf/javanano/src/test/java/com/google/protobuf/nano/ |
D | NanoTest.java | 87 byte [] result = MessageNano.toByteArray(msg); in testSimpleMessageNano() 126 byte [] result = MessageNano.toByteArray(msg); in testRecursiveMessageNano() 144 assertEquals(0, MessageNano.toByteArray(msg).length); in testMessageNoFields() 156 byte [] result = MessageNano.toByteArray(msg); in testNanoRequiredInt32() 176 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalInt32() 197 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalInt64() 218 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalUint32() 239 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalUint64() 260 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalSint32() 281 byte [] result = MessageNano.toByteArray(msg); in testNanoOptionalSint64() [all …]
|
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/zip/ |
D | ZipArchiveInputStreamTest.java | 145 assertArrayEquals(IOUtils.toByteArray(original), IOUtils.toByteArray(in)); in testUnshrinkEntry() 156 assertArrayEquals(IOUtils.toByteArray(original), IOUtils.toByteArray(in)); in testUnshrinkEntry() 175 IOUtils.toByteArray(in)); in testReadingOfFirstStoredEntry() 206 assertArrayEquals(expected, IOUtils.toByteArray(in)); in testUnzipBZip2CompressedEntry() 219 byte[] orig = IOUtils.toByteArray(in); in readDeflate64CompressedStream() 221 byte[] fromZip = IOUtils.toByteArray(zin); in readDeflate64CompressedStream() 234 byte[] fromZip = IOUtils.toByteArray(zin); in readDeflate64CompressedStreamWithDataDescriptor() 377 IOUtils.toByteArray(archive); in singleByteReadConsistentlyReturnsMinusOneAtEof() 418 IOUtils.toByteArray(archive); in multiByteReadConsistentlyReturnsMinusOneAtEof() 428 content = IOUtils.toByteArray(fs); in singleByteReadThrowsAtEofForCorruptedStoredEntry() [all …]
|
D | ZipFileTest.java | 90 data = IOUtils.toByteArray(fis); in testCDOrderInMemory() 301 assertArrayEquals(IOUtils.toByteArray(original), in testUnshrinking() 302 IOUtils.toByteArray(zf.getInputStream(test))); in testUnshrinking() 309 assertArrayEquals(IOUtils.toByteArray(original), in testUnshrinking() 310 IOUtils.toByteArray(zf.getInputStream(test))); in testUnshrinking() 328 IOUtils.toByteArray(zf.getInputStream(ze))); in testReadingOfFirstStoredEntry() 339 assertArrayEquals(expected, IOUtils.toByteArray(zf.getInputStream(ze))); in testUnzipBZip2CompressedEntry() 347 data = IOUtils.toByteArray(fis); in testConcurrentReadSeekable() 353 content.put(entry.getName(), IOUtils.toByteArray(zf.getInputStream(entry))); in testConcurrentReadSeekable() 383 content.put(entry.getName(), IOUtils.toByteArray(zf.getInputStream(entry))); in testConcurrentReadFile() [all …]
|
/external/ukey2/src/main/java/com/google/security/cryptauth/lib/securegcm/ |
D | EnrollmentCryptoOps.java | 143 if (!Arrays.equals(enrollmentInfo.getDeviceMasterKeyHash().toByteArray(), in encryptEnrollmentMessage() 152 .setVerificationKeyId(enrollmentInfo.getUserPublicKey().toByteArray()) in encryptEnrollmentMessage() 153 .buildSignedCleartextMessage(signingKey, sigType, enrollmentInfo.toByteArray()); in encryptEnrollmentMessage() 162 .toByteArray()) in encryptEnrollmentMessage() 164 masterKey, OUTER_SIG_TYPE, masterKey, OUTER_ENC_TYPE, innerMsg.toByteArray()); in encryptEnrollmentMessage() 165 return outerMsg.toByteArray(); in encryptEnrollmentMessage() 197 .getVerificationKeyId().toByteArray(); in decryptEnrollmentMessage() 215 && Arrays.equals(encodedUserPublicKey, enrollmentInfo.getUserPublicKey().toByteArray()) in decryptEnrollmentMessage() 217 enrollmentInfo.getDeviceMasterKeyHash().toByteArray()); in decryptEnrollmentMessage()
|
D | D2DSpakeEd25519Handshake.java | 361 .setX(ByteString.copyFrom(ourCommitmentPointAffine[0].toByteArray())) in makeCommitmentPointMessage() 362 .setY(ByteString.copyFrom(ourCommitmentPointAffine[1].toByteArray())) in makeCommitmentPointMessage() 366 .toByteArray(); in makeCommitmentPointMessage() 406 deviceToDeviceMessage.toByteArray()), in makeSharedKeyHashMessage() 413 return handshakeMessage.build().toByteArray(); in makeSharedKeyHashMessage() 433 return concat(p[0].toByteArray(), p[1].toByteArray()); in pointToByteArray() 509 byte[] theirHash = hashMessage.getHashValue().toByteArray(); in parseHashMessage() 520 hashMessage.getPayload().toByteArray()); in parseHashMessage() 526 return message.getMessage().toByteArray(); in parseHashMessage() 576 new BigInteger(commitmentPoint.getX().toByteArray()), in parseCommitmentMessage() [all …]
|
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/tags/propagation/ |
D | TagContextDeserializationTest.java | 101 byte[] bytes = output.toByteArray(); in testDeserializeTooLargeByteArrayThrowException() 132 byte[] bytes = output.toByteArray(); in testDeserializeTooLargeByteArrayThrowException_WithDuplicateTagKeys() 145 final byte[] bytes = output.toByteArray(); in testDeserializeInvalidTagKey() 159 final byte[] bytes = output.toByteArray(); in testDeserializeInvalidTagValue() 173 assertThat(serializer.fromByteArray(output.toByteArray())).isEqualTo(expected); in testDeserializeOneTag() 188 assertThat(serializer.fromByteArray(output.toByteArray())).isEqualTo(expected); in testDeserializeMultipleTags() 199 assertThat(serializer.fromByteArray(output.toByteArray())).isEqualTo(expected); in testDeserializeDuplicateKeys() 219 assertThat(serializer.fromByteArray(output.toByteArray())).isEqualTo(expected); in testDeserializeNonConsecutiveDuplicateKeys() 230 assertThat(serializer.fromByteArray(output.toByteArray())).isEqualTo(expected); in testDeserializeDuplicateTags() 250 assertThat(serializer.fromByteArray(output.toByteArray())).isEqualTo(expected); in testDeserializeNonConsecutiveDuplicateTags() [all …]
|
D | TagContextBinarySerializerImplTest.java | 63 assertThat(serializer.toByteArray(tagContext)).isEmpty(); in toByteArray_TaggingDisabled() 69 final byte[] serialized = serializer.toByteArray(tagContext); in toByteArray_TaggingReenabled() 71 assertThat(serializer.toByteArray(tagContext)).isEmpty(); in toByteArray_TaggingReenabled() 73 assertThat(serializer.toByteArray(tagContext)).isEqualTo(serialized); in toByteArray_TaggingReenabled() 80 byte[] serialized = serializer.toByteArray(tagContext); in fromByteArray_TaggingDisabled() 88 byte[] serialized = serializer.toByteArray(tagContext); in fromByteArray_TaggingReenabled()
|