CryptoSys PKI Pro Manual

Rng.TestDrbgvs Method

Test the RNG for conformance to NIST SP800-90A using the relevant test specified in DRBGVS.

Syntax

[C#]
public static string TestDrbgvs(
   int returnedBitsLen,
   string entropyInput,
   string nonce,
   string personalizationString,
   string additionalInput1,
   string entropyReseed,
   string additionalInputReseed,
   string additionalInput2 
)
[VB]
Public Shared Function TestDrbgvs (
   returnedBitsLen As Integer,
   entropyInput As String,
   nonce As String,
   personalizationString As String,
   additionalInput1 As String,
   entropyReseed As String,
   additionalInputReseed As String,
   additionalInput2 As String 
) As String

Parameters

returnedBitsLen  Int32
Number of bits to be returned from each call to the generate function in the test
entropyInput  String
the EntropyInput value in hex format
nonce  String
the Nonce value in hex format
personalizationString  String
the PersonalizationString value in hex format
additionalInput1  String
the first AdditionalInput value in hex format
entropyReseed  String
the EntropyReseed value in hex format
additionalInputReseed  String
the AdditionalInputReseed value in hex format
additionalInput2  String
the second AdditionalInput value in hex format

Return Value

String
the ReturnedBits as a string in hexadecimal format

Remarks

The test procedure, the input values and the expected output are described in the DRBGVS document. The relevant DRBG mechanism is HMAC_DRBG SHA-512 without prediction resistance. Use the empty string "" to pass a zero-length input. All hex strings must have an even number of characters.

See Also

VB6/C equivalent: RNG_TestDRBGVS

[Contents] [Index]

[PREV: Rng.Test Method...]   [Contents]   [Index]   
   [NEXT: Rng.UpdateSeedFile Method...]

Copyright © 2004-26 D.I. Management Services Pty Ltd t/a CryptoSys. All rights reserved. Generated 2026-09-21T05:59:39Z.