org.bouncycastle.jce.provider.test
Class SerialisationTest

java.lang.Object
  extended by org.bouncycastle.util.test.SimpleTest
      extended by org.bouncycastle.jce.provider.test.SerialisationTest
All Implemented Interfaces:
Test

public class SerialisationTest
extends SimpleTest


Field Summary
private static java.math.BigInteger crtExp
           
private static java.math.BigInteger dhG
           
private static java.math.BigInteger dhP
           
private static byte[] dhPriv
           
private static byte[] dhPub
           
private static java.math.BigInteger dhX
           
private static java.math.BigInteger dhY
           
private static java.math.BigInteger dsaG
           
private static java.math.BigInteger dsaP
           
private static byte[] dsaPriv
           
private static byte[] dsaPub
           
private static java.math.BigInteger dsaX
           
private static java.math.BigInteger dsaY
           
private static java.math.BigInteger elGamalG
           
private static java.math.BigInteger elGamalP
           
private static byte[] elGamalPriv
           
private static byte[] elGamalPub
           
private static java.math.BigInteger elGamalX
           
private static java.math.BigInteger elGamalY
           
private static java.math.BigInteger expP
           
private static java.math.BigInteger expQ
           
private static java.math.BigInteger mod
           
private static java.math.BigInteger p
           
private static java.math.BigInteger privExp
           
private static java.math.BigInteger pubExp
           
private static java.math.BigInteger q
           
private static byte[] rsaPriv
           
private static byte[] rsaPub
           
 
Constructor Summary
SerialisationTest()
           
 
Method Summary
private  void dhTest()
           
private  void dsaTest()
           
private  void elGamalTest()
           
 java.lang.String getName()
           
static void main(java.lang.String[] args)
           
 void performTest()
           
private  java.lang.Object readObject(byte[] key)
           
private  void rsaTest()
           
 
Methods inherited from class org.bouncycastle.util.test.SimpleTest
areEqual, fail, fail, fail, perform, runTest, runTest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mod

private static java.math.BigInteger mod

pubExp

private static java.math.BigInteger pubExp

privExp

private static java.math.BigInteger privExp

crtExp

private static java.math.BigInteger crtExp

p

private static java.math.BigInteger p

q

private static java.math.BigInteger q

expP

private static java.math.BigInteger expP

expQ

private static java.math.BigInteger expQ

rsaPub

private static byte[] rsaPub

rsaPriv

private static byte[] rsaPriv

elGamalY

private static java.math.BigInteger elGamalY

elGamalX

private static java.math.BigInteger elGamalX

elGamalG

private static java.math.BigInteger elGamalG

elGamalP

private static java.math.BigInteger elGamalP

elGamalPub

private static byte[] elGamalPub

elGamalPriv

private static byte[] elGamalPriv

dhY

private static java.math.BigInteger dhY

dhX

private static java.math.BigInteger dhX

dhG

private static java.math.BigInteger dhG

dhP

private static java.math.BigInteger dhP

dhPub

private static byte[] dhPub

dhPriv

private static byte[] dhPriv

dsaY

private static java.math.BigInteger dsaY

dsaX

private static java.math.BigInteger dsaX

dsaG

private static java.math.BigInteger dsaG

dsaP

private static java.math.BigInteger dsaP

dsaPub

private static byte[] dsaPub

dsaPriv

private static byte[] dsaPriv
Constructor Detail

SerialisationTest

public SerialisationTest()
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

rsaTest

private void rsaTest()
              throws java.io.IOException,
                     java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

elGamalTest

private void elGamalTest()
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

dhTest

private void dhTest()
             throws java.io.IOException,
                    java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

dsaTest

private void dsaTest()
              throws java.io.IOException,
                     java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

readObject

private java.lang.Object readObject(byte[] key)
                             throws java.io.IOException,
                                    java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

main

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