/base/security/device_auth/services/group_auth/src/group_auth_manager/account_unrelated_group_auth/ |
D | account_unrelated_group_auth.c | 46 uint8_t *sessionKey = (uint8_t *)HcMalloc(keyLen, 0); in ReturnSessionKey() local 47 if (sessionKey == NULL) { in ReturnSessionKey() 54 if (GetByteFromJson(out, FIELD_SESSION_KEY, sessionKey, keyLen) != HC_SUCCESS) { in ReturnSessionKey() 65 callback->onSessionKeyReturned(requestId, sessionKey, keyLen); in ReturnSessionKey() 68 (void)memset_s(sessionKey, keyLen, 0, keyLen); in ReturnSessionKey() 69 HcFree(sessionKey); in ReturnSessionKey() 70 sessionKey = NULL; in ReturnSessionKey() 149 uint8_t *sessionKey = (uint8_t *)HcMalloc(keyLen, 0); in AddSessionKeyToSelfData() local 150 if (sessionKey == NULL) { in AddSessionKeyToSelfData() 156 if (GetByteFromJson(sendToSelf, FIELD_SESSION_KEY, sessionKey, keyLen) != HC_SUCCESS) { in AddSessionKeyToSelfData() [all …]
|
/base/security/device_auth/services/key_agree_sdk/src/ |
D | key_agree_sdk.c | 290 KeyAgreeResult KeyAgreeGetResult(KeyAgreeSession *session, KeyAgreeBlob *sessionKey) in KeyAgreeGetResult() argument 293 if ((session == NULL) || (sessionKey == NULL)) { in KeyAgreeGetResult() 297 …if ((sessionKey->length < MIN_SESSIONKEY_LENGTH) || (sessionKey->length > MAX_SESSIONKEY_LENGTH)) { in KeyAgreeGetResult() 315 if (memcpy_s(sessionKey->data, spekeSession->baseParam.sessionKey.length + 1, in KeyAgreeGetResult() 316 … spekeSession->baseParam.sessionKey.val, spekeSession->baseParam.sessionKey.length + 1) != EOK) { in KeyAgreeGetResult() 320 sessionKey->length = spekeSession->baseParam.sessionKey.length; in KeyAgreeGetResult()
|
/base/security/device_auth/services/group_auth/src/group_auth_manager/account_related_group_auth/ |
D | account_related_group_auth.c | 52 uint8_t *sessionKey = (uint8_t *)HcMalloc(keyLen, 0); in ReturnSessionKey() local 53 if (sessionKey == NULL) { in ReturnSessionKey() 60 if (GetByteFromJson(out, FIELD_SESSION_KEY, sessionKey, keyLen) != HC_SUCCESS) { in ReturnSessionKey() 71 callback->onSessionKeyReturned(requestId, sessionKey, keyLen); in ReturnSessionKey() 74 (void)memset_s(sessionKey, keyLen, 0, keyLen); in ReturnSessionKey() 75 HcFree(sessionKey); in ReturnSessionKey() 76 sessionKey = NULL; in ReturnSessionKey() 83 uint8_t *sessionKey = (uint8_t *)HcMalloc(keyLen, 0); in GetSessionKeyForAccount() local 84 if (sessionKey == NULL) { in GetSessionKeyForAccount() 90 if (GetByteFromJson(sendToSelf, FIELD_SESSION_KEY, sessionKey, keyLen) != HC_SUCCESS) { in GetSessionKeyForAccount() [all …]
|
/base/security/device_auth/services/protocol/src/pake_protocol/pake_v1_protocol/ |
D | pake_v1_protocol_common.c | 91 params->sessionKey.length = PAKE_SESSION_KEY_LEN; in AllocDefaultParams() 92 params->sessionKey.val = (uint8_t *)HcMalloc(params->sessionKey.length, 0); in AllocDefaultParams() 93 if (params->sessionKey.val == NULL) { in AllocDefaultParams() 227 unionKey.length = params->sessionKey.length + params->hmacKey.length; in DeriveKeyFromSharedSecret() 241 …if (memcpy_s(params->sessionKey.val, params->sessionKey.length, unionKey.val, params->sessionKey.l… in DeriveKeyFromSharedSecret() 247 unionKey.val + params->sessionKey.length, params->hmacKey.length) != EOK) { in DeriveKeyFromSharedSecret()
|
/base/security/device_auth/services/protocol/src/pake_protocol/ |
D | pake_common.c | 29 FreeAndCleanKey(¶ms->sessionKey); in CleanPakeSensitiveKeys()
|
/base/security/device_auth/services/protocol/src/iso_protocol/ |
D | iso_protocol_common.c | 46 params->sessionKey.length = ISO_SESSION_KEY_LEN; in InitIsoBaseParams() 47 params->sessionKey.val = (uint8_t *)HcMalloc(params->sessionKey.length, 0); in InitIsoBaseParams() 48 if (params->sessionKey.val == NULL) { in InitIsoBaseParams() 72 FreeAndCleanKey(¶ms->sessionKey); in DestroyIsoBaseParams() 223 … res = params->loader->computeHkdf(pskBuf, &hkdfSaltBuf, &keyInfoBuf, ¶ms->sessionKey, false); in IsoGenSessionKey() 226 FreeAndCleanKey(¶ms->sessionKey); in IsoGenSessionKey() 381 FreeAndCleanKey(¶ms->sessionKey); in IsoServerGenSessionKeyAndCalToken()
|
/base/security/device_auth/services/session_manager/inc/session/ |
D | dev_session_def.h | 46 Uint8Buff sessionKey; member
|
/base/security/device_auth/services/group_manager/inc/callback_manager/ |
D | callback_manager.h | 30 void ProcessSessionKeyCallback(int64_t reqId, const uint8_t *sessionKey, uint32_t sessionKeyLen,
|
/base/security/device_auth/services/protocol/inc/iso_protocol/ |
D | iso_protocol_common.h | 33 Uint8Buff sessionKey; member
|
/base/security/device_auth/frameworks/deviceauth_lite/unittest/ |
D | deviceauth_test.cpp | 73 …oid SetSessionKey(const struct session_identity *identity, const struct hc_session_key *sessionKey) in SetSessionKey() argument 77 LOG("sessionKey[%s]", sessionKey->session_key); in SetSessionKey()
|
/base/security/device_auth/services/session_manager/inc/session/v2/auth_sub_session/protocol_lib/ |
D | base_protocol.h | 36 Uint8Buff sessionKey; member
|
/base/security/device_auth/test/fuzztest/device_auth_service/devauthservregcallback_fuzzer/ |
D | devauthservregcallback_fuzzer.cpp | 27 …static void OnSessionKeyReturned(int64_t requestId, const uint8_t *sessionKey, uint32_t sessionKey… in OnSessionKeyReturned() argument
|
/base/security/device_auth/services/protocol/inc/pake_protocol/ |
D | pake_defs.h | 60 Uint8Buff sessionKey; member
|
/base/security/device_auth/test/fuzztest/group_manage/registercallback_fuzzer/ |
D | registercallback_fuzzer.cpp | 23 … void OnSessionKeyReturned(int64_t requestId, const uint8_t *sessionKey, uint32_t sessionKeyLen) {} in OnSessionKeyReturned() argument
|
/base/security/device_auth/test/fuzztest/group_auth/processauthdata_fuzzer/ |
D | processauthdata_fuzzer.cpp | 23 … void OnSessionKeyReturned(int64_t requestId, const uint8_t *sessionKey, uint32_t sessionKeyLen) {} in OnSessionKeyReturned() argument
|
/base/security/device_auth/test/fuzztest/group_auth/authdevice_fuzzer/ |
D | authdevice_fuzzer.cpp | 23 … void OnSessionKeyReturned(int64_t requestId, const uint8_t *sessionKey, uint32_t sessionKeyLen) {} in OnSessionKeyReturned() argument
|
/base/security/device_auth/test/fuzztest/device_auth_service/devauthservprocessauthdata_fuzzer/ |
D | devauthservprocessauthdata_fuzzer.cpp | 37 …static void OnSessionKeyReturned(int64_t requestId, const uint8_t *sessionKey, uint32_t sessionKey… in OnSessionKeyReturned() argument
|
/base/security/device_auth/services/key_agree_sdk/inc/ |
D | key_agree_sdk.h | 102 KeyAgreeResult KeyAgreeGetResult(KeyAgreeSession *session, KeyAgreeBlob *sessionKey);
|
/base/security/device_auth/services/authenticators/src/account_related/auth/pake_v2_auth_task/ |
D | pake_v2_auth_client_task.c | 195 …FIELD_SESSION_KEY, task->params.pakeParams.sessionKey.val, task->params.pakeParams.sessionKey.leng… in SendFinalToOut() 202 FreeAndCleanKey(&task->params.pakeParams.sessionKey); in SendFinalToOut() 205 FreeAndCleanKey(&task->params.pakeParams.sessionKey); in SendFinalToOut()
|
D | pake_v2_auth_server_task.c | 186 task->params.pakeParams.sessionKey.val, task->params.pakeParams.sessionKey.length)); in SendFinalToOut() 202 FreeAndCleanKey(&task->params.pakeParams.sessionKey); in SendFinalToOut() 209 FreeAndCleanKey(&task->params.pakeParams.sessionKey); in SendFinalToOut()
|
/base/security/device_auth/test/fuzztest/device_auth_service/devauthservprocessbinddata_fuzzer/ |
D | devauthservprocessbinddata_fuzzer.cpp | 37 …static void OnSessionKeyReturned(int64_t requestId, const uint8_t *sessionKey, uint32_t sessionKey… in OnSessionKeyReturned() argument
|
/base/security/device_auth/services/authenticators/src/account_related/auth/iso_auth_task/ |
D | iso_auth_task_common.c | 391 … params->isoBaseParams.sessionKey.val, params->isoBaseParams.sessionKey.length) != CLIB_SUCCESS) { in AuthIsoSendFinalToOut() 416 FreeAndCleanKey(&(params->isoBaseParams.sessionKey)); in AuthIsoSendFinalToOut() 420 FreeAndCleanKey(&(params->isoBaseParams.sessionKey)); in AuthIsoSendFinalToOut()
|
/base/security/device_auth/test/fuzztest/device_auth_service/devauthservcheckaccesstogroup_fuzzer/ |
D | devauthservcheckaccesstogroup_fuzzer.cpp | 49 …static void OnSessionKeyReturned(int64_t requestId, const uint8_t *sessionKey, uint32_t sessionKey… in OnSessionKeyReturned() argument
|
/base/security/device_auth/test/fuzztest/device_auth_service/devauthservcreategroup_fuzzer/ |
D | devauthservcreategroup_fuzzer.cpp | 49 …static void OnSessionKeyReturned(int64_t requestId, const uint8_t *sessionKey, uint32_t sessionKey… in OnSessionKeyReturned() argument
|
/base/security/device_auth/test/fuzztest/device_auth_service/devauthservisdeviceingroup_fuzzer/ |
D | devauthservisdeviceingroup_fuzzer.cpp | 49 …static void OnSessionKeyReturned(int64_t requestId, const uint8_t *sessionKey, uint32_t sessionKey… in OnSessionKeyReturned() argument
|