Home
last modified time | relevance | path

Searched refs:keyType (Results 1 – 25 of 35) sorted by relevance

12

/base/security/device_auth/services/authenticators/src/account_unrelated/pake_task/standard_exchange_task/
Ddas_standard_token_manager.c26 KeyAliasType keyType = userType; in RegisterLocalIdentity() local
29 int32_t res = GenerateKeyAlias(&pkgNameBuff, &serviceTypeBuff, keyType, authId, &keyAliasBuff); in RegisterLocalIdentity()
57 KeyAliasType keyType = userType; in UnregisterLocalIdentity() local
60 …int32_t res = GenerateKeyAlias(&pkgNameBuff, &serviceTypeBuff, keyType, authId, &pakeKeyAliasBuff); in UnregisterLocalIdentity()
83 KeyAliasType keyType = KEY_ALIAS_LT_KEY_PAIR; in DeletePeerAuthInfo() local
85 KeyAliasType keyType = (KeyAliasType)userTypePeer; in DeletePeerAuthInfo() local
89 …int32_t res = GenerateKeyAlias(&pkgNameBuff, &serviceTypeBuff, keyType, authIdPeer, &pakeKeyAliasB… in DeletePeerAuthInfo()
126 KeyAliasType keyType = params->userType; in ComputeAndSavePsk() local
129 …int32_t res = GenerateKeyAlias(&packageName, &serviceType, keyType, &(params->baseParams.idSelf), … in ComputeAndSavePsk()
181 KeyAliasType keyType = userType; in GetPublicKey() local
[all …]
Dcommon_standard_bind_exchange.c363 KeyAliasType keyType = KEY_ALIAS_LT_KEY_PAIR; in SaveAuthInfo() local
365 KeyAliasType keyType = (KeyAliasType)pakeParams->userTypePeer; in SaveAuthInfo() local
369 …int32_t res = GenerateKeyAlias(&packageName, &serviceType, keyType, &(pakeParams->baseParams.idPee… in SaveAuthInfo()
397 KeyAliasType keyType = pakeParams->userType; in ClientRequestStandardBindExchange() local
400 …int32_t res = GenerateKeyAlias(&packageName, &serviceType, keyType, &(pakeParams->baseParams.idSel… in ClientRequestStandardBindExchange()
433 KeyAliasType keyType = pakeParams->userType; in ServerResponseStandardBindExchange() local
436 …int32_t res = GenerateKeyAlias(&packageName, &serviceType, keyType, &(pakeParams->baseParams.idSel… in ServerResponseStandardBindExchange()
493 KeyAliasType keyType = pakeParams->userType; in ClientConfirmStandardBindExchange() local
496 …int32_t res = GenerateKeyAlias(&packageName, &serviceType, keyType, &(pakeParams->baseParams.idSel… in ClientConfirmStandardBindExchange()
/base/security/huks/test/unittest/huks_standard_test/module_test/framework_test/common_test/src/
Dhks_check_paramset_test.cpp69 uint32_t keyType = HKS_KEY_TYPE_PUBLIC_KEY; variable
72 int32_t ret = CheckMutableParams(HKS_ALG_RSA, keyType, &params);
84 uint32_t keyType = HKS_KEY_TYPE_PUBLIC_KEY; variable
87 int32_t ret = CheckMutableParams(HKS_ALG_ECC, keyType, &params);
99 uint32_t keyType = HKS_KEY_TYPE_PUBLIC_KEY; variable
102 int32_t ret = CheckMutableParams(HKS_ALG_SM2, keyType, &params);
114 uint32_t keyType = HKS_KEY_TYPE_PUBLIC_KEY; variable
117 int32_t ret = CheckMutableParams(HKS_ALG_DSA, keyType, &params);
129 uint32_t keyType = HKS_KEY_TYPE_PUBLIC_KEY; variable
132 int32_t ret = CheckMutableParams(HKS_ALG_ED25519, keyType, &params);
[all …]
/base/inputmethod/imf/frameworks/native/inputmethod_controller/include/
Dinput_method_utils.h64 void SetEnterKeyType(EnterKeyType keyType) in SetEnterKeyType() argument
66 enterKeyType = keyType; in SetEnterKeyType()
107 void SetEnterKeyType(EnterKeyType keyType) in SetEnterKeyType() argument
109 enterKeyType = keyType; in SetEnterKeyType()
Di_input_data_channel.h61 virtual int32_t GetEnterKeyType(int32_t &keyType) = 0;
Dinput_data_channel_proxy.h46 int32_t GetEnterKeyType(int32_t &keyType) override;
/base/security/device_auth/services/authenticators/src/account_unrelated/
Ddas_task_common.c203 static int32_t CombineKeyAlias(const Uint8Buff *serviceId, const Uint8Buff *keyType, in CombineKeyAlias() argument
208 keyAliasBuff.length = serviceId->length + authId->length + keyType->length; in CombineKeyAlias()
224 …if (memcpy_s(keyAliasBuff.val + usedLen, totalLen - usedLen, keyType->val, keyType->length) != EOK… in CombineKeyAlias()
229 usedLen = usedLen + keyType->length; in CombineKeyAlias()
247 static int32_t CombineKeyAliasForIso(const Uint8Buff *serviceId, const Uint8Buff *keyType, in CombineKeyAliasForIso() argument
253 int32_t res = CombineKeyAlias(serviceId, keyType, authId, outKeyAlias); in CombineKeyAliasForIso()
261 static int32_t CombineKeyAliasForPake(const Uint8Buff *serviceId, const Uint8Buff *keyType, in CombineKeyAliasForPake() argument
277 res = CombineKeyAlias(serviceId, keyType, authId, &keyAliasHash); in CombineKeyAliasForPake()
301 const KeyAliasType keyType, const Uint8Buff *authId, Uint8Buff *outKeyAlias) in GenerateKeyAlias() argument
316 authId->length > AUTH_ID_MAX_LEN || keyType >= KEY_ALIAS_TYPE_END) { in GenerateKeyAlias()
[all …]
/base/inputmethod/imf/test/unittest/cpp_test/src/
Dinput_method_utils_test.cpp65 EnterKeyType keyType = info.GetEnterKeyType(); variable
66 EXPECT_EQ(keyType, EnterKeyType::UNSPECIFIED);
Dinput_method_attach_test.cpp88 int32_t keyType = -1; variable
89 ret = inputMethodAbility_->GetEnterKeyType(keyType);
91 EXPECT_EQ(keyType, 0);
111 int32_t keyType = -1; variable
112 ret = inputMethodAbility_->GetEnterKeyType(keyType);
114 EXPECT_EQ(keyType, 0);
137 int32_t keyType = -1; variable
138 ret = inputMethodAbility_->GetEnterKeyType(keyType);
140 EXPECT_EQ(keyType, attribute.enterKeyType);
164 int32_t keyType = -1; variable
[all …]
/base/security/device_auth/services/creds_manager/src/
Dcreds_operation_utils.c85 static int32_t SetProtocolsForP2pType(int32_t keyType, IdentityInfo *info) in SetProtocolsForP2pType() argument
87 if (keyType == KEY_TYPE_ASYM) { in SetProtocolsForP2pType()
134 static int32_t SetProtocolsForPresharedCred(int32_t trustType, int32_t keyType, IdentityInfo *info) in SetProtocolsForPresharedCred() argument
141 return SetProtocolsForP2pType(keyType, info); in SetProtocolsForPresharedCred()
178 int32_t GetIdentityInfoByType(int32_t keyType, int32_t trustType, const char *groupId, IdentityInfo… in GetIdentityInfoByType() argument
190 if (AddIntToJson(urlJson, PRESHARED_URL_KEY_TYPE, keyType) != HC_SUCCESS) { in GetIdentityInfoByType()
220 ret = SetProtocolsForPresharedCred(trustType, keyType, info); in GetIdentityInfoByType()
/base/security/huks/frameworks/huks_standard/main/common/src/
Dhks_check_paramset.c463 static int32_t CheckRsaKeyLen(uint32_t alg, uint32_t keyType, const struct ParamsValues *params, in CheckRsaKeyLen() argument
466 (void)keyType; in CheckRsaKeyLen()
494 static int32_t CheckEccKeyLen(uint32_t alg, uint32_t keyType, const struct ParamsValues *params, in CheckEccKeyLen() argument
518 …if ((keyType == HKS_KEY_TYPE_KEY_PAIR) && ((keyMaterial->xSize == 0) || (keyMaterial->ySize == 0))… in CheckEccKeyLen()
532 static int32_t CheckDsaKeyLen(uint32_t alg, uint32_t keyType, const struct ParamsValues *params, in CheckDsaKeyLen() argument
559 if ((keyType == HKS_KEY_TYPE_KEY_PAIR) && (keyMaterial->ySize == 0)) { in CheckDsaKeyLen()
574 static int32_t CheckCurve25519KeyLen(uint32_t alg, uint32_t keyType, const struct ParamsValues *par… in CheckCurve25519KeyLen() argument
599 if ((keyType == HKS_KEY_TYPE_KEY_PAIR) && (keyMaterial->pubKeySize == 0)) { in CheckCurve25519KeyLen()
613 static int32_t CheckDHKeyLen(uint32_t alg, uint32_t keyType, const struct ParamsValues *params, in CheckDHKeyLen() argument
637 if ((keyType == HKS_KEY_TYPE_KEY_PAIR) && (keyMaterial->pubKeySize == 0)) { in CheckDHKeyLen()
[all …]
/base/security/huks/services/huks_standard/huks_service/main/systemapi_wrap/hisysevent_wrapper/include/
Dhisysevent_wrapper.h28 uint32_t keyType; member
/base/inputmethod/imf/frameworks/native/inputmethod_controller/src/
Dinput_data_channel_proxy.cpp90 int32_t InputDataChannelProxy::GetEnterKeyType(int32_t &keyType) in GetEnterKeyType() argument
95 [&keyType](MessageParcel &parcel) { return ITypesUtil::Unmarshal(parcel, keyType);}); in GetEnterKeyType()
Dinput_data_channel_stub.cpp83 int32_t keyType = 0; in OnRemoteRequest() local
84 reply.WriteInt32(GetEnterKeyType(keyType)); in OnRemoteRequest()
85 reply.WriteInt32(keyType); in OnRemoteRequest()
263 int32_t InputDataChannelStub::GetEnterKeyType(int32_t &keyType) in GetEnterKeyType() argument
266 return InputMethodController::GetInstance()->GetEnterKeyType(keyType); in GetEnterKeyType()
/base/web/webview/ohos_adapter/interfaces/
Dimf_adapter.h77 void SetEnterKeyType(IMFAdapterEnterKeyType keyType) in SetEnterKeyType() argument
79 enterKeyType = keyType; in SetEnterKeyType()
/base/security/device_auth/services/creds_manager/inc/
Dcreds_operation_utils.h31 int32_t GetIdentityInfoByType(int32_t keyType, int32_t trustType, const char *groupId, IdentityInfo…
/base/security/device_auth/services/authenticators/inc/account_unrelated/
Ddas_task_common.h28 …enerateKeyAlias(const Uint8Buff *pkgName, const Uint8Buff *serviceType, const KeyAliasType keyType,
/base/security/device_auth/services/session_manager/src/session/v2/expand_sub_session/expand_process_lib/
Dauth_code_import.c98 static int32_t BuildKeyAliasMsg(const Uint8Buff *serviceId, const Uint8Buff *keyType, in BuildKeyAliasMsg() argument
107 …if (memcpy_s(keyAliasMsg->val + usedLen, keyAliasMsg->length - usedLen, keyType->val, keyType->len… in BuildKeyAliasMsg()
111 usedLen = usedLen + keyType->length; in BuildKeyAliasMsg()
119 static int32_t CalKeyAlias(const Uint8Buff *serviceId, const Uint8Buff *keyType, in CalKeyAlias() argument
123 keyAliasMsg.length = serviceId->length + authId->length + keyType->length; in CalKeyAlias()
129 int32_t res = BuildKeyAliasMsg(serviceId, keyType, authId, &keyAliasMsg); in CalKeyAlias()
Dpub_key_exchange.c109 static int32_t BuildKeyAliasMsg(const Uint8Buff *serviceId, const Uint8Buff *keyType, in BuildKeyAliasMsg() argument
118 …if (memcpy_s(keyAliasMsg->val + usedLen, keyAliasMsg->length - usedLen, keyType->val, keyType->len… in BuildKeyAliasMsg()
122 usedLen = usedLen + keyType->length; in BuildKeyAliasMsg()
130 static int32_t CalKeyAlias(const Uint8Buff *serviceId, const Uint8Buff *keyType, in CalKeyAlias() argument
134 keyAliasMsg.length = serviceId->length + authId->length + keyType->length; in CalKeyAlias()
140 int32_t res = BuildKeyAliasMsg(serviceId, keyType, authId, &keyAliasMsg); in CalKeyAlias()
/base/security/huks/services/huks_standard/huks_service/main/systemapi_wrap/hisysevent_wrapper/src/
Dhisysevent_wrapper.cpp67 …eventValues->processName, g_tagKeyType, eventValues->keyType, g_tagErrorCode, eventValues->errorCo… in WriteEvent()
/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/
Dres_desc_test.cpp116 void TestKeyParam(KeyType keyType, int value, std::string expectStr) in TestKeyParam() argument
119 keyParam.type_ = keyType; in TestKeyParam()
/base/inputmethod/imf/test/fuzztest/inputmethodability_fuzzer/
Dinputmethodability_fuzzer.cpp128 int32_t keyType; in TestGetEnterKeyType() local
129 ability->GetEnterKeyType(keyType); in TestGetEnterKeyType()
/base/global/resource_management/frameworks/resmgr/test/unittest/common/
Dres_desc_test.cpp116 void TestKeyParam(KeyType keyType, int value, std::string expectStr) in TestKeyParam() argument
119 keyParam.type_ = keyType; in TestKeyParam()
/base/inputmethod/imf/test/fuzztest/inputmethodcontroller_fuzzer/
Dinputmethodcontroller_fuzzer.cpp89 EnterKeyType keyType = EnterKeyType::DONE; in TestOnConfigurationChange() local
90 info.SetEnterKeyType(keyType); in TestOnConfigurationChange()
/base/update/updater/services/package/pkg_algorithm/
Dpkg_algo_sign.h38 KEYTYPE keyType; member

12