Test the RNG for conformance to NIST SP800-90A using the relevant test specified in DRBGVS.
Namespace: CryptoSysPKIAssembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntaxpublic static string TestDrbgvs(
int returnedBitsLen,
string entropyInput,
string nonce,
string personalizationString,
string additionalInput1,
string entropyReseed,
string additionalInputReseed,
string additionalInput2
)
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
Stringthe ReturnedBits as a string in hexadecimal format
RemarksThe 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