Oracle Security Developer Tools Crypto Java API Reference
10g Release 2 (10.1.2.0.2)

B15565-01


oracle.security.crypto.core
Class SHA1RandomBitsSource

java.lang.Object
  extended byoracle.security.crypto.core.RandomBitsSource
      extended byoracle.security.crypto.core.DigestRandomBitsSource
          extended byoracle.security.crypto.core.SHA1RandomBitsSource


public class SHA1RandomBitsSource
extends DigestRandomBitsSource

A PRNG based on the design pattern in Schneier's Applied Cryptography, using SHA-1 as a mixing and output primitive.

See Also:
EntropySource, DigestRandomBitsSource

Constructor Summary
SHA1RandomBitsSource()
Create a new, seeded SHA1RandomBitsSource.
SHA1RandomBitsSource(boolean seed)
Create a new, optionally seeded SHA1RandomBitsSource.

Methods inherited from class oracle.security.crypto.core.DigestRandomBitsSource
clear, initialize, randomByte, randomBytes, seed, seed, seed, seed

Methods inherited from class oracle.security.crypto.core.RandomBitsSource
getDefault, randomBigInteger, setDefault

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

SHA1RandomBitsSource

public SHA1RandomBitsSource()
Create a new, seeded SHA1RandomBitsSource.

SHA1RandomBitsSource

public SHA1RandomBitsSource(boolean seed)
Create a new, optionally seeded SHA1RandomBitsSource.
Parameters:
seed - If true, DigestRandomBitsSource.seed() will be invoked.

Oracle Security Developer Tools Crypto Java API Reference
10g Release 2 (10.1.2.0.2)

B15565-01


Copyright © 2005 , Oracle. All rights reserved.