org.bouncycastle.crypto.test
Class TupleHashLargeInputTest
java.lang.Object
org.bouncycastle.util.test.SimpleTest
org.bouncycastle.crypto.test.TupleHashLargeInputTest
- All Implemented Interfaces:
- Test
- public class TupleHashLargeInputTest
- extends SimpleTest
TupleHash over a single element of 2^28 bytes - the smallest element whose length in bits does
not fit in an int. The expected value is built by driving cSHAKE with the byte string NIST
Special Publication 800-185 section 5.3 prescribes, whose encode_string prefix (section 2.3.3)
is computed here in long arithmetic.
Allocates around 512 MiB transiently, so it belongs in RegressionTest.slowTests.
| Methods inherited from class org.bouncycastle.util.test.SimpleTest |
areEqual, areEqual, areEqual, fail, fail, fail, isEquals, isEquals, isEquals, isEquals, isEquals, isEquals, isEquals, isTrue, isTrue, perform, runTest, runTest, runTests, runTests, testException |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TupleHashLargeInputTest
public TupleHashLargeInputTest()
getName
public java.lang.String getName()
- Specified by:
getName in interface Test- Specified by:
getName in class SimpleTest
performTest
public void performTest()
throws java.lang.Exception
- Specified by:
performTest in class SimpleTest
- Throws:
java.lang.Exception
main
public static void main(java.lang.String[] args)