gnu.crypto.prng

Class Fortuna.Generator

public static class Fortuna.Generator extends BasePRNG implements Cloneable

The Fortuna generator function. The generator is a PRNG in its own right; Fortuna itself is basically a wrapper around this generator that manages reseeding in a secure way.
Constructor Summary
Generator(IBlockCipher cipher, IMessageDigest hash)
Method Summary
voidaddRandomByte(byte b)
voidaddRandomBytes(byte[] seed, int offset, int length)
voidfillBlock()
bytenextByte()
voidnextBytes(byte[] out, int offset, int length)
voidsetup(Map attributes)

Constructor Detail

Generator

public Generator(IBlockCipher cipher, IMessageDigest hash)

Method Detail

addRandomByte

public void addRandomByte(byte b)

addRandomBytes

public void addRandomBytes(byte[] seed, int offset, int length)

fillBlock

public void fillBlock()

nextByte

public byte nextByte()

nextBytes

public void nextBytes(byte[] out, int offset, int length)

setup

public void setup(Map attributes)
Copyright © 2001, 2002, 2003 Free Software Foundation, Inc. All Rights Reserved.