예제 #1
0
 private void lazyInitDRBG()
 {
     if (drbg == null)
     {
         drbg = drbgProvider.Get(entropySource);
         // FSM_STATE:5.6, "DRBG HEALTH CHECKS", "The module is performing DRBG Health Check self-test"
         // FSM_TRANS:5.5, "CONDITIONAL TEST", "DRBG HEALTH CHECKS", "Invoke DRBG Health Check"
         SelfTestExecutor.Validate(algorithm, drbg.CreateSelfTest(algorithm));   // instance health test
         // FSM_TRANS:5.6, "DRBG HEALTH CHECKS", "CONDITIONAL TEST", "DRBG Health Check successful"
     }
 }
예제 #2
0
 public VariantInternalKatTest CreateSelfTest(Algorithm algorithm)
 {
     return(drbg.CreateSelfTest(algorithm));
 }