Home
last modified time | relevance | path

Searched refs:secInfo (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/base/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_service/systemapi_wrap/useridm_test/src/
H A Dhks_useridm_api_wrap_test.cpp221 struct SecInfoWrap *secInfo = NULL; variable
222 int32_t ret = HksUserIdmGetSecInfo(1, &secInfo);
224 EXPECT_EQ(secInfo->enrolledInfoLen > 0, true);
225 EXPECT_EQ(secInfo->enrolledInfo[0].authType, HKS_USER_AUTH_TYPE_PIN);
226 EXPECT_EQ(secInfo->enrolledInfo[0].enrolledId, g_enrolledIdForPin);
227 if (secInfo != NULL) {
228 HKS_FREE(secInfo->enrolledInfo);
229 HKS_FREE(secInfo);
/ohos5.0/drivers/hdf_core/adapter/uhdf2/security/src/
H A Dhdf_security.c143 struct SecInfo secInfo = { in HdfUpdateSecurityId() local
147 int32_t ret = strncpy_s(secInfo.secId, ID_MAX_SIZE, id, ID_MAX_SIZE - 1); in HdfUpdateSecurityId()
152 secInfo.secMap[0] = perms; in HdfUpdateSecurityId()
166 ret = ioctl(fd, HDF_SECURE_SET_INFO, &secInfo); in HdfUpdateSecurityId()
168 ret = ioctl(fd, HDF_SECURE_SET_CURRENT_ID, &secInfo); in HdfUpdateSecurityId()
170 ret = ioctl(fd, HDF_SECURE_DELETE_INFO, &secInfo); in HdfUpdateSecurityId()
/ohos5.0/base/security/huks/services/huks_standard/huks_service/main/core/src/
H A Dhks_client_service.c495 secureUid.blob.data = (uint8_t *)&secInfo->secureUid; in AppendSecUid()
510 index += sizeof(secInfo->enrolledInfoLen); in ConstructEnrolledInfoBlob()
511 for (uint32_t i = 0; i < secInfo->enrolledInfoLen; ++i) { in ConstructEnrolledInfoBlob()
524 index += sizeof(secInfo->enrolledInfo[i].enrolledId); in ConstructEnrolledInfoBlob()
551 ret = ConstructEnrolledInfoBlob(secInfo, enrolledInfo, &tmpParam); in AddEnrolledInfoInParamSet()
587 struct SecInfoWrap *secInfo = NULL; in AppendUserAuthInfo() local
593 ret = HksUserIdmGetSecInfo(userId, &secInfo); in AppendUserAuthInfo()
607 ret = AppendSecUid(newParamSet, secInfo); in AppendUserAuthInfo()
619 if (secInfo != NULL) { in AppendUserAuthInfo()
620 HKS_FREE(secInfo->enrolledInfo); in AppendUserAuthInfo()
[all …]
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/stack/src/gap/
H A Dgap_br_sec.c1067 RequestSecInfo *secInfo = NULL; in GAP_AuthenticationReq() local
1074 secInfo = GapAllocReqSecInfo(addr, NULL, NULL, &tempInfo); in GAP_AuthenticationReq()
1075 if (secInfo != NULL) { in GAP_AuthenticationReq()
1076 ListAddFirst(profileSecurityBlock->requestlist, secInfo); in GAP_AuthenticationReq()
/ohos5.0/base/hiviewdfx/faultloggerd/test/unittest/unwind/
H A Delf_imitate.cpp623 uint64_t secInfo = std::stoull(strVec[strVec.size() - 2], nullptr, base); in ParseSectionHeaders() local
645 elfShdr.info = static_cast<uint32_t>(secInfo); in ParseSectionHeaders()