/external/wycheproof/java/com/google/security/wycheproof/testcases/ |
D | EciesTest.java | 84 System.out.println("testEciesBasic:" + TestUtil.bytesToHex(ciphertext)); in testEciesBasic() 87 assertEquals(TestUtil.bytesToHex(message), TestUtil.bytesToHex(decrypted)); in testEciesBasic() 175 System.out.println(TestUtil.bytesToHex(ciphertext)); in testExceptions() 185 fail("Decrypted:" + TestUtil.bytesToHex(corrupt)); in testExceptions() 251 String block1 = TestUtil.bytesToHex(Arrays.copyOfRange(ciphertext, 241, 257)); in testNotEcb() 252 String block2 = TestUtil.bytesToHex(Arrays.copyOfRange(ciphertext, 257, 273)); in testNotEcb() 253 assertTrue("Ciphertext repeats:" + TestUtil.bytesToHex(ciphertext), !block1.equals(block2)); in testNotEcb() 290 assertEquals(TestUtil.bytesToHex(message), TestUtil.bytesToHex(decrypted)); in testIsAlias()
|
D | DhiesTest.java | 96 System.out.println("testDhiesBasic:" + TestUtil.bytesToHex(ciphertext)); in testDhiesBasic() 99 assertEquals(TestUtil.bytesToHex(message), TestUtil.bytesToHex(decrypted)); in testDhiesBasic() 161 String block1 = TestUtil.bytesToHex(Arrays.copyOfRange(ciphertext, i, i + 16)); in testNotEcb() 162 String block2 = TestUtil.bytesToHex(Arrays.copyOfRange(ciphertext, i + 16, i + 32)); in testNotEcb() 164 "Ciphertext repeats at " + i + ":" + TestUtil.bytesToHex(ciphertext), in testNotEcb()
|
D | CipherOutputStreamTest.java | 112 assertEquals(TestUtil.bytesToHex(t.ct), TestUtil.bytesToHex(os.toByteArray())); in testEncrypt() 126 assertEquals(TestUtil.bytesToHex(t.pt), TestUtil.bytesToHex(os.toByteArray())); in testDecrypt() 151 + TestUtil.bytesToHex(decrypted) in testCorruptDecrypt() 153 + TestUtil.bytesToHex(t.pt)); in testCorruptDecrypt() 178 + TestUtil.bytesToHex(decrypted) in testCorruptDecryptEmpty() 180 + TestUtil.bytesToHex(t.pt)); in testCorruptDecryptEmpty()
|
D | EcdhTest.java | 845 assertEquals(TestUtil.bytesToHex(kAB), TestUtil.bytesToHex(kBA)); in testBasic() 855 assertEquals("Curve:" + t.curvename, TestUtil.bytesToHex(shared), t.shared); in testVectors() 897 String expected = TestUtil.bytesToHex(ka.generateSecret()); in testModifiedPublic() 904 String shared = TestUtil.bytesToHex(ka.generateSecret()); in testModifiedPublic() 942 String expected = TestUtil.bytesToHex(ka.generateSecret()); in testModifiedPublicSpec() 954 String shared = TestUtil.bytesToHex(ka.generateSecret()); in testModifiedPublicSpec() 1034 System.out.println("generated shared secret:" + TestUtil.bytesToHex(shared)); in testDistinctCurves() 1109 + TestUtil.bytesToHex(shared) in testWrongOrder() 1111 + TestUtil.bytesToHex(shared2)); in testWrongOrder() 1113 "Algorithm:" + algorithm, TestUtil.bytesToHex(shared), TestUtil.bytesToHex(shared2)); in testWrongOrder()
|
D | CipherInputStreamTest.java | 121 assertEquals(TestUtil.bytesToHex(t.ct), TestUtil.bytesToHex(result)); in testEncrypt() 146 assertEquals(TestUtil.bytesToHex(t.pt), TestUtil.bytesToHex(result)); in testDecrypt() 182 + TestUtil.bytesToHex(result) in testCorruptDecrypt() 184 + TestUtil.bytesToHex(t.pt)); in testCorruptDecrypt()
|
D | RsaSignatureTest.java | 1104 System.out.println("Hash:" + TestUtil.bytesToHex(rawHash)); in testBasic() 1108 System.out.println("encoded:" + TestUtil.bytesToHex(pub.getEncoded())); in testBasic() 1111 System.out.println("encoded:" + TestUtil.bytesToHex(priv.getEncoded())); in testBasic() 1112 System.out.println("Signature:" + TestUtil.bytesToHex(signature)); in testBasic()
|
D | AesEaxTest.java | 263 assertEquals(test.ctHex, TestUtil.bytesToHex(ct)); in testEax() 281 String result = TestUtil.bytesToHex(c0) + TestUtil.bytesToHex(c1); in testLateUpdateAAD()
|
D | DhTest.java | 211 assertEquals(TestUtil.bytesToHex(kAB), TestUtil.bytesToHex(kBA)); in testDh() 348 fail("Generated secrets with mixed keys " + TestUtil.bytesToHex(kAB) + ", "); in testDHDistinctParameters() 396 + TestUtil.bytesToHex(kAB)); in testSubgroupConfinement()
|
D | AesGcmTest.java | 154 assertEquals(test.ctHex, TestUtil.bytesToHex(ct)); in testVectors() 181 String result = TestUtil.bytesToHex(c0) + TestUtil.bytesToHex(c1); in testLateUpdateAAD() 212 + TestUtil.bytesToHex(ct1) in testIvReuse() 214 + TestUtil.bytesToHex(ct2)); in testIvReuse()
|
D | EcdsaTest.java | 704 System.out.println("Hash:" + TestUtil.bytesToHex(rawHash)); in testBasic() 709 System.out.println("encoded:" + TestUtil.bytesToHex(priv.getEncoded())); in testBasic() 714 System.out.println("encoded:" + TestUtil.bytesToHex(pub.getEncoded())); in testBasic() 715 System.out.println("Signature:" + TestUtil.bytesToHex(signature)); in testBasic()
|
D | DsaTest.java | 823 System.out.println("Hash:" + TestUtil.bytesToHex(rawHash)); in testBasic() 830 System.out.println("encoded:" + TestUtil.bytesToHex(priv.getEncoded())); in testBasic() 833 System.out.println("encoded:" + TestUtil.bytesToHex(pub.getEncoded())); in testBasic() 834 System.out.println("Signature:" + TestUtil.bytesToHex(signature)); in testBasic()
|
D | EcKeyTest.java | 151 System.out.println("Encoded ECPrivateKey:" + TestUtil.bytesToHex(encoded)); in testEncodedPrivateKey()
|
D | RsaKeyTest.java | 1476 assertEquals(ENCODED_PUBLIC_KEY, TestUtil.bytesToHex(pub.getEncoded())); in testEncodeDecodePublic()
|
/external/glide/library/src/main/java/com/bumptech/glide/util/ |
D | Util.java | 29 return bytesToHex(bytes, SHA_256_CHARS); in sha256BytesToHex() 36 return bytesToHex(bytes, SHA_1_CHARS); in sha1BytesToHex() 41 private static String bytesToHex(byte[] bytes, char[] hexChars) { in bytesToHex() method in Util
|
/external/wycheproof/java/com/google/security/wycheproof/ |
D | TestUtil.java | 26 public static String bytesToHex(byte[] bytes) { in bytesToHex() method in TestUtil 53 return bytesToHex(bytes); in byteBufferToHex()
|
/external/apache-commons-bcel/src/test/java/org/apache/bcel/generic/ |
D | JDKGenericDumpTestCase.java | 68 private static String bytesToHex(final byte[] bytes) { in bytesToHex() method in JDKGenericDumpTestCase 138 System.out.println(bytesToHex(src)); in compare() 139 System.out.println(bytesToHex(out)); in compare()
|