コード例 #1
0
 internal ContinuousTestingPseudoRng(IDrbg drbg, byte[] primaryAdditionalInput)
 {
     this.drbg      = drbg;
     this.block     = new byte[0];
     this.nextBlock = new byte[0];
     this.initialAdditionalInput = primaryAdditionalInput;
 }
コード例 #2
0
 internal FipsSecureRandom(SecureRandom randomSource, IDrbg drbg, bool predictionResistant)
 {
     //super(new RandomSpi(randomSource, drbg, predictionResistant), new RandomProvider());
     this.randomSource        = randomSource;
     this.drbg                = drbg;
     this.predictionResistant = predictionResistant;
 }
コード例 #3
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"
     }
 }