Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

gnu.javax.crypto.jce.prng
Class ICMRandomSpi  view ICMRandomSpi download ICMRandomSpi.java

java.lang.Object
  extended byjava.security.SecureRandomSpi
      extended bygnu.javax.crypto.jce.prng.ICMRandomSpi
All Implemented Interfaces:
java.io.Serializable

public class ICMRandomSpi
extends java.security.SecureRandomSpi

An Adapter class around gnu.javax.crypto.prng.ICMGenerator to allow using this algorithm as a JCE java.security.SecureRandom.


Field Summary
private  gnu.javax.crypto.prng.ICMGenerator adaptee
          Our underlying prng instance.
private static boolean DEBUG
           
private static int debuglevel
           
private static java.io.PrintWriter err
           
private static java.lang.String LIMIT_REACHED_MSG
           
private static java.lang.String MSG
           
private static java.lang.String NAME
           
private static gnu.javax.crypto.prng.ICMGenerator prng
          Class-wide prng to generate random material for the underlying prng.
private static java.lang.String RESEED
           
private static java.lang.String RETRY
           
 
Fields inherited from class java.security.SecureRandomSpi
 
Constructor Summary
ICMRandomSpi()
           
 
Method Summary
private static void debug(java.lang.String s)
           
 byte[] engineGenerateSeed(int numBytes)
          Gets a user specified number of bytes specified by the parameter.
 void engineNextBytes(byte[] bytes)
          Gets a user specified number of bytes depending on the length of the array?
 void engineSetSeed(byte[] seed)
          Updates the seed for SecureRandomSpi but does not reset seed.
private static void resetLocalPRNG()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

private static final java.lang.String NAME
See Also:
Constant Field Values

DEBUG

private static final boolean DEBUG
See Also:
Constant Field Values

debuglevel

private static final int debuglevel
See Also:
Constant Field Values

err

private static final java.io.PrintWriter err

prng

private static final gnu.javax.crypto.prng.ICMGenerator prng
Class-wide prng to generate random material for the underlying prng.


MSG

private static final java.lang.String MSG
See Also:
Constant Field Values

RETRY

private static final java.lang.String RETRY
See Also:
Constant Field Values

LIMIT_REACHED_MSG

private static final java.lang.String LIMIT_REACHED_MSG
See Also:
Constant Field Values

RESEED

private static final java.lang.String RESEED
See Also:
Constant Field Values

adaptee

private gnu.javax.crypto.prng.ICMGenerator adaptee
Our underlying prng instance.

Constructor Detail

ICMRandomSpi

public ICMRandomSpi()
Method Detail

debug

private static void debug(java.lang.String s)

resetLocalPRNG

private static void resetLocalPRNG()

engineGenerateSeed

public byte[] engineGenerateSeed(int numBytes)
Description copied from class: java.security.SecureRandomSpi
Gets a user specified number of bytes specified by the parameter.


engineNextBytes

public void engineNextBytes(byte[] bytes)
Description copied from class: java.security.SecureRandomSpi
Gets a user specified number of bytes depending on the length of the array?


engineSetSeed

public void engineSetSeed(byte[] seed)
Description copied from class: java.security.SecureRandomSpi
Updates the seed for SecureRandomSpi but does not reset seed. It does to this so repeated called never decrease randomness.