/base/security/device_auth/services/key_agree_sdk/src/ |
H A D | key_agree_sdk.c | 291 KeyAgreeResult KeyAgreeGetResult(KeyAgreeSession *session, KeyAgreeBlob *sessionKey) in KeyAgreeGetResult() argument 294 if ((session == NULL) || (sessionKey == NULL)) { in KeyAgreeGetResult() 295 LOGE("Invalid session or sessionKey!"); in KeyAgreeGetResult() 298 if ((sessionKey->length < MIN_SESSIONKEY_LENGTH) || (sessionKey->length > MAX_SESSIONKEY_LENGTH)) { in KeyAgreeGetResult() 299 LOGE("Invalid length of sessionKey!"); in KeyAgreeGetResult() 313 LOGE("Keg agree is not finish, sessionKey is not generate!"); in KeyAgreeGetResult() 316 if (memcpy_s(sessionKey->data, spekeSession->baseParam.sessionKey.length + 1, in KeyAgreeGetResult() 317 spekeSession->baseParam.sessionKey in KeyAgreeGetResult() [all...] |
/base/security/device_auth/services/legacy/group_auth/src/group_auth_manager/account_unrelated_group_auth/ |
H A D | account_unrelated_group_auth.c | 48 LOGE("Failed to get sessionKey!"); in ReturnSessionKey() 52 uint8_t *sessionKey = (uint8_t *)HcMalloc(keyLen, 0); in ReturnSessionKey() local 53 if (sessionKey == NULL) { in ReturnSessionKey() 54 LOGE("Failed to allocate memory for sessionKey!"); in ReturnSessionKey() 60 if (GetByteFromJson(out, FIELD_SESSION_KEY, sessionKey, keyLen) != HC_SUCCESS) { in ReturnSessionKey() 61 LOGE("Failed to get sessionKey!"); in ReturnSessionKey() 72 callback->onSessionKeyReturned(requestId, sessionKey, keyLen); in ReturnSessionKey() 75 (void)memset_s(sessionKey, keyLen, 0, keyLen); in ReturnSessionKey() 76 HcFree(sessionKey); in ReturnSessionKey() 77 sessionKey in ReturnSessionKey() 156 uint8_t *sessionKey = (uint8_t *)HcMalloc(keyLen, 0); AddSessionKeyToSelfData() local [all...] |
/base/security/device_auth/services/protocol/src/pake_protocol/pake_v1_protocol/ |
H A 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() 94 LOGE("Malloc for sessionKey failed."); in AllocDefaultParams() 233 unionKey.length = params->sessionKey.length + params->hmacKey.length; in DeriveKeyFromSharedSecret() 253 if (memcpy_s(params->sessionKey.val, params->sessionKey.length, unionKey.val, params->sessionKey.length) != EOK) { in DeriveKeyFromSharedSecret() 254 LOGE("Memcpy for sessionKey faile in DeriveKeyFromSharedSecret() [all...] |
/base/security/device_auth/services/protocol/src/pake_protocol/ |
H A D | pake_common.c | 29 FreeAndCleanKey(¶ms->sessionKey); in CleanPakeSensitiveKeys()
|
/base/security/device_auth/services/legacy/group_auth/src/group_auth_manager/account_related_group_auth/ |
H A D | account_related_group_auth.c | 60 LOGE("Failed to get sessionKey!"); in ReturnSessionKey() 64 uint8_t *sessionKey = (uint8_t *)HcMalloc(keyLen, 0); in ReturnSessionKey() local 65 if (sessionKey == NULL) { in ReturnSessionKey() 66 LOGE("Failed to allocate memory for sessionKey!"); in ReturnSessionKey() 72 if (GetByteFromJson(out, FIELD_SESSION_KEY, sessionKey, keyLen) != HC_SUCCESS) { in ReturnSessionKey() 73 LOGE("Failed to get sessionKey!"); in ReturnSessionKey() 84 callback->onSessionKeyReturned(requestId, sessionKey, keyLen); in ReturnSessionKey() 87 (void)memset_s(sessionKey, keyLen, 0, keyLen); in ReturnSessionKey() 88 HcFree(sessionKey); in ReturnSessionKey() 89 sessionKey in ReturnSessionKey() 96 uint8_t *sessionKey = (uint8_t *)HcMalloc(keyLen, 0); GetSessionKeyForAccount() local [all...] |
/base/security/device_auth/services/protocol/src/iso_protocol/ |
H A D | iso_protocol_common.c | 51 params->sessionKey.length = ISO_SESSION_KEY_LEN; in InitIsoBaseParams() 52 params->sessionKey.val = (uint8_t *)HcMalloc(params->sessionKey.length, 0); in InitIsoBaseParams() 53 if (params->sessionKey.val == NULL) { in InitIsoBaseParams() 54 LOGE("Malloc sessionKey failed."); in InitIsoBaseParams() 77 FreeAndCleanKey(¶ms->sessionKey); in DestroyIsoBaseParams() 231 res = params->loader->computeHkdf(&keyParams, &hkdfSaltBuf, &keyInfoBuf, ¶ms->sessionKey); in IsoGenSessionKey() 233 LOGE("ComputeHkdf for sessionKey failed, res: %x.", res); in IsoGenSessionKey() 234 FreeAndCleanKey(¶ms->sessionKey); in IsoGenSessionKey() 391 FreeAndCleanKey(¶ms->sessionKey); in IsoServerGenSessionKeyAndCalToken() [all...] |
/base/security/device_auth/services/legacy/group_manager/inc/callback_manager/ |
H A D | callback_manager.h | 30 void ProcessSessionKeyCallback(int64_t reqId, const uint8_t *sessionKey, uint32_t sessionKeyLen,
|
/base/security/device_auth/services/session_manager/inc/session/ |
H A D | dev_session_def.h | 46 Uint8Buff sessionKey; member
|
/base/security/device_auth/services/protocol/inc/pake_protocol/ |
H A D | pake_defs.h | 60 Uint8Buff sessionKey; member
|
/base/security/device_auth/services/protocol/inc/iso_protocol/ |
H A D | iso_protocol_common.h | 34 Uint8Buff sessionKey; member
|
/base/security/device_auth/services/session_manager/inc/session/v2/auth_sub_session/protocol_lib/ |
H A D | base_protocol.h | 36 Uint8Buff sessionKey; member
|
/base/security/device_auth/test/fuzztest/device_auth_service/devauthservregcallback_fuzzer/ |
H A D | devauthservregcallback_fuzzer.cpp | 27 static 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/ |
H A 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_manage/registercallback_fuzzer/ |
H A D | registercallback_fuzzer.cpp | 23 void OnSessionKeyReturned(int64_t requestId, const uint8_t *sessionKey, uint32_t sessionKeyLen) {} in OnSessionKeyReturned() argument
|
/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/iso_task/lite_exchange_task/ |
H A D | iso_client_bind_exchange_task.c | 57 { params->baseParams.sessionKey.val, params->baseParams.sessionKey.length, false }, in DecAndImportInner() 193 { params->baseParams.sessionKey.val, params->baseParams.sessionKey.length, false }, in ClientBindAesEncrypt()
|
H A D | iso_server_bind_exchange_task.c | 103 { params->baseParams.sessionKey.val, params->baseParams.sessionKey.length, false }, in DecryptChallenge() 166 { params->baseParams.sessionKey.val, params->baseParams.sessionKey.length, false }, in GenAndEncAuthCode()
|
/base/security/device_auth/frameworks/deviceauth_lite/test/fuzztest/dellocalauthinfo_fuzzer/ |
H A D | dellocalauthinfo_fuzzer.cpp | 39 static void SetSessionKeyFunc(const struct session_identity *identity, const struct hc_session_key *sessionKey) in SetSessionKeyFunc() argument
|
/base/security/device_auth/frameworks/deviceauth_lite/test/fuzztest/destroy_fuzzer/ |
H A D | destroy_fuzzer.cpp | 39 static void SetSessionKeyFunc(const struct session_identity *identity, const struct hc_session_key *sessionKey) in SetSessionKeyFunc() argument
|
/base/security/device_auth/frameworks/deviceauth_lite/test/fuzztest/getinstance_fuzzer/ |
H A D | getinstance_fuzzer.cpp | 41 static void SetSessionKeyFunc(const struct session_identity *identity, const struct hc_session_key *sessionKey) in SetSessionKeyFunc() argument
|
/base/security/device_auth/frameworks/deviceauth_lite/test/fuzztest/istrustpeer_fuzzer/ |
H A D | istrustpeer_fuzzer.cpp | 39 static void SetSessionKeyFunc(const struct session_identity *identity, const struct hc_session_key *sessionKey) in SetSessionKeyFunc() argument
|
/base/security/device_auth/services/key_agree_sdk/inc/ |
H A D | key_agree_sdk.h | 103 KeyAgreeResult KeyAgreeGetResult(KeyAgreeSession *session, KeyAgreeBlob *sessionKey);
|
/base/security/device_auth/test/fuzztest/device_auth_service/devauthservprocessauthdata_fuzzer/ |
H A D | devauthservprocessauthdata_fuzzer.cpp | 37 static void OnSessionKeyReturned(int64_t requestId, const uint8_t *sessionKey, uint32_t sessionKeyLen) {} in OnSessionKeyReturned() argument
|
/base/security/device_auth/test/fuzztest/device_auth_service/devauthservprocessbinddata_fuzzer/ |
H A D | devauthservprocessbinddata_fuzzer.cpp | 37 static 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/ |
H A D | authdevice_fuzzer.cpp | 23 void OnSessionKeyReturned(int64_t requestId, const uint8_t *sessionKey, uint32_t sessionKeyLen) {} in OnSessionKeyReturned() argument
|
/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/pake_task/ |
H A D | pake_task_common.c | 69 { params->baseParams.sessionKey.val, params->baseParams.sessionKey.length, false }, in GenerateOutputKey() 79 FreeAndCleanKey(&(params->baseParams.sessionKey)); in GenerateOutputKey()
|