Class CtrSP800Drbg
- Namespace
- Org.BouncyCastle.Crypto.Prng.Drbg
- Assembly
- BouncyCastle.Cryptography.dll
public sealed class CtrSP800Drbg : ISP80090Drbg
- Inheritance
-
CtrSP800Drbg
- Implements
-
- Inherited Members
-
Constructors
CtrSP800Drbg(IBlockCipher, int, int, IEntropySource, byte[], byte[])
public CtrSP800Drbg(IBlockCipher engine, int keySizeInBits, int securityStrength, IEntropySource entropySource, byte[] personalizationString, byte[] nonce)
Parameters
engine IBlockCipher
keySizeInBits int
securityStrength int
entropySource IEntropySource
personalizationString byte[]
nonce byte[]
Properties
BlockSize
public int BlockSize { get; }
Property Value
- int
Methods
Generate(byte[], int, int, byte[], bool)
public int Generate(byte[] output, int outputOff, int outputLen, byte[] additionalInput, bool predictionResistant)
Parameters
output byte[]
outputOff int
outputLen int
additionalInput byte[]
predictionResistant bool
Returns
- int
Generate(Span<byte>, bool)
public int Generate(Span<byte> output, bool predictionResistant)
Parameters
output Span<byte>
predictionResistant bool
Returns
- int
public int GenerateWithInput(Span<byte> output, ReadOnlySpan<byte> additionalInput, bool predictionResistant)
Parameters
output Span<byte>
additionalInput ReadOnlySpan<byte>
predictionResistant bool
Returns
- int
Reseed(byte[])
public void Reseed(byte[] additionalInput)
Parameters
additionalInput byte[]
Reseed(ReadOnlySpan<byte>)
public void Reseed(ReadOnlySpan<byte> additionalInput)
Parameters
additionalInput ReadOnlySpan<byte>