Home
last modified time | relevance | path

Searched refs:sha (Results 1 – 3 of 3) sorted by relevance

/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DMessageDigest2Test.java100 private void testSerializationSHA_DATA_2(MessageDigest sha) throws Exception { in testSerializationSHA_DATA_2() argument
101 sha.reset(); in testSerializationSHA_DATA_2()
153 byte[] hash = sha.digest(data); in testSerializationSHA_DATA_2()
160 private void testSerializationSHA_DATA_1(MessageDigest sha) throws Exception { in testSerializationSHA_DATA_1() argument
161 sha.reset(); in testSerializationSHA_DATA_1()
196 byte[] hash = sha.digest(data); in testSerializationSHA_DATA_1()
204 MessageDigest sha = MessageDigest.getInstance("SHA"); in test_digest() local
205 assertNotNull(sha); in test_digest()
206 sha.update(MESSAGE.getBytes()); in test_digest()
207 byte[] digest = sha.digest(); in test_digest()
[all …]
/libcore/luni/src/test/java/libcore/java/security/
DMessageDigestTest.java42 MessageDigest sha = MessageDigest.getInstance("SHA"); in testShaReset() local
43 sha.update(new byte[] { 1, 2, 3 }); in testShaReset()
44 sha.reset(); in testShaReset()
45 sha.update(new byte[] { 4, 5, 6 }); in testShaReset()
46 assertEquals(Arrays.toString(sha_456), Arrays.toString(sha.digest())); in testShaReset()
/libcore/luni/src/main/java/java/io/
DObjectStreamClass.java442 ByteArrayOutputStream sha = new ByteArrayOutputStream(); in computeSerialVersionUID() local
444 DataOutputStream output = new DataOutputStream(sha); in computeSerialVersionUID()
602 byte[] hash = digest.digest(sha.toByteArray()); in computeSerialVersionUID()