Click or drag to resize

Rng Class

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

Namespace: CryptoSysAPI
Assembly: diCrSysAPINet (in diCrSysAPINet.dll) Version: 6.22.2.24248 (6.22.2.0)
Syntax
public class Rng

The Rng type exposes the following members.

Methods
 NameDescription
Public methodStatic memberBytesWithPrompt(Int32, RngStrength) Generates an array of random bytes with a prompt for keyboard input
Public methodStatic memberBytesWithPrompt(Int32, String, RngStrength) Generates an array of random bytes with a prompt for keyboard input
Public methodStatic memberHexWithPrompt(Int32) Generates random bytes in hex format with a prompt for keyboard input
Public methodStatic memberHexWithPrompt(Int32, String, RngStrength) Generates random bytes in hex format with a prompt for keyboard input
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 memberKeyBytes(Int32, Byte) Generates a random key with user-supplied entropy
Public methodStatic memberKeyBytes(Int32, String) Generates a random key
Public methodStatic memberKeyHex(Int32, Byte) Generates a random key in hex format with user-supplied entropy
Public methodStatic memberKeyHex(Int32, String) Generates a random key in hex format
Public methodStatic memberMakeSeedFile(String, RngStrength) Create a new seed file suitable for use with Rng.Initialize
Public methodStatic memberMakeSeedFile(String, String, RngStrength) Create a new seed file suitable for use with Rng.Initialize
Public methodStatic memberNonceBytes Generates a random nonce
Public methodStatic memberNonceHex Generates a random nonce in hex format
Public methodStatic memberNumber Generates a random integer in a given range
Public methodStatic memberOctet Generates a single random octet (byte)
Public methodStatic memberTest Carries out a NIST SP800-90 health check and FIPS140-2 statistical tests on the random number generator
Public methodStatic memberTestDrbgvs Tests the random number generator for conformance to NIST SP 800-90A using the relevant test specified in the Deterministic Random Bit Generator Validation System (DRBGVS).
Public methodStatic memberUpdateSeedFile Updates the RNG seed file
Top
See Also