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

Quick Search    Search Deep

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

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

public class ARCFourRandomSpi
extends java.security.SecureRandomSpi

Implementation of the Service Provider Interface (SPI) for the ARCFOUR keystream generator.


Field Summary
private  gnu.java.security.prng.IRandom adaptee
          Our underlying prng instance.
private  boolean virgin
          Have we been initialized?
 
Fields inherited from class java.security.SecureRandomSpi
 
Constructor Summary
ARCFourRandomSpi()
          Default 0-arguments constructor.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

adaptee

private gnu.java.security.prng.IRandom adaptee
Our underlying prng instance.


virgin

private boolean virgin
Have we been initialized?

Constructor Detail

ARCFourRandomSpi

public ARCFourRandomSpi()
Default 0-arguments constructor.

Method Detail

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.