Home
last modified time | relevance | path

Searched refs:signAlg (Results 1 – 7 of 7) sorted by relevance

/base/security/huks/services/huks_standard/huks_engine/main/device_cert_manager/src/
Ddcm_attest.c522 if (IsValidTlv(cert->signAlg)) { in IsValidAttestCert()
530 if ((cert->signAlg.value.size != cert->tbs.signature.value.size) || in IsValidAttestCert()
531 …(HksMemCmp(cert->signAlg.value.data, cert->tbs.signature.value.data, cert->signAlg.value.size) != … in IsValidAttestCert()
567 ret += DcmAsn1ExtractTag(&val, &cert->signAlg, &val, ASN_1_TAG_TYPE_SEQ); in ParseAttestCert()
723 static void GetSignatureByAlg(uint32_t signAlg, struct HksAsn1Blob *sigature) in GetSignatureByAlg() argument
725 if (signAlg == HKS_ALG_RSA) { in GetSignatureByAlg()
728 } else if (signAlg == HKS_ALG_SM2) { in GetSignatureByAlg()
737 struct HksBlob *tbs, uint32_t signAlg) in CreateTbs() argument
743 GetSignatureByAlg(signAlg, &sigature); in CreateTbs()
874 …ignTbs(struct HksBlob *sig, const struct HksBlob *tbs, const struct HksBlob *key, uint32_t signAlg) in SignTbs() argument
[all …]
/base/security/device_auth/services/creds_manager/inc/
Dcreds_manager_defines.h82 Algorithm signAlg; member
/base/security/huks/services/huks_standard/huks_engine/main/device_cert_manager/include/
Ddcm_attest.h98 struct HksAsn1Obj signAlg; member
/base/security/device_auth/services/session_manager/src/session/v2/
Ddev_session_v2.c467 if (AddIntToJson(credInfo, FIELD_SIGN_ALG, cred->proof.certInfo.signAlg) != HC_SUCCESS) { in AddCertCredInfo()
519 …tic int32_t BuildPeerCertInfo(const char *pkInfoStr, const char *pkInfoSignHexStr, int32_t signAlg, in BuildPeerCertInfo() argument
540 peerCert->signAlg = signAlg; in BuildPeerCertInfo()
557 int32_t signAlg; in GetPeerCertInfo() local
558 if (GetIntFromJson(credInfo, FIELD_SIGN_ALG, &signAlg) != HC_SUCCESS) { in GetPeerCertInfo()
574 res = BuildPeerCertInfo(pkInfoStr, pkInfoSignHexStr, signAlg, peerCert); in GetPeerCertInfo()
/base/security/device_auth/services/creds_manager/src/account_related/
Daccount_related_creds_manager.c111 ret = GetLoaderInstance()->verify(&keyAlias, &certInfo->pkInfoStr, certInfo->signAlg, in VerifyPeerCertInfo()
237 certInfo->signAlg = P256; in GetCertInfo()
/base/security/device_auth/services/creds_manager/src/
Dcreds_manager.c728 if (AddIntToJson(out, FIELD_SIGN_ALG, certInfo->signAlg) != HC_SUCCESS) { in AddCertInfoToJson()
/base/security/device_auth/test/unittest/tdd_framework/unit_test/services/creds_manager/
Dcreds_manager_test.cpp576 certInfo->signAlg = GetAccountAuthTokenManager()->getAlgVersion(osAccountId, userId, deviceId); in GetCertInfo()