Lines Matching refs:alg
60 TPM_ALG_ID alg; in CryptRunSelfTests() local
64 for(alg = TPM_ALG_FIRST; alg <= TPM_ALG_LAST; alg++) in CryptRunSelfTests()
66 if(TEST_BIT(alg, *toTest)) in CryptRunSelfTests()
68 TPM_RC result = CryptTestAlgorithm(alg, toTest); in CryptRunSelfTests()
130 TPM_ALG_ID alg; in CryptIncrementalSelfTest() local
139 alg = toTest->algorithms[i]; in CryptIncrementalSelfTest()
142 if((alg > TPM_ALG_LAST) || !TEST_BIT(alg, g_implementedAlgorithms)) in CryptIncrementalSelfTest()
144 SET_BIT(alg, toTestVector); in CryptIncrementalSelfTest()
153 for(alg = TPM_ALG_FIRST; in CryptIncrementalSelfTest()
154 toDoList->count < MAX_ALG_LIST_SIZE && alg <= TPM_ALG_LAST; in CryptIncrementalSelfTest()
155 alg++) in CryptIncrementalSelfTest()
157 if(TEST_BIT(alg, g_toTest)) in CryptIncrementalSelfTest()
158 toDoList->algorithms[toDoList->count++] = alg; in CryptIncrementalSelfTest()
200 TPM_ALG_ID alg, in CryptTestAlgorithm() argument
206 result = TestAlgorithm(alg, toTest); in CryptTestAlgorithm()
213 if(alg != TPM_ALG_ERROR) in CryptTestAlgorithm()
215 CLEAR_BIT(alg, g_toTest); in CryptTestAlgorithm()
217 CLEAR_BIT(alg, *toTest); in CryptTestAlgorithm()