Home
last modified time | relevance | path

Searched refs:sessionKey (Results 1 – 25 of 58) sorted by relevance

123

/base/security/device_auth/services/group_auth/src/group_auth_manager/account_unrelated_group_auth/
Daccount_unrelated_group_auth.c46 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/
Dkey_agree_sdk.c290 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/
Daccount_related_group_auth.c52 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/
Dpake_v1_protocol_common.c91 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/
Dpake_common.c29 FreeAndCleanKey(&params->sessionKey); in CleanPakeSensitiveKeys()
/base/security/device_auth/services/protocol/src/iso_protocol/
Diso_protocol_common.c46 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(&params->sessionKey); in DestroyIsoBaseParams()
223 … res = params->loader->computeHkdf(pskBuf, &hkdfSaltBuf, &keyInfoBuf, &params->sessionKey, false); in IsoGenSessionKey()
226 FreeAndCleanKey(&params->sessionKey); in IsoGenSessionKey()
381 FreeAndCleanKey(&params->sessionKey); in IsoServerGenSessionKeyAndCalToken()
/base/security/device_auth/services/session_manager/inc/session/
Ddev_session_def.h46 Uint8Buff sessionKey; member
/base/security/device_auth/services/group_manager/inc/callback_manager/
Dcallback_manager.h30 void ProcessSessionKeyCallback(int64_t reqId, const uint8_t *sessionKey, uint32_t sessionKeyLen,
/base/security/device_auth/services/protocol/inc/iso_protocol/
Diso_protocol_common.h33 Uint8Buff sessionKey; member
/base/security/device_auth/frameworks/deviceauth_lite/unittest/
Ddeviceauth_test.cpp73 …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/
Dbase_protocol.h36 Uint8Buff sessionKey; member
/base/security/device_auth/test/fuzztest/device_auth_service/devauthservregcallback_fuzzer/
Ddevauthservregcallback_fuzzer.cpp27 …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/
Dpake_defs.h60 Uint8Buff sessionKey; member
/base/security/device_auth/test/fuzztest/group_manage/registercallback_fuzzer/
Dregistercallback_fuzzer.cpp23 … 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/
Dprocessauthdata_fuzzer.cpp23 … 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/
Dauthdevice_fuzzer.cpp23 … 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/
Ddevauthservprocessauthdata_fuzzer.cpp37 …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/
Dkey_agree_sdk.h102 KeyAgreeResult KeyAgreeGetResult(KeyAgreeSession *session, KeyAgreeBlob *sessionKey);
/base/security/device_auth/services/authenticators/src/account_related/auth/pake_v2_auth_task/
Dpake_v2_auth_client_task.c195 …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()
Dpake_v2_auth_server_task.c186 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/
Ddevauthservprocessbinddata_fuzzer.cpp37 …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/
Diso_auth_task_common.c391 … 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/
Ddevauthservcheckaccesstogroup_fuzzer.cpp49 …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/
Ddevauthservcreategroup_fuzzer.cpp49 …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/
Ddevauthservisdeviceingroup_fuzzer.cpp49 …static void OnSessionKeyReturned(int64_t requestId, const uint8_t *sessionKey, uint32_t sessionKey… in OnSessionKeyReturned() argument

123