| /external/conscrypt/common/src/main/java/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 …]
|
| /external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ |
| D | OpenSSLRSAPrivateCrtKey.java | 87 modulus.toByteArray(), in init() 88 publicExponent == null ? null : publicExponent.toByteArray(), in init() 89 privateExponent.toByteArray(), in init() 90 primeP == null ? null : primeP.toByteArray(), in init() 91 primeQ == null ? null : primeQ.toByteArray(), in init() 92 primeExponentP == null ? null : primeExponentP.toByteArray(), in init() 93 primeExponentQ == null ? null : primeExponentQ.toByteArray(), in init() 94 crtCoefficient == null ? null : crtCoefficient.toByteArray())); in init() 133 modulus.toByteArray(), in getInstance() 134 publicExponent == null ? null : publicExponent.toByteArray(), in getInstance() [all …]
|
| /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/tink/java_src/src/main/java/com/google/crypto/tink/signature/ |
| D | RsaSsaPkcs1SignKeyManager.java | 72 new BigInteger(1, keyProto.getPublicKey().getN().toByteArray()), in RsaSsaPkcs1SignKeyManager() 73 new BigInteger(1, keyProto.getPublicKey().getE().toByteArray()), in RsaSsaPkcs1SignKeyManager() 74 new BigInteger(1, keyProto.getD().toByteArray()), in RsaSsaPkcs1SignKeyManager() 75 new BigInteger(1, keyProto.getP().toByteArray()), in RsaSsaPkcs1SignKeyManager() 76 new BigInteger(1, keyProto.getQ().toByteArray()), in RsaSsaPkcs1SignKeyManager() 77 new BigInteger(1, keyProto.getDp().toByteArray()), in RsaSsaPkcs1SignKeyManager() 78 new BigInteger(1, keyProto.getDq().toByteArray()), in RsaSsaPkcs1SignKeyManager() 79 new BigInteger(1, keyProto.getCrt().toByteArray()))); in RsaSsaPkcs1SignKeyManager() 85 new BigInteger(1, keyProto.getPublicKey().getN().toByteArray()), in RsaSsaPkcs1SignKeyManager() 86 new BigInteger(1, keyProto.getPublicKey().getE().toByteArray()))); in RsaSsaPkcs1SignKeyManager() [all …]
|
| D | RsaSsaPssSignKeyManager.java | 71 new BigInteger(1, keyProto.getPublicKey().getN().toByteArray()), in RsaSsaPssSignKeyManager() 72 new BigInteger(1, keyProto.getPublicKey().getE().toByteArray()), in RsaSsaPssSignKeyManager() 73 new BigInteger(1, keyProto.getD().toByteArray()), in RsaSsaPssSignKeyManager() 74 new BigInteger(1, keyProto.getP().toByteArray()), in RsaSsaPssSignKeyManager() 75 new BigInteger(1, keyProto.getQ().toByteArray()), in RsaSsaPssSignKeyManager() 76 new BigInteger(1, keyProto.getDp().toByteArray()), in RsaSsaPssSignKeyManager() 77 new BigInteger(1, keyProto.getDq().toByteArray()), in RsaSsaPssSignKeyManager() 78 new BigInteger(1, keyProto.getCrt().toByteArray()))); in RsaSsaPssSignKeyManager() 85 new BigInteger(1, keyProto.getPublicKey().getN().toByteArray()), in RsaSsaPssSignKeyManager() 86 new BigInteger(1, keyProto.getPublicKey().getE().toByteArray()))); in RsaSsaPssSignKeyManager() [all …]
|
| /external/apache-commons-io/src/test/java/org/apache/commons/io/output/ |
| D | TeeOutputStreamTest.java | 82 … assertByteArrayEquals("TeeOutputStream.write(int)", expected.toByteArray(), baos1.toByteArray()); in testTee() 83 … assertByteArrayEquals("TeeOutputStream.write(int)", expected.toByteArray(), baos2.toByteArray()); in testTee() 91 …ssertByteArrayEquals("TeeOutputStream.write(byte[])", expected.toByteArray(), baos1.toByteArray()); in testTee() 92 …ssertByteArrayEquals("TeeOutputStream.write(byte[])", expected.toByteArray(), baos2.toByteArray()); in testTee() 99 assertByteArrayEquals("TeeOutputStream.write(byte[], int, int)", expected.toByteArray(), in testTee() 100 baos1.toByteArray()); in testTee() 101 assertByteArrayEquals("TeeOutputStream.write(byte[], int, int)", expected.toByteArray(), in testTee() 102 baos2.toByteArray()); in testTee()
|
| /external/apache-commons-io/src/test/java/org/apache/commons/io/input/ |
| D | MemoryMappedFileInputStreamTest.java | 82 assertArrayEquals(expectedData, IOUtils.toByteArray(inputStream)); in testAlternateBufferSize() 93 assertArrayEquals(EMPTY_BYTE_ARRAY, IOUtils.toByteArray(inputStream)); in testEmptyFile() 106 assertArrayEquals(expectedData, IOUtils.toByteArray(inputStream)); in testLargerFile() 119 Assertions.assertThrows(IOException.class, () -> IOUtils.toByteArray(inputStream)); in testReadAfterClose() 147 final byte[] data = IOUtils.toByteArray(inputStream); in testSkipAtStart() 161 assertArrayEquals(EMPTY_BYTE_ARRAY, IOUtils.toByteArray(inputStream)); in testSkipEmpty() 173 IOUtils.toByteArray(inputStream, 5); in testSkipInCurrentBuffer() 175 final byte[] data = IOUtils.toByteArray(inputStream); in testSkipInCurrentBuffer() 191 assertArrayEquals(expectedData, IOUtils.toByteArray(inputStream)); in testSkipNoop() 203 IOUtils.toByteArray(inputStream, 5); in testSkipOutOfCurrentBuffer() [all …]
|
| /external/tink/java_src/src/main/java/com/google/crypto/tink/jwt/ |
| D | JwtRsaSsaPkcs1SignKeyManager.java | 67 new BigInteger(1, keyProto.getPublicKey().getN().toByteArray()), in selfTestKey() 68 new BigInteger(1, keyProto.getPublicKey().getE().toByteArray()))); in selfTestKey() 81 new BigInteger(1, keyProto.getPublicKey().getN().toByteArray()), in createPrivateKey() 82 new BigInteger(1, keyProto.getPublicKey().getE().toByteArray()), in createPrivateKey() 83 new BigInteger(1, keyProto.getD().toByteArray()), in createPrivateKey() 84 new BigInteger(1, keyProto.getP().toByteArray()), in createPrivateKey() 85 new BigInteger(1, keyProto.getQ().toByteArray()), in createPrivateKey() 86 new BigInteger(1, keyProto.getDp().toByteArray()), in createPrivateKey() 87 new BigInteger(1, keyProto.getDq().toByteArray()), in createPrivateKey() 88 new BigInteger(1, keyProto.getCrt().toByteArray()))); in createPrivateKey() [all …]
|
| D | JwtRsaSsaPssSignKeyManager.java | 68 new BigInteger(1, keyProto.getPublicKey().getN().toByteArray()), in selfTestKey() 69 new BigInteger(1, keyProto.getPublicKey().getE().toByteArray()))); in selfTestKey() 83 new BigInteger(1, keyProto.getPublicKey().getN().toByteArray()), in createPrivateKey() 84 new BigInteger(1, keyProto.getPublicKey().getE().toByteArray()), in createPrivateKey() 85 new BigInteger(1, keyProto.getD().toByteArray()), in createPrivateKey() 86 new BigInteger(1, keyProto.getP().toByteArray()), in createPrivateKey() 87 new BigInteger(1, keyProto.getQ().toByteArray()), in createPrivateKey() 88 new BigInteger(1, keyProto.getDp().toByteArray()), in createPrivateKey() 89 new BigInteger(1, keyProto.getDq().toByteArray()), in createPrivateKey() 90 new BigInteger(1, keyProto.getCrt().toByteArray()))); in createPrivateKey() [all …]
|
| /external/tink-java/src/test/java/com/google/crypto/tink/ |
| D | NoSecretKeysetHandleTest.java | 53 Keyset keyset2 = NoSecretKeysetHandle.parseFrom(keyset.toByteArray()).getKeyset(); in withTypeAsymmetricPublic_deprecated_noSecretKeysetHandle_sameAs_readNoSecret() 55 NoSecretKeysetHandle.read(BinaryKeysetReader.withBytes(keyset.toByteArray())).getKeyset(); in withTypeAsymmetricPublic_deprecated_noSecretKeysetHandle_sameAs_readNoSecret() 57 Keyset keyset4 = KeysetHandle.readNoSecret(keyset.toByteArray()).getKeyset(); in withTypeAsymmetricPublic_deprecated_noSecretKeysetHandle_sameAs_readNoSecret() 59 KeysetHandle.readNoSecret(BinaryKeysetReader.withBytes(keyset.toByteArray())).getKeyset(); in withTypeAsymmetricPublic_deprecated_noSecretKeysetHandle_sameAs_readNoSecret() 81 GeneralSecurityException.class, () -> NoSecretKeysetHandle.parseFrom(keyset.toByteArray())); in withTypeSymmetric_deprecated_noSecretKeysetHandle_sameAs_readNoSecret() 84 () -> NoSecretKeysetHandle.read(BinaryKeysetReader.withBytes(keyset.toByteArray()))); in withTypeSymmetric_deprecated_noSecretKeysetHandle_sameAs_readNoSecret() 87 GeneralSecurityException.class, () -> KeysetHandle.readNoSecret(keyset.toByteArray())); in withTypeSymmetric_deprecated_noSecretKeysetHandle_sameAs_readNoSecret() 90 () -> KeysetHandle.readNoSecret(BinaryKeysetReader.withBytes(keyset.toByteArray()))); in withTypeSymmetric_deprecated_noSecretKeysetHandle_sameAs_readNoSecret() 100 GeneralSecurityException.class, () -> NoSecretKeysetHandle.parseFrom(keyset.toByteArray())); in withTypeAsymmetricPrivate_deprecated_noSecretKeysetHandle_sameAs_readNoSecret() 103 () -> NoSecretKeysetHandle.read(BinaryKeysetReader.withBytes(keyset.toByteArray()))); in withTypeAsymmetricPrivate_deprecated_noSecretKeysetHandle_sameAs_readNoSecret() [all …]
|
| /external/tink/java_src/src/test/java/com/google/crypto/tink/ |
| D | NoSecretKeysetHandleTest.java | 53 Keyset keyset2 = NoSecretKeysetHandle.parseFrom(keyset.toByteArray()).getKeyset(); in withTypeAsymmetricPublic_deprecated_noSecretKeysetHandle_sameAs_readNoSecret() 55 NoSecretKeysetHandle.read(BinaryKeysetReader.withBytes(keyset.toByteArray())).getKeyset(); in withTypeAsymmetricPublic_deprecated_noSecretKeysetHandle_sameAs_readNoSecret() 57 Keyset keyset4 = KeysetHandle.readNoSecret(keyset.toByteArray()).getKeyset(); in withTypeAsymmetricPublic_deprecated_noSecretKeysetHandle_sameAs_readNoSecret() 59 KeysetHandle.readNoSecret(BinaryKeysetReader.withBytes(keyset.toByteArray())).getKeyset(); in withTypeAsymmetricPublic_deprecated_noSecretKeysetHandle_sameAs_readNoSecret() 81 GeneralSecurityException.class, () -> NoSecretKeysetHandle.parseFrom(keyset.toByteArray())); in withTypeSymmetric_deprecated_noSecretKeysetHandle_sameAs_readNoSecret() 84 () -> NoSecretKeysetHandle.read(BinaryKeysetReader.withBytes(keyset.toByteArray()))); in withTypeSymmetric_deprecated_noSecretKeysetHandle_sameAs_readNoSecret() 87 GeneralSecurityException.class, () -> KeysetHandle.readNoSecret(keyset.toByteArray())); in withTypeSymmetric_deprecated_noSecretKeysetHandle_sameAs_readNoSecret() 90 () -> KeysetHandle.readNoSecret(BinaryKeysetReader.withBytes(keyset.toByteArray()))); in withTypeSymmetric_deprecated_noSecretKeysetHandle_sameAs_readNoSecret() 100 GeneralSecurityException.class, () -> NoSecretKeysetHandle.parseFrom(keyset.toByteArray())); in withTypeAsymmetricPrivate_deprecated_noSecretKeysetHandle_sameAs_readNoSecret() 103 () -> NoSecretKeysetHandle.read(BinaryKeysetReader.withBytes(keyset.toByteArray()))); in withTypeAsymmetricPrivate_deprecated_noSecretKeysetHandle_sameAs_readNoSecret() [all …]
|
| /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
| D | ASN1InputStream.java | 170 return new LazyEncodedSequence(defIn.toByteArray()); in buildObject() 299 byte[] contentsOctets = defIn.toByteArray(); in readTaggedObjectDL() 443 return defIn.toByteArray(); in getBuffer() 524 return ASN1BitString.createPrimitive(defIn.toByteArray()); in createPrimitiveDERObject() 533 return ASN1GeneralString.createPrimitive(defIn.toByteArray()); in createPrimitiveDERObject() 535 return ASN1GeneralizedTime.createPrimitive(defIn.toByteArray()); in createPrimitiveDERObject() 537 return ASN1GraphicString.createPrimitive(defIn.toByteArray()); in createPrimitiveDERObject() 539 return ASN1IA5String.createPrimitive(defIn.toByteArray()); in createPrimitiveDERObject() 541 return ASN1Integer.createPrimitive(defIn.toByteArray()); in createPrimitiveDERObject() 543 return ASN1Null.createPrimitive(defIn.toByteArray()); in createPrimitiveDERObject() [all …]
|
| /external/tink/testing/java_src/javatests/com/google/crypto/tink/testing/ |
| D | TestingServicesTest.java | 167 KeyTemplateProtoConverter.fromByteArray(response.getKeyTemplate().toByteArray()); in template_success() 200 byte[] serializedKeyset = fromResponse.getKeyset().toByteArray(); in fromJson_success() 209 byte[] template = KeyTemplateProtoConverter.toByteArray(KeyTemplates.get("AES128_GCM")); in toFromJson_success() 213 byte[] keyset = keysetResponse.getKeyset().toByteArray(); in toFromJson_success() 221 byte[] output = fromResponse.getKeyset().toByteArray(); in toFromJson_success() 262 byte[] template = KeyTemplateProtoConverter.toByteArray(KeyTemplates.get("AES128_GCM")); in generateEncryptDecryptKeyset() 266 byte[] keyset = keysetResponse.getKeyset().toByteArray(); in generateEncryptDecryptKeyset() 270 byte[] masterKeyset = masterKeysetResponse.getKeyset().toByteArray(); in generateEncryptDecryptKeyset() 276 byte[] encryptedKeyset = writeResponse.getEncryptedKeyset().toByteArray(); in generateEncryptDecryptKeyset() 284 byte[] output = readResponse.getKeyset().toByteArray(); in generateEncryptDecryptKeyset() [all …]
|
| D | AsymmetricTestingServicesTest.java | 108 KeyTemplateProtoConverter.toByteArray( in hybridDecryptCreateKeyset_success() 139 byte[] template = KeyTemplateProtoConverter.toByteArray( in hybridEncryptCreateKeyset_success() 143 byte[] privateKeyset = keysetResponse.getKeyset().toByteArray(); in hybridEncryptCreateKeyset_success() 207 byte[] template = KeyTemplateProtoConverter.toByteArray( in hybridGenerateEncryptDecrypt_success() 214 byte[] privateKeyset = genResponse.getKeyset().toByteArray(); in hybridGenerateEncryptDecrypt_success() 218 byte[] publicKeyset = pubResponse.getPublicKeyset().toByteArray(); in hybridGenerateEncryptDecrypt_success() 223 byte[] ciphertext = encResponse.getCiphertext().toByteArray(); in hybridGenerateEncryptDecrypt_success() 228 byte[] output = decResponse.getPlaintext().toByteArray(); in hybridGenerateEncryptDecrypt_success() 252 byte[] template = KeyTemplateProtoConverter.toByteArray( in hybridDecrypt_errorOnBadCiphertext() 259 byte[] privateKeyset = keysetResponse.getKeyset().toByteArray(); in hybridDecrypt_errorOnBadCiphertext() [all …]
|
| /external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/asn1/ |
| D | ASN1InputStream.java | 172 return new LazyEncodedSequence(defIn.toByteArray()); in buildObject() 301 byte[] contentsOctets = defIn.toByteArray(); in readTaggedObjectDL() 445 return defIn.toByteArray(); in getBuffer() 526 return ASN1BitString.createPrimitive(defIn.toByteArray()); in createPrimitiveDERObject() 535 return ASN1GeneralString.createPrimitive(defIn.toByteArray()); in createPrimitiveDERObject() 537 return ASN1GeneralizedTime.createPrimitive(defIn.toByteArray()); in createPrimitiveDERObject() 539 return ASN1GraphicString.createPrimitive(defIn.toByteArray()); in createPrimitiveDERObject() 541 return ASN1IA5String.createPrimitive(defIn.toByteArray()); in createPrimitiveDERObject() 543 return ASN1Integer.createPrimitive(defIn.toByteArray()); in createPrimitiveDERObject() 545 return ASN1Null.createPrimitive(defIn.toByteArray()); in createPrimitiveDERObject() [all …]
|
| /external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/ |
| D | ASN1InputStream.java | 174 return new LazyEncodedSequence(defIn.toByteArray()); in buildObject() 304 byte[] contentsOctets = defIn.toByteArray(); in readTaggedObjectDL() 448 return defIn.toByteArray(); in getBuffer() 529 return ASN1BitString.createPrimitive(defIn.toByteArray()); in createPrimitiveDERObject() 538 return ASN1GeneralString.createPrimitive(defIn.toByteArray()); in createPrimitiveDERObject() 540 return ASN1GeneralizedTime.createPrimitive(defIn.toByteArray()); in createPrimitiveDERObject() 542 return ASN1GraphicString.createPrimitive(defIn.toByteArray()); in createPrimitiveDERObject() 544 return ASN1IA5String.createPrimitive(defIn.toByteArray()); in createPrimitiveDERObject() 546 return ASN1Integer.createPrimitive(defIn.toByteArray()); in createPrimitiveDERObject() 548 return ASN1Null.createPrimitive(defIn.toByteArray()); in createPrimitiveDERObject() [all …]
|
| /external/sdk-platform-java/java-core/google-cloud-core/src/test/java/com/google/cloud/ |
| D | ByteArrayTest.java | 54 assertArrayEquals(BYTES_CONTENT, STRING_ARRAY.toByteArray()); in testCopyFromString() 56 assertArrayEquals(BYTES_CONTENT, ByteStreams.toByteArray(STRING_ARRAY.asInputStream())); in testCopyFromString() 62 assertArrayEquals(BYTES_CONTENT, BYTES_ARRAY.toByteArray()); in testCopyFromByteArray() 64 assertArrayEquals(BYTES_CONTENT, ByteStreams.toByteArray(BYTES_ARRAY.asInputStream())); in testCopyFromByteArray() 70 assertArrayEquals(BYTES_CONTENT, BYTE_BUFFER_ARRAY.toByteArray()); in testCopyFromByteBuffer() 72 assertArrayEquals(BYTES_CONTENT, ByteStreams.toByteArray(BYTE_BUFFER_ARRAY.asInputStream())); in testCopyFromByteBuffer() 78 assertArrayEquals(BYTES_CONTENT, streamArray.toByteArray()); in testCopyFromStream() 80 assertArrayEquals(BYTES_CONTENT, ByteStreams.toByteArray(streamArray.asInputStream())); in testCopyFromStream() 95 assertArrayEquals(BYTES_CONTENT, ARRAY.toByteArray()); in testToByteArray() 105 assertArrayEquals(BYTES_CONTENT, ByteStreams.toByteArray(ARRAY.asInputStream())); in testAsInputStream()
|
| /external/tink-java/src/test/java/com/google/crypto/tink/signature/ |
| D | SignaturePemKeysetReaderTest.java | 82 assertThat(publicKeyProto.getN().toByteArray()) in read_oneRSAPublicKey_shouldWork() 83 .isEqualTo(SigUtil.toUnsignedIntByteString(publicKey.getModulus()).toByteArray()); in read_oneRSAPublicKey_shouldWork() 84 assertThat(publicKeyProto.getE().toByteArray()) in read_oneRSAPublicKey_shouldWork() 85 .isEqualTo(SigUtil.toUnsignedIntByteString(publicKey.getPublicExponent()).toByteArray()); in read_oneRSAPublicKey_shouldWork() 115 assertThat(publicKeyProto.getX().toByteArray()) in read_oneECPublicKey_shouldWork() 116 .isEqualTo(SigUtil.toUnsignedIntByteString(publicKey.getW().getAffineX()).toByteArray()); in read_oneECPublicKey_shouldWork() 117 assertThat(publicKeyProto.getY().toByteArray()) in read_oneECPublicKey_shouldWork() 118 .isEqualTo(SigUtil.toUnsignedIntByteString(publicKey.getW().getAffineY()).toByteArray()); in read_oneECPublicKey_shouldWork() 137 assertThat(publicKeyProto.getX().toByteArray()) in read_ensureUnsignedIntRepresentation() 183 assertThat(publicKeyProto.getN().toByteArray()) in read_onePEM_twoRSAPublicKeys_shouldWork() [all …]
|
| /external/tink/java_src/src/test/java/com/google/crypto/tink/signature/ |
| D | SignaturePemKeysetReaderTest.java | 82 assertThat(publicKeyProto.getN().toByteArray()) in read_oneRSAPublicKey_shouldWork() 83 .isEqualTo(SigUtil.toUnsignedIntByteString(publicKey.getModulus()).toByteArray()); in read_oneRSAPublicKey_shouldWork() 84 assertThat(publicKeyProto.getE().toByteArray()) in read_oneRSAPublicKey_shouldWork() 85 .isEqualTo(SigUtil.toUnsignedIntByteString(publicKey.getPublicExponent()).toByteArray()); in read_oneRSAPublicKey_shouldWork() 115 assertThat(publicKeyProto.getX().toByteArray()) in read_oneECPublicKey_shouldWork() 116 .isEqualTo(SigUtil.toUnsignedIntByteString(publicKey.getW().getAffineX()).toByteArray()); in read_oneECPublicKey_shouldWork() 117 assertThat(publicKeyProto.getY().toByteArray()) in read_oneECPublicKey_shouldWork() 118 .isEqualTo(SigUtil.toUnsignedIntByteString(publicKey.getW().getAffineY()).toByteArray()); in read_oneECPublicKey_shouldWork() 137 assertThat(publicKeyProto.getX().toByteArray()) in read_ensureUnsignedIntRepresentation() 183 assertThat(publicKeyProto.getN().toByteArray()) in read_onePEM_twoRSAPublicKeys_shouldWork() [all …]
|
| /external/cronet/tot/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
| D | ArrayDecodersTest.java | 60 ArrayDecoders.decodeString(NEGATIVE_SIZE_0.toByteArray(), 0, registers); in testException_decodeString() 69 ArrayDecoders.decodeStringRequireUtf8(NEGATIVE_SIZE_0.toByteArray(), 0, registers); in testException_decodeStringRequireUtf8() 78 ArrayDecoders.decodeBytes(NEGATIVE_SIZE_0.toByteArray(), 0, registers); in testException_decodeBytes() 89 NEGATIVE_SIZE_0.toByteArray(), in testException_decodeStringList_first() 104 NEGATIVE_SIZE_1.toByteArray(), in testException_decodeStringList_second() 119 NEGATIVE_SIZE_0.toByteArray(), in testException_decodeStringListRequireUtf8_first() 134 NEGATIVE_SIZE_1.toByteArray(), in testException_decodeStringListRequireUtf8_second() 149 NEGATIVE_SIZE_0.toByteArray(), in testException_decodeBytesList_first() 164 NEGATIVE_SIZE_1.toByteArray(), in testException_decodeBytesList_second() 179 NEGATIVE_SIZE_0.toByteArray(), in testException_decodeUnknownField()
|
| /external/cronet/stable/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
| D | ArrayDecodersTest.java | 60 ArrayDecoders.decodeString(NEGATIVE_SIZE_0.toByteArray(), 0, registers); in testException_decodeString() 69 ArrayDecoders.decodeStringRequireUtf8(NEGATIVE_SIZE_0.toByteArray(), 0, registers); in testException_decodeStringRequireUtf8() 78 ArrayDecoders.decodeBytes(NEGATIVE_SIZE_0.toByteArray(), 0, registers); in testException_decodeBytes() 89 NEGATIVE_SIZE_0.toByteArray(), in testException_decodeStringList_first() 104 NEGATIVE_SIZE_1.toByteArray(), in testException_decodeStringList_second() 119 NEGATIVE_SIZE_0.toByteArray(), in testException_decodeStringListRequireUtf8_first() 134 NEGATIVE_SIZE_1.toByteArray(), in testException_decodeStringListRequireUtf8_second() 149 NEGATIVE_SIZE_0.toByteArray(), in testException_decodeBytesList_first() 164 NEGATIVE_SIZE_1.toByteArray(), in testException_decodeBytesList_second() 179 NEGATIVE_SIZE_0.toByteArray(), in testException_decodeUnknownField()
|
| /external/protobuf/java/core/src/test/java/com/google/protobuf/ |
| D | ArrayDecodersTest.java | 60 ArrayDecoders.decodeString(NEGATIVE_SIZE_0.toByteArray(), 0, registers); in testException_decodeString() 69 ArrayDecoders.decodeStringRequireUtf8(NEGATIVE_SIZE_0.toByteArray(), 0, registers); in testException_decodeStringRequireUtf8() 78 ArrayDecoders.decodeBytes(NEGATIVE_SIZE_0.toByteArray(), 0, registers); in testException_decodeBytes() 89 NEGATIVE_SIZE_0.toByteArray(), in testException_decodeStringList_first() 104 NEGATIVE_SIZE_1.toByteArray(), in testException_decodeStringList_second() 119 NEGATIVE_SIZE_0.toByteArray(), in testException_decodeStringListRequireUtf8_first() 134 NEGATIVE_SIZE_1.toByteArray(), in testException_decodeStringListRequireUtf8_second() 149 NEGATIVE_SIZE_0.toByteArray(), in testException_decodeBytesList_first() 164 NEGATIVE_SIZE_1.toByteArray(), in testException_decodeBytesList_second() 179 NEGATIVE_SIZE_0.toByteArray(), in testException_decodeUnknownField()
|
| /external/okio/okio/src/jvmTest/kotlin/okio/ |
| D | ByteStringJavaTest.kt | 83 val bytes = "Hello, World!".toByteArray(UTF_8) in decodeHex() 94 val inputStream = ByteArrayInputStream("abc".toByteArray(UTF_8)) in read() 102 val inputStream = ByteArrayInputStream("ABC".toByteArray(UTF_8)) in readAndToLowercase() 110 val inputStream = ByteArrayInputStream("abc".toByteArray(UTF_8)) in readAndToUppercase() 120 assertByteArraysEquals(byteArrayOf(0x61, 0x62, 0x63), out.toByteArray()) in write() 200 assertByteArraysEquals(byteString.toByteArray(), bronzeHorseman.toByteArray(UTF_8)) in encodeDecodeStringUtf8() 214 assertByteArraysEquals(byteString.toByteArray(), bronzeHorseman.toByteArray(UTF_16BE)) in encodeDecodeStringUtf16be() 228 assertByteArraysEquals(byteString.toByteArray(), bronzeHorseman.toByteArray(UTF_32BE)) in encodeDecodeStringUtf32be() 243 assertByteArraysEquals(byteString.toByteArray(), bronzeHorseman.toByteArray(US_ASCII)) in encodeDecodeStringAsciiIsLossy()
|
| /external/guava/guava-tests/test/com/google/common/io/ |
| D | ByteStreamsTest.java | 55 assertThat(out.toByteArray()).isEqualTo(expected); in testCopyChannel() 74 byte[] actual = out.toByteArray(); in testCopyFileChannel() 269 assertEquals(0, out.toByteArray().length); in testNewDataOutput_empty() 276 assertThat(out.toByteArray()).isEqualTo(bytes); in testNewDataOutput_writeInt() 283 assertThat(out.toByteArray()).isEqualTo(bytes); in testNewDataOutput_sized() 289 assertThat(out.toByteArray()).isEqualTo(bytes); in testNewDataOutput_writeLong() 295 assertThat(out.toByteArray()).isEqualTo(bytes); in testNewDataOutput_writeByteArray() 302 assertThat(out.toByteArray()).isEqualTo(new byte[] {0x12, 0x34}); in testNewDataOutput_writeByte() 309 assertThat(out.toByteArray()).isEqualTo(expected); in testNewDataOutput_writeByteOffset() 317 assertThat(out.toByteArray()).isEqualTo(expected); in testNewDataOutput_writeBoolean() [all …]
|
| /external/guava/android/guava-tests/test/com/google/common/io/ |
| D | ByteStreamsTest.java | 55 assertThat(out.toByteArray()).isEqualTo(expected); in testCopyChannel() 74 byte[] actual = out.toByteArray(); in testCopyFileChannel() 269 assertEquals(0, out.toByteArray().length); in testNewDataOutput_empty() 276 assertThat(out.toByteArray()).isEqualTo(bytes); in testNewDataOutput_writeInt() 283 assertThat(out.toByteArray()).isEqualTo(bytes); in testNewDataOutput_sized() 289 assertThat(out.toByteArray()).isEqualTo(bytes); in testNewDataOutput_writeLong() 295 assertThat(out.toByteArray()).isEqualTo(bytes); in testNewDataOutput_writeByteArray() 302 assertThat(out.toByteArray()).isEqualTo(new byte[] {0x12, 0x34}); in testNewDataOutput_writeByte() 309 assertThat(out.toByteArray()).isEqualTo(expected); in testNewDataOutput_writeByteOffset() 317 assertThat(out.toByteArray()).isEqualTo(expected); in testNewDataOutput_writeBoolean() [all …]
|