Home
last modified time | relevance | path

Searched refs:cmdId (Results 1 – 16 of 16) sorted by relevance

/base/security/huks/frameworks/huks_standard/main/os_dependency/ipc/src/
Dhks_ipc_slice.c27 static bool IsSliceCmd(uint32_t cmdId) in IsSliceCmd() argument
29 return (cmdId == HKS_MSG_SIGN) || (cmdId == HKS_MSG_VERIFY) || (cmdId == HKS_MSG_ENCRYPT) || in IsSliceCmd()
30 (cmdId == HKS_MSG_DECRYPT) || (cmdId == HKS_MSG_MAC); in IsSliceCmd()
55 static uint32_t GetDataSize(uint32_t cmdId, const struct HksBlob *inData, const struct HksBlob *out… in GetDataSize() argument
62 if (cmdId == HKS_MSG_VERIFY) { in GetDataSize()
75 static int32_t ProcessDataOnce(uint32_t cmdId, const struct HksBlob *key, const struct HksParamSet … in ProcessDataOnce() argument
78 HKS_LOG_I("invoke ProcessOnce cmdId %" LOG_PUBLIC "u", cmdId); in ProcessDataOnce()
82 (GetDataSize(cmdId, inData, outData, &dataBufSize) != HKS_SUCCESS)) { in ProcessDataOnce()
98 if (cmdId == HKS_MSG_VERIFY) { in ProcessDataOnce()
109 if (cmdId == HKS_MSG_VERIFY) { in ProcessDataOnce()
[all …]
/base/security/huks/frameworks/huks_standard/main/common/include/
Dhks_check_paramset.h37 int32_t HksCoreCheckSignVerifyParams(uint32_t cmdId, const struct HksBlob *key, const struct HksPar…
40 int32_t HksCoreCheckCipherParams(uint32_t cmdId, const struct HksBlob *key, const struct HksParamSe…
46 int32_t HksLocalCheckSignVerifyParams(uint32_t cmdId, uint32_t keySize, const struct HksParamSet *p…
49 int32_t HksLocalCheckCipherParams(uint32_t cmdId, uint32_t keySize, const struct HksParamSet *param…
Dhks_base_check.h92 int32_t HksCheckSignature(uint32_t cmdId, uint32_t alg, uint32_t keySize, const struct HksBlob *sig…
94 int32_t HksCheckSignVerifyMutableParams(uint32_t cmdId, uint32_t alg, const struct ParamsValues *in…
96 int32_t HksCheckCipherMutableParams(uint32_t cmdId, uint32_t alg, const struct ParamsValues *inputP…
98 int32_t HksCheckCihperData(uint32_t cmdId, uint32_t alg, const struct ParamsValues *inputParams,
/base/security/huks/services/huks_standard/huks_service/main/os_dependency/ca/
Dhks_teec.c459 static bool IsVerify(uint32_t cmdId) in IsVerify() argument
461 return (cmdId == HKS_CMD_ID_VERIFY || cmdId == HKS_CMD_ID_VERIFY_FINAL); in IsVerify()
464 int32_t ProcessInit(uint32_t cmdId, const struct HksBlob *keyBlob, const struct HksParamSet *paramS… in ProcessInit() argument
475 int32_t ret = HksTeeCommand(paramTypes, params, cmdId, &operation); in ProcessInit()
476 HKS_IF_NOT_SUCC_LOGE_RETURN(ret, ret, "ProcessInit[%" LOG_PUBLIC "u] failed", cmdId) in ProcessInit()
482 int32_t ProcessUpdate(uint32_t cmdId, uint64_t operationHandle, in ProcessUpdate() argument
498 int32_t ret = HksTeeCommand(paramTypes, params, cmdId, &operation); in ProcessUpdate()
499 HKS_IF_NOT_SUCC_LOGE(ret, "ProcessUpdate[%" LOG_PUBLIC "u] failed", cmdId) in ProcessUpdate()
504 int32_t ProcessFinal(uint32_t cmdId, uint64_t operationHandle, in ProcessFinal() argument
515 int32_t ret = HksTeeCommand(paramTypes, params, cmdId, &operation); in ProcessFinal()
[all …]
Dhks_teec.h31 int32_t HksTeeProcessInit(uint32_t cmdId, const struct HksBlob *key, const struct HksParamSet *para…
34 int32_t HksTeeProcessMultiUpdate(uint32_t cmdId, uint64_t operationHandle, const struct HksBlob *in…
/base/security/huks/frameworks/huks_standard/main/common/src/
Dhks_base_check.c981 static int32_t CheckEccSignature(uint32_t cmdId, uint32_t keySize, const struct HksBlob *signature) in CheckEccSignature() argument
990 switch (cmdId) { in CheckEccSignature()
1014 static int32_t CheckEd25519Signature(uint32_t cmdId, const struct HksBlob *signature) in CheckEd25519Signature() argument
1016 switch (cmdId) { in CheckEd25519Signature()
1052 static int32_t CheckRsaSignature(uint32_t cmdId, uint32_t keySize, const struct HksBlob *signature) in CheckRsaSignature() argument
1058 switch (cmdId) { in CheckRsaSignature()
1099 static int32_t CheckRsaOaepCipherData(uint32_t cmdId, uint32_t keySize, uint32_t digest, in CheckRsaOaepCipherData() argument
1117 if (cmdId == HKS_CMD_ID_ENCRYPT) { in CheckRsaOaepCipherData()
1128 } else if (cmdId == HKS_CMD_ID_DECRYPT) { in CheckRsaOaepCipherData()
1144 static int32_t CheckRsaCipherData(uint32_t cmdId, const struct ParamsValues *inputParams, in CheckRsaCipherData() argument
[all …]
Dhks_check_paramset.c381 static int32_t CheckSignVerifyParamsByAlg(uint32_t cmdId, uint32_t alg, const struct ParamsValues *… in CheckSignVerifyParamsByAlg() argument
386 ret = HksCheckSignVerifyMutableParams(cmdId, alg, inputParams); in CheckSignVerifyParamsByAlg()
395 …uint32_t cmdId, uint32_t alg, const struct HksParamSet *paramSet, const struct ParamsValues *input… in CheckCipherParamsByAlg() argument
400 ret = HksCheckCipherMutableParams(cmdId, alg, inputParams); in CheckCipherParamsByAlg()
772 int32_t HksCoreCheckSignVerifyParams(uint32_t cmdId, const struct HksBlob *key, const struct HksPar… in HksCoreCheckSignVerifyParams() argument
787 ret = CheckSignVerifyParamsByAlg(cmdId, alg, &params); in HksCoreCheckSignVerifyParams()
794 ret = HksCheckSignature(cmdId, alg, keySize, signature); in HksCoreCheckSignVerifyParams()
799 (void)cmdId; in HksCoreCheckSignVerifyParams()
808 int32_t HksLocalCheckSignVerifyParams(uint32_t cmdId, uint32_t keySize, const struct HksParamSet *p… in HksLocalCheckSignVerifyParams() argument
823 ret = CheckSignVerifyParamsByAlg(cmdId, alg, &params); in HksLocalCheckSignVerifyParams()
[all …]
/base/startup/init/services/init/standard/
Dinit_cmdexecutor.c44 cmd->cmdId = g_cmdId++; in AddCmdExecutor()
144 return cmd->cmdId - *(int *)key; in CompareCmdId()
150 int cmdId = ((unsigned int)index & 0x0000ffff); in GetPluginCmdByIndex() local
152 hashCode, (const void *)&cmdId, CompareCmdId); in GetPluginCmdByIndex()
207 *index = ((hashCode + 1) << 16) | cmd->cmdId; // 16 left shift in PluginGetCmdIndex()
/base/security/huks/frameworks/huks_standard/main/core/src/
Dhks_local_engine.c172 static int32_t CheckLocalCipherParams(uint32_t cmdId, const struct HksBlob *key, const struct HksPa… in CheckLocalCipherParams() argument
191 return HksLocalCheckCipherParams(cmdId, keySize, paramSet, inputText, outputText); in CheckLocalCipherParams()
194 static int32_t EncryptAndDecrypt(uint32_t cmdId, const struct HksBlob *key, const struct HksParamSe… in EncryptAndDecrypt() argument
197 int32_t ret = CheckLocalCipherParams(cmdId, key, paramSet, inputText, outputText); in EncryptAndDecrypt()
201 bool isEncrypt = (cmdId == HKS_CMD_ID_ENCRYPT); in EncryptAndDecrypt()
206 if (cmdId == HKS_CMD_ID_ENCRYPT) { in EncryptAndDecrypt()
214 … "local engine EncryptDecrypt cmdId = %" LOG_PUBLIC "u failed, ret:%" LOG_PUBLIC "x!", cmdId, ret) in EncryptAndDecrypt()
251 static int32_t CheckLocalSignVerifyParams(uint32_t cmdId, const struct HksBlob *key, const struct H… in CheckLocalSignVerifyParams() argument
272 ret = HksLocalCheckSignVerifyParams(cmdId, keySize, paramSet, srcData, signature); in CheckLocalSignVerifyParams()
/base/security/huks/frameworks/huks_standard/main/os_dependency/ipc/include/
Dhks_ipc_slice.h27 int32_t HksSliceDataEntry(uint32_t cmdId, const struct HksBlob *key, const struct HksParamSet *para…
/base/startup/init/services/init/include/
Dinit_cmdexecutor.h30 int cmdId; member
/base/startup/init/interfaces/innerkits/init_module_engine/include/
Dinit_cmdexecutor.h30 int cmdId; member
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/include/
Dcert_manager_key_operation.h53 int32_t CmKeyOpProcess(enum CmSignVerifyCmd cmdId, const struct CmContext *context, const struct Cm…
/base/startup/init/services/modules/reboot/
Dreboot_static.c91 int cmdId = AddCmdExecutor(currInfo->cmd, executor); in SetParamCmdInfo() local
92 PLUGIN_CHECK(cmdId > 0, break, "Failed to add cmd %s", cmd); in SetParamCmdInfo()
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
Dcert_manager_key_operation.c403 int32_t CmKeyOpProcess(enum CmSignVerifyCmd cmdId, const struct CmContext *context, const struct Cm… in CmKeyOpProcess() argument
409 return (cmdId == SIGN_VERIFY_CMD_ABORT) ? CM_SUCCESS : CMR_ERROR_NOT_EXIST; in CmKeyOpProcess()
420 switch (cmdId) { in CmKeyOpProcess()
/base/security/huks/services/huks_standard/huks_engine/main/core/src/
Dhks_core_service.c380 static int32_t SignVerify(uint32_t cmdId, const struct HksBlob *key, const struct HksParamSet *para… in SignVerify() argument
383 int32_t ret = HksCoreCheckSignVerifyParams(cmdId, key, paramSet, srcData, signature); in SignVerify()
385 … to check signature or verify params, cmdId:%" LOG_PUBLIC "x, ret:%" LOG_PUBLIC "x!\n", cmdId, ret) in SignVerify()
406 if (cmdId == HKS_CMD_ID_SIGN) { in SignVerify()
444 static int32_t Cipher(uint32_t cmdId, const struct HksBlob *key, const struct HksParamSet *paramSet, in Cipher() argument
447 int32_t ret = HksCoreCheckCipherParams(cmdId, key, paramSet, inData, outData); in Cipher()
449 …"hks core check cipher params failed, cmdId:%" LOG_PUBLIC "x, ret:%" LOG_PUBLIC "x!\n", cmdId, ret) in Cipher()
463 bool isEncrypt = (cmdId == HKS_CMD_ID_ENCRYPT); in Cipher()
475 if (cmdId == HKS_CMD_ID_ENCRYPT) { in Cipher()
484 HKS_IF_NOT_SUCC_LOGE(ret, "cipher[%" LOG_PUBLIC "x] failed!", cmdId) in Cipher()