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

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

private class BlockCipherTest.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 BlockCipherTest.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

BlockCipherTest.FixedSecureRandom

private BlockCipherTest.FixedSecureRandom()
Method Detail

nextBytes

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