Click or drag to resize

Rng Class

Random Number Generator to NIST SP800-90
Inheritance Hierarchy
SystemObject
  CryptoSysPKIRng

Namespace: CryptoSysPKI
Assembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntax
public class Rng

The Rng type exposes the following members.

Methods
 NameDescription
Public methodStatic memberBytes(Int32) Generate an array of random bytes.
Public methodStatic memberBytes(Int32, Byte) Generate an array of random bytes with user-supplied entropy.
Public methodStatic memberBytes(Int32, String) Generate an array of random bytes with user-supplied entropy.
Public methodStatic memberBytesWithPrompt(Int32, RngStrength) Generate an array of random bytes with a prompt for random keyboard input.
Public methodStatic memberBytesWithPrompt(Int32, String, RngStrength) Generate an array of random bytes with a prompt for random keyboard input.
Public methodStatic memberGuid Generate a random 36-character Global Unique IDentifier (GUID) string according to [RFC4122].
Public methodStatic memberInitialize Initialize the RNG generator with a seed file.
Public methodStatic memberInitializeEx Query and initialize the RNG generator using Intel(R) DRNG, if available.
Public methodStatic memberMakeSeedFile Create a new seed file suitable for use with Rng.Initialize.
Public methodStatic memberNumber Generate a random number (integer) in a given range.
Public methodStatic memberOctet Generate a single random octet (byte).
Public methodStatic memberTest Carry out a NIST SP800-90 health check and FIPS140-2 statistical tests on the random number generator.
Public methodStatic memberTestDrbgvs Test the RNG for conformance to NIST SP800-90A using the relevant test specified in DRBGVS.
Public methodStatic memberUpdateSeedFile Update the RNG seed file.
Top
Fields
 NameDescription
Public fieldStatic memberSeedFileSize Required size for RNG seed file
Top
See Also