Package org.bouncycastle.crypto.test
Class NaccacheSternTest
- java.lang.Object
-
- org.bouncycastle.util.test.SimpleTest
-
- org.bouncycastle.crypto.test.NaccacheSternTest
-
- All Implemented Interfaces:
Test
public class NaccacheSternTest extends SimpleTest
Test case for NaccacheStern cipher. For details on this cipher, please see https://www.gemplus.com/smart/rd/publications/pdf/NS98pkcs.pdf Performs the following tests:- Toy example from the NaccacheSternPaper
- 768 bit test with text "Now is the time for all good men." (ripped from RSA test) and the same test with the first byte replaced by 0xFF
- 1024 bit test analog to 768 bit test
-
-
Constructor Summary
Constructors Constructor Description NaccacheSternTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
static void
main(java.lang.String[] args)
void
performTest()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceTest
- Specified by:
getName
in classSimpleTest
-
performTest
public void performTest()
- Specified by:
performTest
in classSimpleTest
-
main
public static void main(java.lang.String[] args)
-
-