/base/security/certificate_framework/frameworks/adapter/v1.0/src/ |
H A D | x509_cert_chain_openssl_ex.c | 152 static CfResult GetCertChainFromCollection(const HcfX509CertChainBuildParameters *inParams, STACK_OF(X509) *certStack)
in GetCertChainFromCollection() argument 154 if (inParams->validateParameters.certCRLCollections == NULL) {
in GetCertChainFromCollection() 159 for (uint32_t i = 0; i < inParams->validateParameters.certCRLCollections->count; ++i) {
in GetCertChainFromCollection() 161 HcfCertCrlCollection *collection = inParams->validateParameters.certCRLCollections->data[i];
in GetCertChainFromCollection() 162 CfResult res = collection->selectCerts(collection, &(inParams->certMatchParameters), &retCerts);
in GetCertChainFromCollection() 170 LOGE("GetX509Cert from inParams failed!");
in GetCertChainFromCollection() 194 const HcfX509CertChainBuildParameters *inParams, STACK_OF(X509) *allCerts, STACK_OF(X509) *leafCerts)
in GetLeafCertsFromCertStack() 196 CfResult res = GetCertChainFromCollection(inParams, allCerts);
in GetLeafCertsFromCertStack() 193 GetLeafCertsFromCertStack( const HcfX509CertChainBuildParameters *inParams, STACK_OF(X509) *allCerts, STACK_OF(X509) *leafCerts) GetLeafCertsFromCertStack() argument
|
H A D | x509_cert_chain_openssl.c | 1864 static CfResult PackCertChain(const HcfX509CertChainBuildParameters *inParams, STACK_OF(X509) * out) in PackCertChain() argument 1873 CfResult res = GetLeafCertsFromCertStack(inParams, allCerts, leafCerts); in PackCertChain() 1886 if (ValidatCertChainX509(out, inParams->validateParameters)) { in PackCertChain() 1896 int maxdepth = inParams->maxlength < 0 ? allCertsLen : inParams->maxlength; in PackCertChain() 1903 if (ValidatCertChainX509(out, inParams->validateParameters)) { in PackCertChain() 1917 CfResult HcfX509CertChainByParamsSpiCreate(const HcfX509CertChainBuildParameters *inParams, HcfX509CertChainSpi **spi) in HcfX509CertChainByParamsSpiCreate() argument 1919 if (inParams == NULL || spi == NULL) { in HcfX509CertChainByParamsSpiCreate() 1930 CfResult res = PackCertChain(inParams, certStack); in HcfX509CertChainByParamsSpiCreate()
|
/base/security/device_auth/services/key_agree_sdk/src/ |
H A D | key_agree_session.c | 572 static int32_t CheckPeerProtocolVersion(SpekeSession *spekeSession, CJson *inParams) in CheckPeerProtocolVersion() argument 575 int32_t res = GetVersionFromJson(inParams, &curVersionPeer); in CheckPeerProtocolVersion() 588 static int32_t PakeConfirm(SpekeSession *spekeSession, CJson *inParams, KeyAgreeBlob *out) in PakeConfirm() argument 590 int32_t res = CheckPeerProtocolVersion(spekeSession, inParams); in PakeConfirm() 601 res = GetAuthIdPeerFromPayload(inParams, &(spekeSession->baseParam.idSelf), &(spekeSession->baseParam.idPeer)); in PakeConfirm() 606 res = ParsePakeResponseMessage(&(spekeSession->baseParam), inParams); in PakeConfirm() 624 static int32_t PakeServerConfirm(SpekeSession *spekeSession, CJson *inParams, KeyAgreeBlob *out) in PakeServerConfirm() argument 626 int32_t res = ParsePakeClientConfirmMessage(&(spekeSession->baseParam), inParams); in PakeServerConfirm() 631 res = GetAuthIdPeerFromPayload(inParams, &(spekeSession->baseParam.idSelf), &(spekeSession->baseParam.idPeer)); in PakeServerConfirm() 650 static int32_t PakeClientVerifyConfirm(SpekeSession *spekeSession, CJson *inParams, KeyAgreeBlo argument 668 ProcessStep(ProtocolStep step, SpekeSession *spekeSession, CJson *inParams, KeyAgreeBlob *out) ProcessStep() argument 712 CJson *inParams = NULL; ProcessSpekeSession() local [all...] |
/base/security/device_auth/services/frameworks/inc/hiview_adapter/ |
H A D | hisysevent_adapter.h | 91 #define DEV_AUTH_REPORT_UE_CALL_EVENT_BY_PARAMS(osAccountId, inParams, appId, funcName) 104 #define DEV_AUTH_REPORT_UE_CALL_EVENT_BY_PARAMS(osAccountId, inParams, appId, funcName) \ 105 DevAuthReportUeCallEventByParams(osAccountId, inParams, appId, funcName) 139 void DevAuthReportUeCallEventByParams(int32_t osAccountId, const char *inParams, const char *appId,
|
/base/security/certificate_framework/test/fuzztest/v1.0/x509certchain_fuzzer/ |
H A D | x509certchain_fuzzer.cpp | 684 HcfX509CertChainBuildParameters inParams = {}; in CreateOneCertChainBuildResultCreate() local 692 CfResult ret = BuildX509CertMatchParamsDataNoCRL(&inStream, &inParams.validateParameters); in CreateOneCertChainBuildResultCreate() 697 inParams.maxlength = MAX_DEPTH; in CreateOneCertChainBuildResultCreate() 702 inParams.certMatchParameters.issuer = &issue; in CreateOneCertChainBuildResultCreate() 703 inParams.certMatchParameters.minPathLenConstraint = -1; in CreateOneCertChainBuildResultCreate() 705 ret = HcfCertChainBuildResultCreate(&inParams, &returnObj); in CreateOneCertChainBuildResultCreate() 710 ret = certChain->validate(certChain, &inParams.validateParameters, &returnObj->validateResult); in CreateOneCertChainBuildResultCreate() 723 FreeX509CertMatchParamsData(&inParams.validateParameters); in CreateOneCertChainBuildResultCreate() 738 HcfX509CertChainBuildParameters inParams = {}; in X509BuildResultCreateFuzzTest() local 744 CfResult ret = BuildX509CertMatchParamsDataNoCRL(&inStream, &inParams in X509BuildResultCreateFuzzTest() [all...] |
/base/security/certificate_framework/frameworks/adapter/v1.0/inc/ |
H A D | x509_cert_chain_openssl.h | 30 CfResult HcfX509CertChainByParamsSpiCreate(const HcfX509CertChainBuildParameters *inParams, HcfX509CertChainSpi **spi);
|
H A D | x509_cert_chain_openssl_ex.h | 42 const HcfX509CertChainBuildParameters *inParams, STACK_OF(X509) *allCerts, STACK_OF(X509) *leafCerts);
|
/base/security/device_auth/deps_adapter/key_management_adapter/impl/src/ |
H A D | huks_adapter.c | 69 static int32_t BaseCheckParams(const Uint8Buff **inParams, const char **paramTags, uint32_t len) in BaseCheckParams() argument 72 CHECK_PTR_RETURN_HAL_ERROR_CODE(inParams[i], paramTags[i]); in BaseCheckParams() 73 CHECK_PTR_RETURN_HAL_ERROR_CODE(inParams[i]->val, paramTags[i]); in BaseCheckParams() 74 CHECK_LEN_ZERO_RETURN_ERROR_CODE(inParams[i]->length, paramTags[i]); in BaseCheckParams() 428 const Uint8Buff *inParams[] = { message, outHmac }; in CheckHmacParams() local 430 res = BaseCheckParams(inParams, paramTags, CAL_ARRAY_SIZE(inParams)); in CheckHmacParams() 540 const Uint8Buff *inParams[] = { message, outHmac }; in CheckHmacWithThreeStageParams() local 542 res = BaseCheckParams(inParams, paramTags, CAL_ARRAY_SIZE(inParams)); in CheckHmacWithThreeStageParams() 662 const Uint8Buff *inParams[] = { salt, outHkdf }; CheckHkdfParams() local 761 const Uint8Buff *inParams[] = { pskKeyAlias, outPsk }; CheckPskParams() local 969 const Uint8Buff *inParams[] = { plain, outCipher }; CheckAesGcmEncryptParam() local 1057 const Uint8Buff *inParams[] = { cipher, outPlain }; CheckAesGcmDecryptParam() local 1460 const Uint8Buff *inParams[] = { base, exp, outNum }; BigNumExpMod() local 1807 const Uint8Buff *inParams[] = { message, outSignature }; CheckSignParams() local 1900 const Uint8Buff *inParams[] = { message, signature }; CheckVerifyParams() local 2212 const Uint8Buff *inParams[] = { authToken }; CheckImportSymmetricKeyParams() local [all...] |
/base/security/certificate_framework/test/unittest/v1.0/src/ |
H A D | crypto_x509_cert_chain_test.cpp | 1845 HcfX509CertChainBuildParameters inParams; in HWTEST_F() local 1846 memset_s(&inParams, sizeof(HcfX509CertChainBuildParameters), 0, sizeof(HcfX509CertChainBuildParameters)); in HWTEST_F() 1851 inParams.maxlength = -1; in HWTEST_F() 1858 BuildX509CertMatchParamsData(&inStream, NULL, &inParams.validateParameters); in HWTEST_F() 1863 inParams.certMatchParameters.issuer = &issue; in HWTEST_F() 1864 inParams.certMatchParameters.minPathLenConstraint = -1; in HWTEST_F() 1866 result = HcfX509CertChainByParamsSpiCreate(&inParams, &spi); in HWTEST_F() 1871 // test inParams.maxlength in HWTEST_F() 1872 inParams.maxlength = 2; in HWTEST_F() 1873 result = HcfX509CertChainByParamsSpiCreate(&inParams, in HWTEST_F() 1884 HcfX509CertChainBuildParameters inParams; HWTEST_F() local 1901 HcfX509CertChainBuildParameters inParams; HWTEST_F() local 1960 HcfX509CertChainBuildParameters inParams; HWTEST_F() local 2022 HcfX509CertChainBuildParameters inParams; HWTEST_F() local [all...] |
/base/security/device_auth/services/frameworks/src/hiview_adapter/ |
H A D | hisysevent_adapter.cpp | 113 void DevAuthReportUeCallEventByParams(int32_t osAccountId, const char *inParams, const char *appId, in DevAuthReportUeCallEventByParams() argument 117 CJson *params = CreateJsonFromString(inParams); in DevAuthReportUeCallEventByParams()
|
/base/security/certificate_framework/interfaces/inner_api/certificate/ |
H A D | x509_cert_chain.h | 72 const HcfX509CertChainBuildParameters *inParams, HcfX509CertChainBuildResult **returnObj);
|
/base/security/certificate_framework/frameworks/core/v1.0/certificate/ |
H A D | x509_cert_chain.c | 196 const HcfX509CertChainBuildParameters *inParams, HcfX509CertChainBuildResult **returnObj) in HcfCertChainBuildResultCreate() 198 if (inParams == NULL || returnObj == NULL) { in HcfCertChainBuildResultCreate() 210 res = func->createByParamsFunc(inParams, &spiObj); in HcfCertChainBuildResultCreate() 195 HcfCertChainBuildResultCreate( const HcfX509CertChainBuildParameters *inParams, HcfX509CertChainBuildResult **returnObj) HcfCertChainBuildResultCreate() argument
|