Package paramiko :: Module rng :: Class StrongLockingRandomPool
[frames] | no frames]

Class StrongLockingRandomPool

object --+
         |
        StrongLockingRandomPool

Wrapper around RandomPool guaranteeing strong random numbers.

Crypto.Util.randpool.RandomPool will silently operate even if it is seeded with little or no entropy, and it provides no prediction resistance if its state is ever compromised throughout its runtime. It is also not thread-safe.

This wrapper augments RandomPool by XORing its output with random bits from the operating system, and by controlling access to the underlying RandomPool using an exclusive lock.

Instance Methods
 
__init__(self, instance=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
add_event(self, s='')
 
get_bytes(self, N)
 
randomize(self, N=0)
 
stir(self, s='')

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties

Inherited from object: __class__

Method Details

__init__(self, instance=None)
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)