Class CryptoApiEntropySourceProvider
- Namespace
- Org.BouncyCastle.Crypto.Prng
- Assembly
- BouncyCastle.Cryptography.dll
public class CryptoApiEntropySourceProvider : IEntropySourceProvider
- Inheritance
-
CryptoApiEntropySourceProvider
- Implements
- Inherited Members
Constructors
CryptoApiEntropySourceProvider()
public CryptoApiEntropySourceProvider()
CryptoApiEntropySourceProvider(RandomNumberGenerator, bool)
public CryptoApiEntropySourceProvider(RandomNumberGenerator rng, bool isPredictionResistant)
Parameters
rngRandomNumberGeneratorisPredictionResistantbool
Methods
Get(int)
Return an entropy source providing a block of entropy.
public IEntropySource Get(int bitsRequired)
Parameters
bitsRequiredintThe size of the block of entropy required.
Returns
- IEntropySource
An entropy source providing bitsRequired blocks of entropy.