Bouncy Castle Cryptography Library 1.87

org.bouncycastle.crypto.test
Class TupleHashLargeInputTest

java.lang.Object
  extended byorg.bouncycastle.util.test.SimpleTest
      extended byorg.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.


Nested Class Summary
 
Nested classes inherited from class org.bouncycastle.util.test.SimpleTest
SimpleTest.TestExceptionOperation
 
Constructor Summary
TupleHashLargeInputTest()
           
 
Method Summary
 java.lang.String getName()
           
static void main(java.lang.String[] args)
           
 void performTest()
           
 
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
 

Constructor Detail

TupleHashLargeInputTest

public TupleHashLargeInputTest()
Method Detail

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)

Bouncy Castle Cryptography Library 1.87