Lines Matching refs:testState
498 DRBG_STATE testState; in DRBG_SelfTest() local
505 if(!DRBG_Instantiate(&testState, 0, NULL)) in DRBG_SelfTest()
508 dbgDumpMemBlock(pDRBG_KEY(&testState), DRBG_KEY_SIZE_BYTES, in DRBG_SelfTest()
510 dbgDumpMemBlock(pDRBG_IV(&testState), DRBG_IV_SIZE_BYTES, in DRBG_SelfTest()
513 if(DRBG_Generate((RAND_STATE *)&testState, buf, sizeof(buf)) == 0) in DRBG_SelfTest()
516 dbgDumpMemBlock(pDRBG_KEY(&testState.seed), DRBG_KEY_SIZE_BYTES, in DRBG_SelfTest()
518 dbgDumpMemBlock(pDRBG_IV(&testState.seed), DRBG_IV_SIZE_BYTES, in DRBG_SelfTest()
524 DRBG_Reseed(&testState, &seed, NULL); in DRBG_SelfTest()
526 dbgDumpMemBlock((BYTE *)pDRBG_KEY(&testState.seed), DRBG_KEY_SIZE_BYTES, in DRBG_SelfTest()
528 dbgDumpMemBlock((BYTE *)pDRBG_IV(&testState.seed), DRBG_IV_SIZE_BYTES, in DRBG_SelfTest()
532 if(DRBG_Generate((RAND_STATE *)&testState, buf, sizeof(buf)) == 0) in DRBG_SelfTest()
538 DRBG_Uninstantiate(&testState); in DRBG_SelfTest()
539 for(p = (BYTE *)&testState, i = 0; i < sizeof(DRBG_STATE); i++) in DRBG_SelfTest()
547 if(DRBG_Instantiate(&testState, 0, NULL)) in DRBG_SelfTest()