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

Quick Search    Search Deep

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

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

public class UMacRandomSpi
extends java.security.SecureRandomSpi

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


Field Summary
private  gnu.javax.crypto.prng.UMacGenerator adaptee
          Our underlying prng instance.
private static boolean DEBUG
           
private static java.io.PrintWriter err
           
private static java.lang.String MSG
           
private static java.lang.String NAME
           
private static gnu.javax.crypto.prng.UMacGenerator prng
          Class-wide prng to generate random material for the underlying prng.
private static java.lang.String RETRY
           
 
Fields inherited from class java.security.SecureRandomSpi
 
Constructor Summary
UMacRandomSpi()
           
 
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

err

private static final java.io.PrintWriter err

prng

private static final gnu.javax.crypto.prng.UMacGenerator 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

adaptee

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

Constructor Detail

UMacRandomSpi

public UMacRandomSpi()
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.