Package com.microej.crypto.test
Class MessageDigestTest
- java.lang.Object
-
- com.microej.crypto.test.MessageDigestTest
-
public class MessageDigestTest extends java.lang.ObjectTests theMessageDigestsupported algorithms.
-
-
Constructor Summary
Constructors Constructor Description MessageDigestTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtestDigestAtNonZeroOffsets()A digest computed from a sub-range and written at an offset lands where it was asked to, is the published value, and leaves the rest of the output alone, for each algorithm.voidtestMD5()Tests MD5 algorithm with different data sizes.voidtestSHA1()Tests SHA-1 algorithm with different data sizes.voidtestSHA256()Tests SHA-256 algorithm with different data sizes.voidtestSHA512()Tests SHA-512 algorithm with different data sizes.
-
-
-
Method Detail
-
testMD5
public void testMD5() throws java.lang.ExceptionTests MD5 algorithm with different data sizes.- Throws:
java.lang.Exception- If a test has gone wrong.
-
testSHA1
public void testSHA1() throws java.lang.ExceptionTests SHA-1 algorithm with different data sizes.- Throws:
java.lang.Exception- If a test has gone wrong.
-
testSHA256
public void testSHA256() throws java.lang.ExceptionTests SHA-256 algorithm with different data sizes.- Throws:
java.lang.Exception- If a test has gone wrong.
-
testSHA512
public void testSHA512() throws java.lang.ExceptionTests SHA-512 algorithm with different data sizes.- Throws:
java.lang.Exception- If a test has gone wrong.
-
testDigestAtNonZeroOffsets
public void testDigestAtNonZeroOffsets() throws java.lang.ExceptionA digest computed from a sub-range and written at an offset lands where it was asked to, is the published value, and leaves the rest of the output alone, for each algorithm.- Throws:
java.lang.Exception
-
-