/base/security/device_auth/services/protocol/src/pake_protocol/pake_v1_protocol/ |
D | pake_v1_protocol_common.c | 29 void DestroyPakeV1BaseParams(PakeBaseParams *params) in DestroyPakeV1BaseParams() 68 static int32_t AllocDefaultParams(PakeBaseParams *params) in AllocDefaultParams() 121 static void FillDefaultValue(PakeBaseParams *params) in FillDefaultValue() 149 int32_t InitPakeV1BaseParams(PakeBaseParams *params) in InitPakeV1BaseParams() 175 static int32_t GeneratePakeParams(PakeBaseParams *params) in GeneratePakeParams() 222 static int32_t DeriveKeyFromSharedSecret(PakeBaseParams *params) in DeriveKeyFromSharedSecret() 257 static int32_t GenerateSessionKey(PakeBaseParams *params) in GenerateSessionKey() 289 static int32_t GenerateProof(PakeBaseParams *params) in GenerateProof() 317 static int32_t VerifyProof(PakeBaseParams *params) in VerifyProof() 353 int32_t ClientConfirmPakeV1Protocol(PakeBaseParams *params) in ClientConfirmPakeV1Protocol() [all …]
|
/base/security/device_auth/services/protocol/src/pake_protocol/pake_protocol_dl_common/ |
D | pake_protocol_dl_common.c | 52 static int32_t GenerateEsk(PakeBaseParams *params) in GenerateEsk() 61 static int FillDlKeysLenAccordingToEpkPeer(PakeBaseParams *params) in FillDlKeysLenAccordingToEpkPeer() 79 static int FillDlKeysLenAccordingToMod(PakeBaseParams *params) in FillDlKeysLenAccordingToMod() 95 static int32_t InitDlPakeParams(PakeBaseParams *params) in InitDlPakeParams() 125 int32_t GenerateDlPakeParams(PakeBaseParams *params, const Uint8Buff *secret) in GenerateDlPakeParams() 158 static bool IsEpkPeerLenInvalid(PakeBaseParams *params) in IsEpkPeerLenInvalid() 172 int32_t AgreeDlSharedSecret(PakeBaseParams *params, Uint8Buff *sharedSecret) in AgreeDlSharedSecret()
|
/base/security/device_auth/services/protocol/src/pake_protocol/pake_v2_protocol/ |
D | pake_v2_protocol_common.c | 33 void DestroyPakeV2BaseParams(PakeBaseParams *params) in DestroyPakeV2BaseParams() 72 static int32_t AllocDefaultParams(PakeBaseParams *params) in AllocDefaultParams() 111 static void FillDefaultValue(PakeBaseParams *params) in FillDefaultValue() 143 int32_t InitPakeV2BaseParams(PakeBaseParams *params) in InitPakeV2BaseParams() 169 static int32_t GeneratePakeParams(PakeBaseParams *params) in GeneratePakeParams() 209 static int32_t ComputeSidSelf(const PakeBaseParams *params, Uint8Buff *sidSelf) in ComputeSidSelf() 241 static int32_t ComputeSidPeer(const PakeBaseParams *params, Uint8Buff *sidPeer) in ComputeSidPeer() 273 static int32_t ComputeSid(const PakeBaseParams *params, Uint8Buff *sid) in ComputeSid() 331 static int32_t ComputeSharedSecret(PakeBaseParams *params, const Uint8Buff *sid, const Uint8Buff *t… in ComputeSharedSecret() 381 static int32_t GenerateSharedSecret(PakeBaseParams *params) in GenerateSharedSecret() [all …]
|
/base/security/device_auth/services/authenticators/src/account_unrelated/pake_task/ |
D | pake_message_util.c | 24 int32_t PackagePakeRequestData(const PakeParams *params, CJson *payload) in PackagePakeRequestData() 54 int32_t ParsePakeRequestMessage(PakeParams *params, const CJson *in) in ParsePakeRequestMessage() 83 int32_t PackagePakeResponseData(const PakeParams *params, CJson *payload) in PackagePakeResponseData() 110 static int32_t GetDasEpkPeerFromJson(PakeParams *params, const CJson *in) in GetDasEpkPeerFromJson() 130 int32_t ParsePakeResponseMessage(PakeParams *params, const CJson *in) in ParsePakeResponseMessage() 153 int32_t PackagePakeClientConfirmData(const PakeParams *params, CJson *payload) in PackagePakeClientConfirmData() 169 int32_t ParsePakeClientConfirmMessage(PakeParams *params, const CJson *in) in ParsePakeClientConfirmMessage() 185 int32_t PackagePakeServerConfirmData(const PakeParams *params, CJson *payload) in PackagePakeServerConfirmData() 196 int32_t ParsePakeServerConfirmMessage(PakeParams *params, const CJson *in) in ParsePakeServerConfirmMessage()
|
D | pake_task_common.c | 22 int32_t ConstructOutJson(const PakeParams *params, CJson *out) in ConstructOutJson() 65 static int32_t GenerateOutputKey(PakeParams *params) in GenerateOutputKey() 78 int32_t SendResultToSelf(PakeParams *params, CJson *out) in SendResultToSelf() 108 static int32_t FillPskWithPin(PakeParams *params, const CJson *in) in FillPskWithPin() 135 static int32_t FillAuthId(PakeParams *params, const CJson *in) in FillAuthId() 184 static int32_t FillUserType(PakeParams *params, const CJson *in) in FillUserType() 198 static int32_t FillPkgNameAndServiceType(PakeParams *params, const CJson *in) in FillPkgNameAndServiceType() 233 static int32_t FillNonce(PakeParams *params) in FillNonce() 249 int32_t FillDasPakeParams(PakeParams *params, const CJson *in) in FillDasPakeParams()
|
/base/startup/appspawn/test/moduletest/ |
D | appspawn_module_test.cpp | 102 bool checkUid(const int32_t &pid, const AppSpawnStartMsg ¶ms) in checkUid() 123 bool checkGid(const int32_t &pid, const AppSpawnStartMsg ¶ms) in checkGid() 181 bool checkGids(const int32_t &pid, const AppSpawnStartMsg ¶ms) in checkGids() 193 bool checkGidsCount(const int32_t &pid, const AppSpawnStartMsg ¶ms) in checkGidsCount() 205 bool checkProcName(const int32_t &pid, const AppSpawnStartMsg ¶ms) in checkProcName() 403 AppSpawnStartMsg params = {10003, 10004, {10003, 10004}, variable 434 AppSpawnStartMsg params = {10003, 10004, {10003, 10004}, variable 466 AppSpawnStartMsg params = {10003, 10004, {10003, 10004}, variable 499 AppSpawnStartMsg params = {10003, 10004, {10003, 10004}, variable 532 AppSpawnStartMsg params = {10003, 10004, {10003, 10004}, variable [all …]
|
/base/security/device_auth/services/authenticators/src/account_unrelated/iso_task/ |
D | iso_task_common.c | 25 static int GenerateReturnKey(IsoParams *params, uint8_t *returnKey, uint32_t returnKeyLen) in GenerateReturnKey() 75 int GenerateEncResult(const IsoParams *params, int message, CJson *sendToPeer, const char *aad) in GenerateEncResult() 122 int SendResultToFinalSelf(IsoParams *params, CJson *out, bool isNeedReturnKey) in SendResultToFinalSelf() 158 int GenEncResult(IsoParams *params, int message, CJson *out, const char *aad, bool isNeedReturnKey) in GenEncResult() 206 int CheckEncResult(IsoParams *params, const CJson *in, const char *aad) in CheckEncResult() 245 void DeleteAuthCode(const IsoParams *params) in DeleteAuthCode() 264 void DestroyIsoParams(IsoParams *params) in DestroyIsoParams() 292 static int FillAuthId(IsoParams *params, const CJson *in) in FillAuthId() 346 static int FillPkgNameAndServiceType(IsoParams *params, const CJson *in) in FillPkgNameAndServiceType() 379 static int FillPin(IsoParams *params, const CJson *in) in FillPin() [all …]
|
/base/security/device_auth/services/authenticators/src/account_related/auth/iso_auth_task/ |
D | iso_auth_task_common.c | 46 static int32_t FillUserId(const CJson *in, IsoAuthParams *params) in FillUserId() 71 static int32_t FillPayload(const CJson *in, IsoAuthParams *params) in FillPayload() 124 static int32_t SetChallenge(IsoAuthParams *params, const CJson *in) in SetChallenge() 144 static int32_t GenerateAuthTokenForAccessory(const IsoAuthParams *params, Uint8Buff *outKey) in GenerateAuthTokenForAccessory() 171 static int32_t GenerateTokenAliasForController(const IsoAuthParams *params, Uint8Buff *authTokenAli… in GenerateTokenAliasForController() 188 int32_t AccountAuthGeneratePsk(IsoAuthParams *params) in AccountAuthGeneratePsk() 215 int32_t InitIsoAuthParams(const CJson *in, IsoAuthParams *params, const AccountVersionInfo *verInfo) in InitIsoAuthParams() 259 void DestroyIsoAuthParams(IsoAuthParams *params) in DestroyIsoAuthParams() 289 static int32_t GetPayloadValue(IsoAuthParams *params, const CJson *in) in GetPayloadValue() 326 static int32_t ExtractPeerAuthId(IsoAuthParams *params, const CJson *in) in ExtractPeerAuthId() [all …]
|
/base/security/device_auth/services/authenticators/src/account_related/auth/pake_v2_auth_task/ |
D | pake_v2_auth_task_common.c | 56 int32_t VerifyPkSignPeer(const PakeAuthParams *params) in VerifyPkSignPeer() 92 int32_t GenerateEcdhSharedKey(PakeAuthParams *params) in GenerateEcdhSharedKey() 147 int32_t ExtractPakePeerId(PakeAuthParams *params, const CJson *in) in ExtractPakePeerId() 166 int32_t ExtractPakeSelfId(PakeAuthParams *params) in ExtractPakeSelfId() 186 static int32_t ExtractSelfDeviceId(PakeAuthParams *params, const CJson *in, bool useSelfPrefix) in ExtractSelfDeviceId() 216 int32_t ExtractPeerDeviceId(PakeAuthParams *params, const CJson *in) in ExtractPeerDeviceId() 245 static int32_t ExtractSelfDevId(PakeAuthParams *params, const CJson *in) in ExtractSelfDevId() 270 int32_t ExtractPeerDevId(PakeAuthParams *params, const CJson *in) in ExtractPeerDevId() 294 int32_t GetPkInfoPeer(PakeAuthParams *params, const CJson *in) in GetPkInfoPeer() 335 static int32_t GetAsyPubKeyInfo(PakeAuthParams *params) in GetAsyPubKeyInfo() [all …]
|
/base/security/device_auth/services/protocol/src/iso_protocol/ |
D | iso_protocol_common.c | 23 int32_t InitIsoBaseParams(IsoBaseParams *params) in InitIsoBaseParams() 66 void DestroyIsoBaseParams(IsoBaseParams *params) in DestroyIsoBaseParams() 88 static int IsoCalSelfToken(const IsoBaseParams *params, Uint8Buff *outHmac) in IsoCalSelfToken() 134 static int IsoCalPeerToken(const IsoBaseParams *params, Uint8Buff *selfToken) in IsoCalPeerToken() 180 static int IsoCombineHkdfSalt(IsoBaseParams *params, Uint8Buff *hkdfSaltBuf, bool isClient) in IsoCombineHkdfSalt() 206 static int IsoGenSessionKey(IsoBaseParams *params, Uint8Buff *pskBuf, bool isClient) in IsoGenSessionKey() 232 int IsoClientGenRandom(IsoBaseParams *params) in IsoClientGenRandom() 246 int IsoClientCheckAndGenToken(IsoBaseParams *params, const Uint8Buff *peerToken, Uint8Buff *selfTok… in IsoClientCheckAndGenToken() 279 int IsoClientGenSessionKey(IsoBaseParams *params, int returnResult, const uint8_t *hmac, uint32_t h… in IsoClientGenSessionKey() 316 int IsoServerGenRandomAndToken(IsoBaseParams *params, Uint8Buff *selfTokenBuf) in IsoServerGenRandomAndToken() [all …]
|
/base/security/device_auth/services/authenticators/src/account_unrelated/pake_task/pake_v1_task/pake_v1_protocol_task/ |
D | pake_v1_protocol_task_common.c | 27 void DestroyDasPakeV1Params(PakeParams *params) in DestroyDasPakeV1Params() 51 static int32_t AllocReturnKey(PakeParams *params, const CJson *in) in AllocReturnKey() 74 int32_t InitDasPakeV1Params(PakeParams *params, const CJson *in) in InitDasPakeV1Params() 109 static int32_t ConvertPsk(const Uint8Buff *srcPsk, PakeParams *params) in ConvertPsk() 127 int32_t FillPskWithDerivedKeyHex(PakeParams *params) in FillPskWithDerivedKeyHex()
|
D | pake_v1_client_protocol_task.c | 42 static int PakeRequest(AsyBaseCurTask *task, PakeParams *params, CJson *out, int *status) in PakeRequest() 87 static int ParseMsgForClientConfirm(PakeParams *params, const CJson *in) in ParseMsgForClientConfirm() 111 static int PackageMsgForClientConfirm(PakeParams *params, CJson *out) in PackageMsgForClientConfirm() 138 static int PakeClientConfirm(AsyBaseCurTask *task, PakeParams *params, const CJson *in, CJson *out,… in PakeClientConfirm() 182 static int PakeClientVerifyConfirm(AsyBaseCurTask *task, PakeParams *params, const CJson *in, int *… in PakeClientVerifyConfirm() 213 static int Process(struct AsyBaseCurTaskT *task, PakeParams *params, const CJson *in, CJson *out, i… in Process()
|
/base/update/updater/services/applypatch/ |
D | command_process.cpp | 37 CommandResult AbortCommandFn::Execute(const Command ¶ms) in Execute() 42 CommandResult NewCommandFn::Execute(const Command ¶ms) in Execute() 71 CommandResult ZeroAndEraseCommandFn::Execute(const Command ¶ms) in Execute() 102 CommandResult DiffAndMoveCommandFn::Execute(const Command ¶ms) in Execute() 153 CommandResult FreeCommandFn::Execute(const Command ¶ms) in Execute() 164 CommandResult StashCommandFn::Execute(const Command ¶ms) in Execute()
|
/base/security/crypto_framework/frameworks/key/ |
D | asy_key_generator.c | 50 static HcfAsyKeyGeneratorSpiCreateFunc FindAbility(HcfAsyKeyGenParams *params) in FindAbility() 61 static void SetPrimes(HCF_ALG_PARA_VALUE value, HcfAsyKeyGenParams *params) in SetPrimes() 88 static void SetKeyType(HCF_ALG_PARA_VALUE value, HcfAsyKeyGenParams *params) in SetKeyType() 132 static HcfResult ParseAsyKeyGenParams(const HcfParaConfig* config, void *params) in ParseAsyKeyGenParams() 172 static HcfResult ConvertKey(HcfAsyKeyGenerator *self, HcfParamsSpec *params, HcfBlob *pubKeyBlob, in ConvertKey() 186 static HcfResult GenerateKeyPair(HcfAsyKeyGenerator *self, HcfParamsSpec *params, in GenerateKeyPair() 220 HcfAsyKeyGenParams params = { 0 }; in HcfAsyKeyGeneratorCreate() local
|
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/ |
D | hks_import_wrapped_test_common.cpp | 90 static int32_t CheckParamsValid(const struct HksImportWrappedKeyTestParams *params) in CheckParamsValid() 108 static void GenerateAndExportHuksPublicKey(const struct HksImportWrappedKeyTestParams *params, in GenerateAndExportHuksPublicKey() 126 static void GenerateAndExportCallerPublicKey(const struct HksImportWrappedKeyTestParams *params, in GenerateAndExportCallerPublicKey() 141 static void ImportKekAndAgreeSharedSecret(const struct HksImportWrappedKeyTestParams *params, in ImportKekAndAgreeSharedSecret() 165 static void EncryptImportedPlainKeyAndKek(const struct HksImportWrappedKeyTestParams *params, in EncryptImportedPlainKeyAndKek() 182 …static void ImportWrappedKey(const struct HksImportWrappedKeyTestParams *params, struct HksBlob *p… in ImportWrappedKey() 228 void HksImportWrappedKeyTestCommonCase(const struct HksImportWrappedKeyTestParams *params) in HksImportWrappedKeyTestCommonCase() 257 void HksClearKeysForWrappedKeyTest(const struct HksImportWrappedKeyTestParams *params) in HksClearKeysForWrappedKeyTest()
|
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/aes/src/ |
D | cipher_aes_common.c | 22 const unsigned char *GetIv(HcfParamsSpec *params) in GetIv() 32 int32_t GetCcmTagLen(HcfParamsSpec *params) in GetCcmTagLen() 42 void *GetCcmTag(HcfParamsSpec *params) in GetCcmTag()
|
/base/security/device_auth/services/protocol/src/pake_protocol/pake_protocol_ec_common/ |
D | pake_protocol_ec_common.c | 32 static int32_t GenerateEsk(PakeBaseParams *params) in GenerateEsk() 53 static int32_t InitEcPakeParams(PakeBaseParams *params) in InitEcPakeParams() 77 int32_t GenerateEcPakeParams(PakeBaseParams *params, Uint8Buff *secret) in GenerateEcPakeParams() 110 int32_t AgreeEcSharedSecret(PakeBaseParams *params, Uint8Buff *sharedSecret) in AgreeEcSharedSecret()
|
/base/security/device_auth/services/authenticators/src/account_unrelated/iso_task/iso_protocol_task/ |
D | iso_client_protocol_task.c | 41 static int IsoClientStartPackData(CJson *out, const IsoParams *params) in IsoClientStartPackData() 80 static int IsoClientStart(SymBaseCurTask *task, IsoParams *params, CJson *out, int32_t *status) in IsoClientStart() 107 static int PackDataForCalToken(const IsoParams *params, const Uint8Buff *selfTokenBuf, CJson *out) in PackDataForCalToken() 138 static int ParseServerStartMessage(IsoParams *params, const CJson *in, Uint8Buff *peerToken) in ParseServerStartMessage() 152 static int CalculateTokenClient(SymBaseCurTask *task, IsoParams *params, const CJson *in, CJson *ou… in CalculateTokenClient() 202 static int GenerateSessionKey(SymBaseCurTask *task, IsoParams *params, const CJson *in, int32_t *st… in GenerateSessionKey() 241 static int Process(struct SymBaseCurTaskT *task, IsoParams *params, const CJson *in, CJson *out, in… in Process()
|
/base/security/device_auth/services/protocol/src/pake_protocol/pake_protocol_dl_common_mock/ |
D | pake_protocol_dl_common_mock.c | 28 int32_t GenerateDlPakeParams(PakeBaseParams *params, const Uint8Buff *secret) in GenerateDlPakeParams() 36 int32_t AgreeDlSharedSecret(PakeBaseParams *params, Uint8Buff *sharedSecret) in AgreeDlSharedSecret()
|
/base/security/device_auth/services/protocol/src/pake_protocol/pake_protocol_ec_common_mock/ |
D | pake_protocol_ec_common_mock.c | 28 int32_t GenerateEcPakeParams(PakeBaseParams *params, Uint8Buff *secret) in GenerateEcPakeParams() 36 int32_t AgreeEcSharedSecret(PakeBaseParams *params, Uint8Buff *sharedSecret) in AgreeEcSharedSecret()
|
/base/security/huks/frameworks/huks_standard/main/common/src/ |
D | hks_check_paramset.c | 271 struct ParamsValues *params) in CheckGenKeyParamsByAlg() 287 …nt32_t alg, uint32_t inputPurpose, const struct HksParamSet *paramSet, struct ParamsValues *params) in CheckGenKeyMacDeriveParams() 314 …atic int32_t CoreCheckGenKeyParams(const struct HksParamSet *paramSet, struct ParamsValues *params) in CoreCheckGenKeyParams() 336 static int32_t CheckImportKeySize(uint32_t alg, const struct ParamsValues *params, const struct Hks… in CheckImportKeySize() 439 struct ParamsValues params; in HksCoreCheckGenKeyParams() local 444 static int32_t CheckRsaKeyLen(uint32_t alg, uint32_t keyType, const struct ParamsValues *params, in CheckRsaKeyLen() 475 static int32_t CheckEccKeyLen(uint32_t alg, uint32_t keyType, const struct ParamsValues *params, in CheckEccKeyLen() 513 static int32_t CheckDsaKeyLen(uint32_t alg, uint32_t keyType, const struct ParamsValues *params, in CheckDsaKeyLen() 555 …ic int32_t CheckCurve25519KeyLen(uint32_t alg, uint32_t keyType, const struct ParamsValues *params, in CheckCurve25519KeyLen() 594 static int32_t CheckDHKeyLen(uint32_t alg, uint32_t keyType, const struct ParamsValues *params, in CheckDHKeyLen() [all …]
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/ |
D | remove.cpp | 32 bool ParseRemoveReason(const napi_env &env, const napi_value &value, RemoveParams ¶ms) in ParseRemoveReason() 51 RemoveParams ¶ms) in ParseCallbackFunc() 63 …l ParseHashcodeTypeParams(const napi_env &env, napi_value* argv, size_t argc, RemoveParams ¶ms) in ParseHashcodeTypeParams() 83 …rseBundleOptionTypeParams(const napi_env &env, napi_value* argv, size_t argc, RemoveParams ¶ms) in ParseBundleOptionTypeParams() 110 bool ParseParameters(const napi_env &env, const napi_callback_info &info, RemoveParams ¶ms) in ParseParameters() 133 …rseParametersByRemoveAll(const napi_env &env, const napi_callback_info &info, RemoveParams ¶ms) in ParseParametersByRemoveAll() 182 const napi_env &env, const napi_callback_info &info, RemoveParamsGroupByBundle ¶ms) in ParseParameters() 272 RemoveParams params {}; in Remove() local 300 RemoveParams params {}; in RemoveAll() local 393 RemoveParamsGroupByBundle params {}; in RemoveGroupByBundle() local
|
/base/hiviewdfx/hiappevent/frameworks/js/napi/src/ |
D | napi_hiappevent_js_v9.cpp | 37 napi_value params[MAX_PARAM_NUM] = { 0 }; in Write() local 71 napi_value params[MAX_PARAM_NUM] = { 0 }; in Configure() local 90 napi_value params[MAX_PARAM_NUM] = { 0 }; in AddWatcher() local 100 napi_value params[MAX_PARAM_NUM] = { 0 }; in RemoveWatcher() local
|
/base/update/updater/services/script/script_interpreter/ |
D | script_param.cpp | 33 auto params = new(std::nothrow) ScriptParams(); in CreateParams() local 39 ScriptParams* ScriptParams::AddParams(ScriptParams *params, UScriptExpression *expression) in AddParams()
|
/base/security/certificate_manager/frameworks/cert_manager_standard/main/os_dependency/cm_ipc/src/ |
D | cm_ipc_client.c | 24 static int32_t CmSendParcelInit(struct CmParam *params, uint32_t paramCount, in CmSendParcelInit() 62 struct CmParam params[] = { in GetCertificateList() local 119 struct CmParam params[] = { in GetCertificateInfo() local 166 struct CmParam params[] = { in SetCertificateStatus() local 200 struct CmParam params[] = { in InstallAppCert() local 244 struct CmParam params[] = { in UninstallAppCert() local 389 struct CmParam params[] = { in GetAppCertList() local 544 struct CmParam params[] = { in GetAppCert() local 590 static int32_t ClientSerializationAndSend(enum CmMessage message, struct CmParam *params, in ClientSerializationAndSend() 652 struct CmParam params[] = { in CmClientGrantAppCertificate() local [all …]
|