Lines Matching refs:drbgState

404     DRBG_STATE          *drbgState,     // IN:OUT state to update  in DRBG_Update()  argument
410 BYTE *temp = (BYTE *)&drbgState->seed; in DRBG_Update()
411 DRBG_KEY *key = pDRBG_KEY(&drbgState->seed); in DRBG_Update()
412 DRBG_IV *iv = pDRBG_IV(&drbgState->seed); in DRBG_Update()
415 pAssert(drbgState->magic == DRBG_MAGIC); in DRBG_Update()
431 drbgState->lastValue); in DRBG_Update()
453 DRBG_STATE *drbgState, // IN: the state to update in DRBG_Reseed() argument
460 pAssert((drbgState != NULL) && (drbgState->magic == DRBG_MAGIC)); in DRBG_Reseed()
476 DRBG_Update(drbgState, NULL, providedEntropy); in DRBG_Reseed()
478 drbgState->reseedCounter = 1; in DRBG_Reseed()
653 DRBG_STATE *drbgState, // IN:OUT state to update in DRBG_AdditionalData() argument
658 if(drbgState->magic == DRBG_MAGIC) in DRBG_AdditionalData()
661 DRBG_Reseed(drbgState, &dfResult, NULL); in DRBG_AdditionalData()
675 DRBG_STATE *drbgState, // IN/OUT: buffer to hold the state in DRBG_InstantiateSeeded() argument
691 memset(drbgState, 0, sizeof(DRBG_STATE)); in DRBG_InstantiateSeeded()
692 drbgState->magic = DRBG_MAGIC; in DRBG_InstantiateSeeded()
715 DRBG_Reseed(((DRBG_STATE *)drbgState), DfEnd(&dfState), NULL); in DRBG_InstantiateSeeded()
734 if(go.drbgState.magic == DRBG_MAGIC) in CryptRandStartup()
735 return DRBG_Reseed(&go.drbgState, NULL, NULL); in CryptRandStartup()
737 return DRBG_Instantiate(&go.drbgState, 0, NULL); in CryptRandStartup()
851 DRBG_STATE *drbgState = (DRBG_STATE *)state; in DRBG_Generate() local
853 DRBG_SEED *seed = &drbgState->seed; in DRBG_Generate()
855 if(drbgState->reseedCounter >= CTR_DRBG_MAX_REQUESTS_PER_RESEED) in DRBG_Generate()
857 if(drbgState == &drbgDefault) in DRBG_Generate()
859 DRBG_Reseed(drbgState, NULL, NULL); in DRBG_Generate()
886 drbgState->lastValue); in DRBG_Generate()
888 DRBG_Update(drbgState, &keySchedule, NULL); in DRBG_Generate()
891 drbgState->reseedCounter += 1; in DRBG_Generate()
912 DRBG_STATE *drbgState, // OUT: the instantiated value in DRBG_Instantiate() argument
931 memset(drbgState, 0, sizeof(DRBG_STATE)); in DRBG_Instantiate()
932 drbgState->magic = DRBG_MAGIC; in DRBG_Instantiate()
937 DRBG_Reseed(drbgState, &seed, DfBuffer(&dfResult, pSize, personalization)); in DRBG_Instantiate()
949 DRBG_STATE *drbgState // IN/OUT: working state to erase in DRBG_Uninstantiate() argument
952 if((drbgState == NULL) || (drbgState->magic != DRBG_MAGIC)) in DRBG_Uninstantiate()
954 memset(drbgState, 0, sizeof(DRBG_STATE)); in DRBG_Uninstantiate()