public class DigestTest
extends TestCase
Constructor and Description |
---|
DigestTest() |
Modifier and Type | Method and Description |
---|---|
void |
doTestMessageDigest(Digest oldDigest,
Digest newDigest)
Processes the two given message digests for the same data and checks
the results.
|
void |
testMD5()
Tests the MD5 implementation.
|
void |
testSHA1()
Tests the SHA-1 implementation.
|
void |
testSHA256()
Tests the SHA-256 implementation.
|
void |
testSHA384()
Tests the SHA-384 implementation.
|
void |
testSHA512()
Tests the SHA-512 implementation.
|
public void doTestMessageDigest(Digest oldDigest, Digest newDigest)
oldDigest
- The old digest implementation, provided by Bouncy CastlenewDigest
- The new digest implementation, provided by OpenSSLpublic void testMD5()
public void testSHA1()
public void testSHA256()
public void testSHA384()
public void testSHA512()