paramiko.rng.StrongLockingRandomPool

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

# Class StrongLockingRandomPool

source code

    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 | source code
stir(self, s=`'````'`) | source code
randomize(self, N=0) | source code
add_event(self, s=`'````'`) | source code
get_bytes(self, N) | source code
Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Properties
Inherited from `object`: `__class__`

Method Details

### __init__(self, instance=None) (Constructor) | source code
x.__init__(...) initializes x; see x.__class__.__doc__ for signature Overrides: object.__init__ (inherited documentation)