org.bouncycastle.jce.provider.test
Class RSATest

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

public class RSATest
extends SimpleTest


Nested Class Summary
private  class RSATest.FixedSecureRandom
          a fake random number generator - we just want to make sure the random numbers aren't random so that we get the same output, while still getting to test the key generation facilities.
 
Field Summary
private  java.security.spec.RSAPrivateKeySpec isoPrivKeySpec
           
private  java.security.spec.RSAPublicKeySpec isoPubKeySpec
           
private  java.security.spec.RSAPrivateCrtKeySpec priv2048KeySpec
           
private  java.security.spec.RSAPrivateCrtKeySpec privKeySpec
           
private  java.security.spec.RSAPublicKeySpec pub2048KeySpec
           
private  java.security.spec.RSAPublicKeySpec pubKeySpec
           
 
Constructor Summary
RSATest()
           
 
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, 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

pubKeySpec

private java.security.spec.RSAPublicKeySpec pubKeySpec

privKeySpec

private java.security.spec.RSAPrivateCrtKeySpec privKeySpec

isoPubKeySpec

private java.security.spec.RSAPublicKeySpec isoPubKeySpec

isoPrivKeySpec

private java.security.spec.RSAPrivateKeySpec isoPrivKeySpec

pub2048KeySpec

private java.security.spec.RSAPublicKeySpec pub2048KeySpec

priv2048KeySpec

private java.security.spec.RSAPrivateCrtKeySpec priv2048KeySpec
Constructor Detail

RSATest

public RSATest()
Method Detail

performTest

public void performTest()
                 throws java.lang.Exception
Specified by:
performTest in class SimpleTest
Throws:
java.lang.Exception

getName

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

main

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