Home
last modified time | relevance | path

Searched refs:bytesToHex (Results 1 – 25 of 28) sorted by relevance

12

/external/wycheproof/java/com/google/security/wycheproof/testcases/
DEciesTest.java84 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()
DDhiesTest.java96 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()
DCipherOutputStreamTest.java112 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()
DEcdhTest.java850 assertEquals(TestUtil.bytesToHex(kAB), TestUtil.bytesToHex(kBA)); in testBasic()
863 assertEquals("Curve:" + t.curvename, TestUtil.bytesToHex(shared), t.shared); in testVectors()
908 String expected = TestUtil.bytesToHex(ka.generateSecret()); in testModifiedPublic()
915 String shared = TestUtil.bytesToHex(ka.generateSecret()); in testModifiedPublic()
953 String expected = TestUtil.bytesToHex(ka.generateSecret()); in testModifiedPublicSpec()
965 String shared = TestUtil.bytesToHex(ka.generateSecret()); in testModifiedPublicSpec()
1045 System.out.println("generated shared secret:" + TestUtil.bytesToHex(shared)); in testDistinctCurves()
1120 + TestUtil.bytesToHex(shared) in testWrongOrder()
1122 + TestUtil.bytesToHex(shared2)); in testWrongOrder()
1124 "Algorithm:" + algorithm, TestUtil.bytesToHex(shared), TestUtil.bytesToHex(shared2)); in testWrongOrder()
DCipherInputStreamTest.java121 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()
DAesEaxTest.java263 assertEquals(test.ctHex, TestUtil.bytesToHex(ct)); in testEax()
281 String result = TestUtil.bytesToHex(c0) + TestUtil.bytesToHex(c1); in testLateUpdateAAD()
DRsaSignatureTest.java1109 System.out.println("Hash:" + TestUtil.bytesToHex(rawHash)); in testBasic()
1113 System.out.println("encoded:" + TestUtil.bytesToHex(pub.getEncoded())); in testBasic()
1116 System.out.println("encoded:" + TestUtil.bytesToHex(priv.getEncoded())); in testBasic()
1117 System.out.println("Signature:" + TestUtil.bytesToHex(signature)); in testBasic()
DDhTest.java211 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()
DAesGcmTest.java154 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()
DEcdsaTest.java717 System.out.println("Hash:" + TestUtil.bytesToHex(rawHash)); in testBasic()
722 System.out.println("encoded:" + TestUtil.bytesToHex(priv.getEncoded())); in testBasic()
727 System.out.println("encoded:" + TestUtil.bytesToHex(pub.getEncoded())); in testBasic()
728 System.out.println("Signature:" + TestUtil.bytesToHex(signature)); in testBasic()
DDsaTest.java824 System.out.println("Hash:" + TestUtil.bytesToHex(rawHash)); in testBasic()
831 System.out.println("encoded:" + TestUtil.bytesToHex(priv.getEncoded())); in testBasic()
834 System.out.println("encoded:" + TestUtil.bytesToHex(pub.getEncoded())); in testBasic()
835 System.out.println("Signature:" + TestUtil.bytesToHex(signature)); in testBasic()
DEcKeyTest.java159 System.out.println("Encoded ECPrivateKey:" + TestUtil.bytesToHex(encoded)); in testEncodedPrivateKey()
/external/wycheproof/keystore-cts/java/com/google/security/wycheproof/testcases/
DMacTest.java122 + TestUtil.bytesToHex(mac1) in testUpdateWithChunks()
124 + TestUtil.bytesToHex(mac2)); in testUpdateWithChunks()
139 + TestUtil.bytesToHex(mac1) in testUpdateWithChunks()
141 + TestUtil.bytesToHex(mac3)); in testUpdateWithChunks()
158 + TestUtil.bytesToHex(mac1) in testUpdateWithChunks()
160 + TestUtil.bytesToHex(mac4)); in testUpdateWithChunks()
344 String hexmac = TestUtil.bytesToHex(mac); in testLongMac()
DEcdhTest.java568 assertEquals(TestUtil.bytesToHex(kAB), TestUtil.bytesToHex(kBA)); in testBasic()
575 assertEquals(TestUtil.bytesToHex(valid.getEncoded()), EC_VALID_PUBLIC_KEY.encoded); in testEncode()
611 String expected = TestUtil.bytesToHex(ka.generateSecret()); in testModifiedPublic()
618 String shared = TestUtil.bytesToHex(ka.generateSecret()); in testModifiedPublic()
652 String expected = TestUtil.bytesToHex(ka.generateSecret()); in testModifiedPublicSpec()
664 String shared = TestUtil.bytesToHex(ka.generateSecret()); in testModifiedPublicSpec()
766 "Algorithm:" + algorithm, TestUtil.bytesToHex(shared), TestUtil.bytesToHex(shared2)); in testWrongOrder()
827 assertEquals(TestUtil.bytesToHex(shared1), TestUtil.bytesToHex(shared2)); in testLargePrivateKey()
DCipherOutputStreamTest.java158 assertEquals(TestUtil.bytesToHex(t.ct), TestUtil.bytesToHex(os.toByteArray())); in testEncrypt()
172 assertEquals(TestUtil.bytesToHex(t.pt), TestUtil.bytesToHex(os.toByteArray())); in testDecrypt()
205 + TestUtil.bytesToHex(decrypted) in testCorruptDecrypt()
207 + TestUtil.bytesToHex(t.pt)); in testCorruptDecrypt()
DCipherInputStreamTest.java166 assertEquals(TestUtil.bytesToHex(t.ct), TestUtil.bytesToHex(result)); in testEncrypt()
191 assertEquals(TestUtil.bytesToHex(t.pt), TestUtil.bytesToHex(result)); in testDecrypt()
232 + TestUtil.bytesToHex(result) in testCorruptDecrypt()
234 + TestUtil.bytesToHex(t.pt)); in testCorruptDecrypt()
DRsaEncryptionTest.java173 String messageHex = TestUtil.bytesToHex(getBytes(testcase, "msg")); in testDecryption()
175 String ciphertextHex = TestUtil.bytesToHex(ciphertext); in testDecryption()
202 String decryptedHex = TestUtil.bytesToHex(decrypted); in testDecryption()
DRsaOaepTest.java319 String messageHex = TestUtil.bytesToHex(getBytes(testcase, "msg")); in testOaep()
328 String ciphertextHex = TestUtil.bytesToHex(ciphertext); in testOaep()
353 String decryptedHex = TestUtil.bytesToHex(decrypted); in testOaep()
DRsaSignatureTest.java1359 String signatureHex = TestUtil.bytesToHex(signature); in testFaultySigner()
1360 String invalidSignatureHex = TestUtil.bytesToHex(invalidSignature); in testFaultySigner()
DAesGcmTest.java271 assertEquals(test.ctHex, TestUtil.bytesToHex(ct)); in testVectors()
399 String result = TestUtil.bytesToHex(c0) + TestUtil.bytesToHex(c1); in testLateUpdateAAD()
439 + TestUtil.bytesToHex(ct1) in testIvReuse()
441 + TestUtil.bytesToHex(ct2)); in testIvReuse()
DJsonSignatureTest.java379 String sig = TestUtil.bytesToHex(signature); in testVerification()
469 String expectedSig = TestUtil.bytesToHex(signature); in testSigning()
473 String sig = TestUtil.bytesToHex(signer.sign()); in testSigning()
/external/glide/library/src/main/java/com/bumptech/glide/util/
DUtil.java29 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/keystore-cts/java/com/google/security/wycheproof/
DTestUtil.java25 public static String bytesToHex(byte[] bytes) { in bytesToHex() method in TestUtil
52 return bytesToHex(bytes); in byteBufferToHex()
/external/wycheproof/java/com/google/security/wycheproof/
DTestUtil.java26 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/
DJdkGenericDumpTestCase.java123 private static String bytesToHex(final byte[] bytes) { in bytesToHex() method in JdkGenericDumpTestCase
204 System.out.println(bytesToHex(src)); in compare()
205 System.out.println(bytesToHex(out)); in compare()

12