Back to index

lightning-sunbird  0.9+nobinonly
Public Types | Public Member Functions | Protected Attributes
nsEntropyCollector Class Reference

#include <nsEntropyCollector.h>

Inheritance diagram for nsEntropyCollector:
Inheritance graph
[legend]
Collaboration diagram for nsEntropyCollector:
Collaboration graph
[legend]

List of all members.

Public Types

enum  { entropy_buffer_size = 1024 }

Public Member Functions

 nsEntropyCollector ()
virtual ~nsEntropyCollector ()
void forwardTo (in nsIEntropyCollector collector)
 Forward the entropy collected so far to |collector| and then continue forwarding new entropy as it arrives.
void dontForward ()
 No longer forward to a (possibly) previously remembered collector.
void randomUpdate (in buffer entropy, in long bufLen)
 Add the following bytes to the pool of data to be used in gathering entropy.

Protected Attributes

unsigned char mEntropyCache [entropy_buffer_size]
PRInt32 mBytesCollected
unsigned char * mWritePointer
nsCOMPtr< nsIEntropyCollectormForwardTarget

Detailed Description

Definition at line 51 of file nsEntropyCollector.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
entropy_buffer_size 

Definition at line 61 of file nsEntropyCollector.h.

{ entropy_buffer_size = 1024 };

Constructor & Destructor Documentation

Definition at line 44 of file nsEntropyCollector.cpp.

Definition at line 49 of file nsEntropyCollector.cpp.

{
}

Member Function Documentation

No longer forward to a (possibly) previously remembered collector.

Do buffering again.

Forward the entropy collected so far to |collector| and then continue forwarding new entropy as it arrives.

void nsIEntropyCollector::randomUpdate ( in buffer  entropy,
in long  bufLen 
) [inherited]

Add the following bytes to the pool of data to be used in gathering entropy.


Member Data Documentation

Definition at line 65 of file nsEntropyCollector.h.

Definition at line 64 of file nsEntropyCollector.h.

Definition at line 67 of file nsEntropyCollector.h.

unsigned char* nsEntropyCollector::mWritePointer [protected]

Definition at line 66 of file nsEntropyCollector.h.


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