Lines Matching refs:handleState
327 op->info.handleState = handle_state; in TEE_AllocateOperation()
361 if (op->info.handleState & TEE_HANDLE_FLAG_EXPECT_TWO_KEYS) in TEE_AllocateOperation()
368 if (op->info.handleState & TEE_HANDLE_FLAG_EXPECT_TWO_KEYS) { in TEE_AllocateOperation()
391 op->info.handleState |= TEE_HANDLE_FLAG_INITIALIZED; in TEE_AllocateOperation()
454 if (operationInfo->handleState & TEE_HANDLE_FLAG_EXPECT_TWO_KEYS) { in TEE_GetOperationInfo()
486 two_keys = op->info.handleState & TEE_HANDLE_FLAG_EXPECT_TWO_KEYS; in TEE_GetOperationInfoMultiple()
537 op_info->handleState = op->info.handleState; in TEE_GetOperationInfoMultiple()
572 op->info.handleState |= TEE_HANDLE_FLAG_INITIALIZED; in reset_operation_state()
574 op->info.handleState &= ~TEE_HANDLE_FLAG_INITIALIZED; in reset_operation_state()
583 if (!(operation->info.handleState & TEE_HANDLE_FLAG_KEY_SET)) in TEE_ResetOperation()
601 operation->info.handleState &= ~TEE_HANDLE_FLAG_KEY_SET; in set_operation_key()
614 if ((operation->info.handleState & TEE_HANDLE_FLAG_EXPECT_TWO_KEYS) != in set_operation_key()
640 operation->info.handleState &= ~TEE_HANDLE_FLAG_KEY_SET; in set_operation_key()
646 operation->info.handleState |= TEE_HANDLE_FLAG_KEY_SET; in set_operation_key()
666 operation->info.handleState & TEE_HANDLE_FLAG_INITIALIZED) in TEE_SetOperationKey()
701 operation->info.handleState &= ~TEE_HANDLE_FLAG_KEY_SET; in set_operation_key2()
718 if ((operation->info.handleState & TEE_HANDLE_FLAG_EXPECT_TWO_KEYS) == in set_operation_key2()
774 operation->info.handleState &= ~TEE_HANDLE_FLAG_KEY_SET; in set_operation_key2()
786 operation->info.handleState |= TEE_HANDLE_FLAG_KEY_SET; in set_operation_key2()
837 if (src_op->info.handleState & TEE_HANDLE_FLAG_KEY_SET) { in TEE_CopyOperation()
842 if ((src_op->info.handleState & in TEE_CopyOperation()
854 dst_op->info.handleState = src_op->info.handleState; in TEE_CopyOperation()
897 operation->info.handleState |= TEE_HANDLE_FLAG_INITIALIZED; in init_hash_operation()
1002 operation->info.handleState |= TEE_HANDLE_FLAG_EXTRACTING; in TEE_DigestExtract()
1022 operation->info.handleState |= TEE_HANDLE_FLAG_EXTRACTING; in TEE_DigestExtract()
1047 if (!(operation->info.handleState & TEE_HANDLE_FLAG_KEY_SET) || in TEE_CipherInit()
1069 operation->info.handleState |= TEE_HANDLE_FLAG_INITIALIZED; in TEE_CipherInit()
1200 if ((operation->info.handleState & TEE_HANDLE_FLAG_INITIALIZED) == 0) { in TEE_CipherUpdate()
1303 if ((operation->info.handleState & TEE_HANDLE_FLAG_INITIALIZED) == 0) { in TEE_CipherDoFinal()
1378 operation->info.handleState &= ~TEE_HANDLE_FLAG_INITIALIZED; in TEE_CipherDoFinal()
1417 if (!(operation->info.handleState & TEE_HANDLE_FLAG_KEY_SET) || in TEE_MACInit()
1446 if ((operation->info.handleState & TEE_HANDLE_FLAG_INITIALIZED) == 0) in TEE_MACUpdate()
1481 if ((operation->info.handleState & TEE_HANDLE_FLAG_INITIALIZED) == 0) { in TEE_MACComputeFinal()
1497 operation->info.handleState &= ~TEE_HANDLE_FLAG_INITIALIZED; in TEE_MACComputeFinal()
1536 if ((operation->info.handleState & TEE_HANDLE_FLAG_INITIALIZED) == 0) { in TEE_MACCompareFinal()
1624 operation->info.handleState |= TEE_HANDLE_FLAG_INITIALIZED; in TEE_AEInit()
1656 if ((operation->info.handleState & TEE_HANDLE_FLAG_INITIALIZED) == 0) in TEE_AEUpdateAAD()
1676 if ((operation->info.handleState & TEE_HANDLE_FLAG_INITIALIZED) == 0) in __GP11_TEE_AEUpdateAAD()
1753 if ((operation->info.handleState & TEE_HANDLE_FLAG_INITIALIZED) == 0) { in TEE_AEUpdate()
1788 if ((operation->info.handleState & TEE_HANDLE_FLAG_INITIALIZED) == 0) { in __GP11_TEE_AEUpdate()
1834 if ((operation->info.handleState & TEE_HANDLE_FLAG_INITIALIZED) == 0) { in TEE_AEEncryptFinal()
1891 operation->info.handleState &= ~TEE_HANDLE_FLAG_INITIALIZED; in TEE_AEEncryptFinal()
1945 if ((operation->info.handleState & TEE_HANDLE_FLAG_INITIALIZED) == 0) { in TEE_AEDecryptFinal()
1992 operation->info.handleState &= ~TEE_HANDLE_FLAG_INITIALIZED; in TEE_AEDecryptFinal()
2343 if ((operation->info.handleState & TEE_HANDLE_FLAG_KEY_SET) == 0) in TEE_DeriveKey()
2385 if ((operation->info.handleState & TEE_HANDLE_FLAG_KEY_SET) == 0) in __GP11_TEE_DeriveKey()