plebble
us.gov.crypto.linux_secure_random Class Reference
Inheritance diagram for us.gov.crypto.linux_secure_random:
Collaboration diagram for us.gov.crypto.linux_secure_random:

Classes

class  LinuxSecureRandomProvider
 

Public Member Functions

 linux_secure_random ()
 

Protected Member Functions

void engineSetSeed (byte[] bytes)
 
void engineNextBytes (byte[] bytes)
 
byte[] engineGenerateSeed (int i)
 

Static Package Functions

 [static initializer]
 

Private Attributes

final DataInputStream dis
 

Static Private Attributes

static final FileInputStream urandom
 

Detailed Description

A SecureRandom implementation that is able to override the standard JVM provided implementation, and which simply serves random numbers by reading /dev/urandom. That is, it delegates to the kernel on UNIX systems and is unusable on other platforms. Attempts to manually set the seed are ignored. There is no difference between seed bytes and non-seed bytes, they are all from the same source.

Constructor & Destructor Documentation

◆ linux_secure_random()

us.gov.crypto.linux_secure_random.linux_secure_random ( )
inline

Member Function Documentation

◆ [static initializer]()

us.gov.crypto.linux_secure_random.[static initializer]
inlinestaticpackage

◆ engineGenerateSeed()

byte [] us.gov.crypto.linux_secure_random.engineGenerateSeed ( int  i)
inlineprotected

◆ engineNextBytes()

void us.gov.crypto.linux_secure_random.engineNextBytes ( byte[]  bytes)
inlineprotected

◆ engineSetSeed()

void us.gov.crypto.linux_secure_random.engineSetSeed ( byte[]  bytes)
inlineprotected

Member Data Documentation

◆ dis

final DataInputStream us.gov.crypto.linux_secure_random.dis
private

◆ urandom

final FileInputStream us.gov.crypto.linux_secure_random.urandom
staticprivate

The documentation for this class was generated from the following file: