Searched refs:sha (Results 1 – 3 of 3) sorted by relevance
100 private void testSerializationSHA_DATA_2(MessageDigest sha) throws Exception { in testSerializationSHA_DATA_2() argument101 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() argument161 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() local205 assertNotNull(sha); in test_digest()206 sha.update(MESSAGE.getBytes()); in test_digest()207 byte[] digest = sha.digest(); in test_digest()[all …]
42 MessageDigest sha = MessageDigest.getInstance("SHA"); in testShaReset() local43 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()
442 ByteArrayOutputStream sha = new ByteArrayOutputStream(); in computeSerialVersionUID() local444 DataOutputStream output = new DataOutputStream(sha); in computeSerialVersionUID()602 byte[] hash = digest.digest(sha.toByteArray()); in computeSerialVersionUID()