Bouncy Castle Cryptography Library 1.64

org.bouncycastle.crypto.test
Class NaccacheSternTest

java.lang.Object
  extended byorg.bouncycastle.util.test.SimpleTest
      extended byorg.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 http://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
NaccacheSternTest()
           
 
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, fail, fail, fail, isEquals, isEquals, isEquals, isEquals, isEquals, isEquals, isTrue, isTrue, perform, runTest, runTest, runTests, runTests
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NaccacheSternTest

public NaccacheSternTest()
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface Test
Specified by:
getName in class SimpleTest

performTest

public void performTest()
Specified by:
performTest in class SimpleTest

main

public static void main(java.lang.String[] args)

Bouncy Castle Cryptography Library 1.64