Home
last modified time | relevance | path

Searched refs:baseParam (Results 1 – 10 of 10) sorted by relevance

/base/security/huks/test/unittest/huks_standard_test/module_test/framework_test/common_test/src/
Dhks_param_test.cpp67 struct HksParam baseParam = { .tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_RSA }; variable
69 int32_t ret = HksCheckParamMatch(&baseParam, &otherParam);
81 struct HksParam baseParam = { .tag = HKS_TAG_KEY_ACCESS_TIME, .uint64Param = (uint64_t)1 }; variable
83 int32_t ret = HksCheckParamMatch(&baseParam, &otherParam);
95 struct HksParam baseParam = { .tag = HKS_TAG_IS_APPEND_UPDATE_DATA, .boolParam = true }; variable
97 int32_t ret = HksCheckParamMatch(&baseParam, &otherParam);
111 struct HksParam baseParam = { .tag = HKS_TAG_USER_AUTH_SECURE_UID, .blob = baseBlob}; variable
115 int32_t ret = HksCheckParamMatch(&baseParam, &otherParam);
129 struct HksParam baseParam = { .tag = HKS_TAG_USER_AUTH_SECURE_UID, .blob = baseBlob}; variable
133 int32_t ret = HksCheckParamMatch(&baseParam, &otherParam);
[all …]
/base/security/device_auth/services/key_agree_sdk/src/
Dkey_agree_session.c378 res = InitSingleParam(&(spekeSession->baseParam.extraData), versionStrLength); in FillExtraData()
383 … res = memcpy_s(spekeSession->baseParam.extraData.val, spekeSession->baseParam.extraData.length, in FillExtraData()
387 HcFree(spekeSession->baseParam.extraData.val); in FillExtraData()
388 spekeSession->baseParam.extraData.val = NULL; in FillExtraData()
404 … int32_t res = InitSingleParam(&(spekeSession->baseParam.psk), spekeSession->sharedSecret.length); in FillPskAndDeviceId()
409 if (memcpy_s(spekeSession->baseParam.psk.val, spekeSession->baseParam.psk.length, in FillPskAndDeviceId()
412 FreeAndCleanKey(&spekeSession->baseParam.psk); in FillPskAndDeviceId()
416 res = InitSingleParam(&(spekeSession->baseParam.idSelf), spekeSession->deviceId.length); in FillPskAndDeviceId()
419 FreeAndCleanKey(&spekeSession->baseParam.psk); in FillPskAndDeviceId()
422 if (memcpy_s(spekeSession->baseParam.idSelf.val, spekeSession->baseParam.idSelf.length, in FillPskAndDeviceId()
[all …]
Dkey_agree_sdk.c315 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/huks/frameworks/huks_standard/main/common/src/
Dhks_param.c398 HKS_API_EXPORT int32_t HksCheckParamMatch(const struct HksParam *baseParam, const struct HksParam *… in HksCheckParamMatch() argument
400 if (baseParam == NULL || param == NULL) { in HksCheckParamMatch()
404 if (baseParam->tag != param->tag) { in HksCheckParamMatch()
409 switch (GetTagType((enum HksTag)(baseParam->tag))) { in HksCheckParamMatch()
411 … return (baseParam->int32Param == param->int32Param) ? HKS_SUCCESS : HKS_ERROR_INVALID_ARGUMENT; in HksCheckParamMatch()
413 … return (baseParam->uint32Param == param->uint32Param) ? HKS_SUCCESS : HKS_ERROR_INVALID_ARGUMENT; in HksCheckParamMatch()
415 … return (baseParam->uint64Param == param->uint64Param) ? HKS_SUCCESS : HKS_ERROR_INVALID_ARGUMENT; in HksCheckParamMatch()
417 … return (baseParam->boolParam == param->boolParam) ? HKS_SUCCESS : HKS_ERROR_INVALID_ARGUMENT; in HksCheckParamMatch()
419 if (baseParam->blob.size != param->blob.size || in HksCheckParamMatch()
420 baseParam->blob.data == NULL ||(param->blob.data == NULL)) { in HksCheckParamMatch()
[all …]
/base/useriam/user_auth_framework/services/core/src/
Dauth_widget_helper.cpp200 unlockParam.baseParam.userId = para.userId; in CheckReuseUnlockResult()
201 unlockParam.baseParam.authTrustLevel = authParam.authTrustLevel; in CheckReuseUnlockResult()
205 unlockParam.baseParam.challenge = authParam.challenge; in CheckReuseUnlockResult()
206 unlockParam.baseParam.callerName = para.callerName; in CheckReuseUnlockResult()
207 unlockParam.baseParam.callerType = para.callerType; in CheckReuseUnlockResult()
208 unlockParam.baseParam.apiVersion = para.sdkVersion; in CheckReuseUnlockResult()
Dauthentication_impl.cpp94 .baseParam = { in Start()
/base/security/huks/interfaces/kits/c/src/
Dnative_huks_param.c85 struct OH_Huks_Result OH_Huks_CheckParamMatch(const struct OH_Huks_Param *baseParam, const struct O… in OH_Huks_CheckParamMatch() argument
87 …int32_t result = HksCheckParamMatch((const struct HksParam *) baseParam, (const struct HksParam *)… in OH_Huks_CheckParamMatch()
/base/security/huks/interfaces/kits/c/include/
Dnative_huks_param.h171 struct OH_Huks_Result OH_Huks_CheckParamMatch(const struct OH_Huks_Param *baseParam, const struct O…
/base/security/device_auth/services/key_agree_sdk/inc/
Dkey_agree_session.h77 PakeBaseParams baseParam; member
/base/security/huks/interfaces/inner_api/huks_standard/main/include/
Dhks_param.h126 HKS_API_EXPORT int32_t HksCheckParamMatch(const struct HksParam *baseParam, const struct HksParam *…