Lines Matching refs:alg
25 TPM_ALG_ID alg; in CryptRunSelfTests() local
28 for(alg = TPM_ALG_FIRST; alg <= TPM_ALG_LAST; alg++) in CryptRunSelfTests()
30 if(TEST_BIT(alg, *toTest)) in CryptRunSelfTests()
32 TPM_RC result = CryptTestAlgorithm(alg, toTest); in CryptRunSelfTests()
96 TPM_ALG_ID alg; in CryptIncrementalSelfTest() local
104 TPM_ALG_ID alg = toTest->algorithms[i]; in CryptIncrementalSelfTest() local
106 if((alg > TPM_ALG_LAST) || !TEST_BIT(alg, g_implementedAlgorithms)) in CryptIncrementalSelfTest()
108 SET_BIT(alg, toTestVector); in CryptIncrementalSelfTest()
116 for(alg = TPM_ALG_FIRST; in CryptIncrementalSelfTest()
117 toDoList->count < MAX_ALG_LIST_SIZE && alg <= TPM_ALG_LAST; in CryptIncrementalSelfTest()
118 alg++) in CryptIncrementalSelfTest()
120 if(TEST_BIT(alg, g_toTest)) in CryptIncrementalSelfTest()
121 toDoList->algorithms[toDoList->count++] = alg; in CryptIncrementalSelfTest()
166 TPM_ALG_ID alg, in CryptTestAlgorithm() argument
175 TPM_RC TestAlgorithm(TPM_ALG_ID alg, ALGORITHM_VECTOR *toTest); in CryptTestAlgorithm()
176 result = TestAlgorithm(alg, toTest); in CryptTestAlgorithm()
183 if(alg != TPM_ALG_ERROR) in CryptTestAlgorithm()
185 CLEAR_BIT(alg, g_toTest); in CryptTestAlgorithm()
187 CLEAR_BIT(alg, *toTest); in CryptTestAlgorithm()