org.bouncycastle.jce.provider.test
Class RSATest.FixedSecureRandom

java.lang.Object
  extended by java.util.Random
      extended by java.security.SecureRandom
          extended by org.bouncycastle.jce.provider.test.RSATest.FixedSecureRandom
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
RSATest

private class RSATest.FixedSecureRandom
extends java.security.SecureRandom

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
(package private)  byte[] seed
           
 
Constructor Summary
private RSATest.FixedSecureRandom()
           
 
Method Summary
 void nextBytes(byte[] bytes)
           
 
Methods inherited from class java.security.SecureRandom
generateSeed, getAlgorithm, getInstance, getInstance, getInstance, getProvider, getSeed, next, setSeed, setSeed
 
Methods inherited from class java.util.Random
nextBoolean, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

seed

byte[] seed
Constructor Detail

RSATest.FixedSecureRandom

private RSATest.FixedSecureRandom()
Method Detail

nextBytes

public void nextBytes(byte[] bytes)
Overrides:
nextBytes in class java.security.SecureRandom