/base/security/asset/test/unittest/module_test/src/ |
H A D | huks_wrapper_test.cpp | 86 struct KeyId keyId = { 0, keyAlias, DEVICE_POWERED_ON }; in HWTEST_F() local 87 ASSERT_EQ(SEC_ASSET_SUCCESS, GenerateKey(&keyId, true, false)); in HWTEST_F() 88 ASSERT_EQ(SEC_ASSET_SUCCESS, IsKeyExist(&keyId)); in HWTEST_F() 89 ASSERT_EQ(SEC_ASSET_SUCCESS, DeleteKey(&keyId)); in HWTEST_F() 102 struct KeyId keyId = { 0, keyAlias, DEVICE_POWERED_ON }; in HWTEST_F() local 103 ASSERT_EQ(SEC_ASSET_SUCCESS, GenerateKey(&keyId, false, false)); in HWTEST_F() 112 ASSERT_EQ(SEC_ASSET_SUCCESS, EncryptData(&keyId, &aadData, &inData, &outData)); in HWTEST_F() 113 ASSERT_EQ(SEC_ASSET_SUCCESS, DecryptData(&keyId, &aadData, &outData, &inData)); in HWTEST_F() 114 ASSERT_EQ(SEC_ASSET_SUCCESS, DeleteKey(&keyId)); in HWTEST_F() 127 struct KeyId keyId in HWTEST_F() local 162 struct KeyId keyId = { 100, keyAlias, DEVICE_FIRST_UNLOCKED }; HWTEST_F() local [all...] |
/base/security/asset/services/crypto_manager/src/ |
H A D | huks_wrapper.h | 45 int32_t GenerateKey(const struct KeyId *keyId, bool needAuth, bool requirePasswordSet); 46 int32_t DeleteKey(const struct KeyId *keyId); 47 int32_t IsKeyExist(const struct KeyId *keyId); 48 int32_t EncryptData(const struct KeyId *keyId, const struct HksBlob *aad, const struct HksBlob *inData, 50 int32_t DecryptData(const struct KeyId *keyId, const struct HksBlob *aad, const struct HksBlob *inData, 52 int32_t InitKey(const struct KeyId *keyId, uint32_t validTime, struct HksBlob *challenge, struct HksBlob *handle); 56 int32_t RenameKeyAlias(const struct KeyId *keyId, const struct HksBlob *newKeyAlias);
|
H A D | huks_wrapper.c | 100 static int32_t AddCommonGenParams(struct HksParamSet *paramSet, const struct KeyId *keyId) in AddCommonGenParams() argument 108 { .tag = HKS_TAG_AUTH_STORAGE_LEVEL, .uint32Param = AccessibilityToHksAuthStorageLevel(keyId->accessibility) }, in AddCommonGenParams() 127 int32_t GenerateKey(const struct KeyId *keyId, bool needAuth, bool requirePasswordSet) in GenerateKey() argument 138 ret = AddCommonGenParams(paramSet, keyId); in GenerateKey() 144 if (keyId->userId > ASSET_ROOT_USER_UPPERBOUND) { in GenerateKey() 145 ret = AddSpecificUserIdParams(paramSet, keyId->userId); in GenerateKey() 175 ret = HksGenerateKey(&keyId->alias, paramSet, NULL); in GenerateKey() 185 int32_t DeleteKey(const struct KeyId *keyId) in DeleteKey() argument 188 { .tag = HKS_TAG_AUTH_STORAGE_LEVEL, .uint32Param = AccessibilityToHksAuthStorageLevel(keyId->accessibility) }, in DeleteKey() 191 int32_t ret = BuildParamSet(¶mSet, params, ARRAY_SIZE(params), keyId in DeleteKey() 201 IsKeyExist(const struct KeyId *keyId) IsKeyExist() argument 217 EncryptData(const struct KeyId *keyId, const struct HksBlob *aad, const struct HksBlob *inData, struct HksBlob *outData) EncryptData() argument 252 DecryptData(const struct KeyId *keyId, const struct HksBlob *aad, const struct HksBlob *inData, struct HksBlob *outData) DecryptData() argument 294 InitKey(const struct KeyId *keyId, uint32_t validTime, struct HksBlob *challenge, struct HksBlob *handle) InitKey() argument 370 RenameKeyAlias(const struct KeyId *keyId, const struct HksBlob *newKeyAlias) RenameKeyAlias() argument [all...] |
H A D | secret_key.rs | 43 fn GenerateKey(keyId: *const KeyId, need_auth: bool, require_password_set: bool) -> i32; in GenerateKey() 44 fn DeleteKey(keyId: *const KeyId) -> i32; in DeleteKey() 45 fn IsKeyExist(keyId: *const KeyId) -> i32; in IsKeyExist() 46 fn RenameKeyAlias(keyId: *const KeyId, newKeyAlias: *const HksBlob) -> i32; in RenameKeyAlias()
|
H A D | crypto.rs | 26 fn EncryptData(keyId: *const KeyId, aad: *const HksBlob, in_data: *const HksBlob, out_data: *mut OutBlob) -> i32; in EncryptData() 27 fn DecryptData(keyId: *const KeyId, aad: *const HksBlob, in_data: *const HksBlob, out_data: *mut OutBlob) -> i32; in DecryptData() 28 fn InitKey(keyId: *const KeyId, valid_time: u32, challenge: *mut OutBlob, handle: *mut OutBlob) -> i32; in InitKey()
|
/base/security/access_token/services/el5filekeymanager/src/ |
H A D | el5_filekey_manager_stub.cpp | 93 std::string keyId; in GenerateAppKeyInner() local 94 reply.WriteInt32(this->GenerateAppKey(uid, bundleName, keyId)); in GenerateAppKeyInner() 95 reply.WriteString(keyId); in GenerateAppKeyInner() 160 std::string keyId = data.ReadString(); in UnmarshallingLoadInfos() local 162 loadInfos.emplace_back(std::make_pair(keyId, loadState)); in UnmarshallingLoadInfos()
|
H A D | el5_filekey_manager_service.cpp | 186 int32_t El5FilekeyManagerService::GenerateAppKey(uint32_t uid, const std::string& bundleName, std::string& keyId) in GenerateAppKey() argument 200 return service_->GenerateAppKey(uid, bundleName, keyId); in GenerateAppKey()
|
/base/security/access_token/interfaces/innerkits/el5filekeymanager/src/ |
H A D | el5_filekey_manager_kit.cpp | 33 int32_t El5FilekeyManagerKit::GenerateAppKey(uint32_t uid, const std::string& bundleName, std::string& keyId) in GenerateAppKey() argument 35 return El5FilekeyManagerClient::GetInstance().GenerateAppKey(uid, bundleName, keyId); in GenerateAppKey()
|
H A D | el5_filekey_manager_proxy.cpp | 90 int32_t El5FilekeyManagerProxy::GenerateAppKey(uint32_t uid, const std::string& bundleName, std::string& keyId) in GenerateAppKey() argument 119 keyId = reply.ReadString(); in GenerateAppKey() 197 std::string keyId = reply.ReadString(); in GetUserAppKey() local 198 keyInfos.emplace_back(std::make_pair(uid, keyId)); in GetUserAppKey() 222 LOG_ERROR("Failed to write keyId."); in ChangeUserAppkeysLoadInfo()
|
H A D | el5_filekey_manager_proxy.h | 33 int32_t GenerateAppKey(uint32_t uid, const std::string& bundleName, std::string& keyId) override;
|
H A D | el5_filekey_manager_client.cpp | 61 int32_t El5FilekeyManagerClient::GenerateAppKey(uint32_t uid, const std::string &bundleName, std::string &keyId) in GenerateAppKey() argument 64 return proxy->GenerateAppKey(uid, bundleName, keyId); in GenerateAppKey()
|
/base/security/access_token/interfaces/innerkits/el5filekeymanager/test/unittest/src/ |
H A D | el5_filekey_manager_kit_unittest.cpp | 109 std::string keyId; in HWTEST_F() local 110 ASSERT_EQ(El5FilekeyManagerKit::GenerateAppKey(uid, bundleName, keyId), EFM_ERR_NO_PERMISSION); in HWTEST_F()
|
/base/security/access_token/interfaces/innerkits/el5filekeymanager/include/ |
H A D | el5_filekey_manager_kit.h | 51 * @param keyId Return keyId of the installed application 54 static int32_t GenerateAppKey(uint32_t uid, const std::string& bundleName, std::string& keyId);
|
H A D | el5_filekey_manager_client.h | 33 int32_t GenerateAppKey(uint32_t uid, const std::string &bundleName, std::string &keyId);
|
/base/security/access_token/frameworks/el5filekeymanager/include/ |
H A D | el5_filekey_manager_interface.h | 36 virtual int32_t GenerateAppKey(uint32_t uid, const std::string& bundleName, std::string& keyId) = 0;
|
H A D | el5_filekey_service_ext_interface.h | 30 virtual int32_t GenerateAppKey(uint32_t uid, const std::string& bundleName, std::string& keyId) = 0;
|
/base/security/access_token/services/el5filekeymanager/test/src/ |
H A D | el5_filekey_manager_service_unittest.cpp | 123 std::string keyId; in HWTEST_F() local 124 ASSERT_EQ(el5FilekeyManagerService_->GenerateAppKey(uid, bundleName, keyId), EFM_ERR_NO_PERMISSION); in HWTEST_F()
|
H A D | el5_filekey_manager_service_mock_unittest.cpp | 65 int32_t GenerateAppKey(uint32_t uid, const std::string& bundleName, std::string& keyId) in GenerateAppKey() argument 194 std::string keyId; in HWTEST_F() local 198 ASSERT_EQ(el5FilekeyManagerService_->GenerateAppKey(uid, bundleName, keyId), EFM_SUCCESS); in HWTEST_F() 213 std::string keyId; in HWTEST_F() local 217 ASSERT_EQ(el5FilekeyManagerService_->GenerateAppKey(uid, bundleName, keyId), EFM_SUCCESS); in HWTEST_F()
|
/base/security/access_token/services/el5filekeymanager/include/ |
H A D | el5_filekey_manager_service.h | 46 int32_t GenerateAppKey(uint32_t uid, const std::string& bundleName, std::string& keyId) override;
|
/base/update/updater/services/ui/driver/ |
H A D | keys_input_device.cpp | 35 data.keyId = lastKeyId_; in Read()
|
/base/account/os_account/services/accountmgr/test/unittest/account_iam/ |
H A D | account_iam_manager_test.cpp | 274 int32_t GenerateAppkey(uint32_t hashId, uint32_t userId, std::string &keyId) in GenerateAppkey() argument 279 int32_t DeleteAppkey(const std::string keyId) in DeleteAppkey() argument
|
/base/security/huks/services/huks_standard/huks_engine/main/device_cert_manager/src/ |
H A D | dcm_attest.c | 1083 struct HksParam *keyId = NULL;
in BuildAttestMsgClaims() local 1084 ret = HksGetParam(paramSet, HKS_TAG_ATTESTATION_ID_ALIAS, &keyId);
in BuildAttestMsgClaims() 1085 HKS_IF_NOT_SUCC_LOGE_RETURN(ret, ret, "get keyId param failed!")
in BuildAttestMsgClaims() 1087 struct HksAsn1Blob keyIdBlob = { ASN_1_TAG_TYPE_OCT_STR, keyId->blob.size, keyId->blob.data };
in BuildAttestMsgClaims() 1089 HKS_IF_NOT_SUCC_LOGE_RETURN(ret, ret, "insert keyId fail\n")
in BuildAttestMsgClaims()
|