Searched refs:pSession (Results 1 – 6 of 6) sorted by relevance
/hardware/ti/omap4xxx/security/tf_crypto_sst/ |
D | pkcs11_session.c | 56 PPKCS11_PRIMARY_SESSION_CONTEXT pSession = NULL; in C_OpenSession() local 88 pSession = (PPKCS11_PRIMARY_SESSION_CONTEXT)malloc(sizeof(PKCS11_PRIMARY_SESSION_CONTEXT)); in C_OpenSession() 89 if (pSession == NULL) in C_OpenSession() 94 pSession->sHeader.nMagicWord = PKCS11_SESSION_MAGIC; in C_OpenSession() 95 pSession->sHeader.nSessionTag = PKCS11_PRIMARY_SESSION_TAG; in C_OpenSession() 96 memset(&pSession->sSession, 0, sizeof(TEEC_Session)); in C_OpenSession() 97 pSession->sSecondarySessionTable.pRoot = NULL_PTR; in C_OpenSession() 101 memset(&pSession->sSecondarySessionTableMutex, 0, in C_OpenSession() 102 sizeof(pSession->sSecondarySessionTableMutex)); in C_OpenSession() 103 libMutexInit(&pSession->sSecondarySessionTableMutex); in C_OpenSession() [all …]
|
D | mtc.c | 82 MTC_SESSION_CONTEXT* pSession = NULL; in static_getMonotonicCounter() local 90 pSession = (MTC_SESSION_CONTEXT *)hCounter; in static_getMonotonicCounter() 91 if ((pSession == NULL) || (pSession->nMagicWord != MTC_SESSION_MAGIC)) in static_getMonotonicCounter() 106 sOperation.params[0].value.a = pSession->nCounterIdentifier; in static_getMonotonicCounter() 108 nError = TEEC_InvokeCommand(&pSession->sSession, in static_getMonotonicCounter() 109 (pSession->hCryptoSession << 16 ) | in static_getMonotonicCounter() 163 MTC_SESSION_CONTEXT* pSession = NULL; in SMonotonicCounterOpen() local 183 pSession = (MTC_SESSION_CONTEXT*)malloc(sizeof(MTC_SESSION_CONTEXT)); in SMonotonicCounterOpen() 184 if (pSession == NULL) in SMonotonicCounterOpen() 188 memset(pSession, 0, sizeof(MTC_SESSION_CONTEXT)); in SMonotonicCounterOpen() [all …]
|
D | sst_stub.c | 257 TEEC_Session* pSession; in SSTOpen() local 276 pSession = static_SSTGetSession(); in SSTOpen() 277 if (pSession == NULL) in SSTOpen() 287 nError = TEEC_InvokeCommand(pSession, in SSTOpen() 302 TEEC_Session* pSession; in SSTCloseHandle() local 312 pSession = static_SSTGetSession(); in SSTCloseHandle() 313 if (pSession == NULL) in SSTCloseHandle() 320 nError = TEEC_InvokeCommand(pSession, in SSTCloseHandle() 333 TEEC_Session* pSession; in SSTWrite() local 348 pSession = static_SSTGetSession(); in SSTWrite() [all …]
|
D | pkcs11_global.c | 129 PPKCS11_PRIMARY_SESSION_CONTEXT pSession = NULL; in ckInternalSessionIsOpenedEx() local 137 pSession = (PPKCS11_PRIMARY_SESSION_CONTEXT)pHeader; in ckInternalSessionIsOpenedEx() 142 return (pSession->hCryptoSession != CK_INVALID_HANDLE); in ckInternalSessionIsOpenedEx() 151 pSession = pSecSession->pPrimarySession; in ckInternalSessionIsOpenedEx() 152 if ( (pSession == NULL) || in ckInternalSessionIsOpenedEx() 153 (pSession->sHeader.nMagicWord != PKCS11_SESSION_MAGIC) || in ckInternalSessionIsOpenedEx() 154 (pSession->sHeader.nSessionTag != PKCS11_PRIMARY_SESSION_TAG)) in ckInternalSessionIsOpenedEx() 159 if (pSession->hCryptoSession == CK_INVALID_HANDLE) in ckInternalSessionIsOpenedEx()
|
D | pkcs11_object.c | 76 PPKCS11_PRIMARY_SESSION_CONTEXT pSession = in static_checkPreConditionsAndUpdateHandles() local 79 *phSession = pSession->hCryptoSession; in static_checkPreConditionsAndUpdateHandles() 80 *phCommandIDAndSession = (pSession->hCryptoSession<<16)|(*phCommandIDAndSession&0x00007FFF); in static_checkPreConditionsAndUpdateHandles() 81 *ppSession = pSession; in static_checkPreConditionsAndUpdateHandles() 266 PPKCS11_PRIMARY_SESSION_CONTEXT pSession; in static_C_CallInit() local 268 …ErrorCode = static_checkPreConditionsAndUpdateHandles(&hSession, &nCommandIDAndSession, &pSession); in static_C_CallInit() 300 teeErr = TEEC_InvokeCommand( &pSession->sSession, in static_C_CallInit() 336 PPKCS11_PRIMARY_SESSION_CONTEXT pSession; in static_C_CallForSingle() local 338 …ErrorCode = static_checkPreConditionsAndUpdateHandles(&hSession, &nCommandIDAndSession, &pSession); in static_C_CallForSingle() 379 teeErr = TEEC_InvokeCommand(&pSession->sSession, in static_C_CallForSingle() [all …]
|
/hardware/ti/omap4xxx/security/tf_daemon/ |
D | delegation_client.c | 875 static int runSession(TEEC_Context* pContext, TEEC_Session* pSession, TEEC_Operation* pOperation) in runSession() argument 903 nTeeError = TEEC_InvokeCommand(pSession, in runSession() 1107 static int createSession(TEEC_Context* pContext, TEEC_Session* pSession, TEEC_Operation* pOperation) in createSession() argument 1116 pSession, /* OUT session */ in createSession()
|