/base/security/appverify/interfaces/innerkits/appverify/src/util/ |
H A D | hap_cert_verify_openssl_utils.cpp | 384 const ASN1_TIME* notBefore = X509_get0_notBefore(certsChain[i]);
in VerifyCertChainPeriodOfValidity() local 386 if (!CheckSignTimeInValidPeriod(signTime, notBefore, notAfter)) {
in VerifyCertChainPeriodOfValidity() 412 const ASN1_TIME* notBefore, const ASN1_TIME* notAfter)
in CheckSignTimeInValidPeriod() 414 if (!CheckAsn1TimeIsValid(notBefore) || !CheckAsn1TimeIsValid(notAfter)) {
in CheckSignTimeInValidPeriod() 423 if (ASN1_TIME_compare(notBefore, signTime->value.asn1_string) > 0 ||
in CheckSignTimeInValidPeriod() 425 HAPVERIFY_LOG_ERROR("Out of valid period, signTime: %{public}s, notBefore: %{public}s, "
in CheckSignTimeInValidPeriod() 426 "notAfter: %{public}s", signTime->value.asn1_string->data, notBefore->data, notAfter->data);
in CheckSignTimeInValidPeriod() 429 HAPVERIFY_LOG_DEBUG("signTime type: %{public}d, data: %{public}s, notBefore: %{public}s, "
in CheckSignTimeInValidPeriod() 430 "notAfter: %{public}s", signTime->type, signTime->value.asn1_string->data, notBefore->data, notAfter->data);
in CheckSignTimeInValidPeriod() 411 CheckSignTimeInValidPeriod(const ASN1_TYPE* signTime, const ASN1_TIME* notBefore, const ASN1_TIME* notAfter) CheckSignTimeInValidPeriod() argument
|
/base/security/certificate_manager/interfaces/kits/cj/include/ |
H A D | cj_cert_manager_ffi.h | 51 char *notBefore; member
|
/base/security/certificate_framework/test/unittest/v1.0/src/ |
H A D | crypto_x509_certificate_test_part3.cpp | 734 pKeyValid->notBefore = reinterpret_cast<ASN1_GENERALIZEDTIME *>(CfMalloc(sizeof(ASN1_GENERALIZEDTIME), 0)); in HWTEST_F() 735 ASSERT_NE(pKeyValid->notBefore, nullptr); in HWTEST_F() 766 pKeyValid->notBefore = reinterpret_cast<ASN1_GENERALIZEDTIME *>(CfMalloc(sizeof(ASN1_GENERALIZEDTIME), 0)); in HWTEST_F() 767 ASSERT_NE(pKeyValid->notBefore, nullptr); in HWTEST_F() 768 pKeyValid->notBefore->data = (unsigned char *)strdup(g_testPrivateKeyValid); in HWTEST_F() 769 ASSERT_NE(pKeyValid->notBefore->data, nullptr); in HWTEST_F() 771 pKeyValid->notBefore->length = strlen(g_testPrivateKeyValid); in HWTEST_F() 788 CfFree(pKeyValid->notBefore->data); in HWTEST_F() 789 pKeyValid->notBefore->data = nullptr; in HWTEST_F() 790 CfFree(pKeyValid->notBefore); in HWTEST_F() [all...] |
/base/security/appverify/interfaces/innerkits/appverify/include/provision/ |
H A D | provision_info.h | 68 int64_t notBefore = 0;
member
|
/base/security/appverify/interfaces/innerkits/appverify_lite/include/ |
H A D | app_verify_pub.h | 74 int32_t notBefore; member
|
/base/security/certificate_manager/interfaces/kits/cj/src/ |
H A D | cj_cert_manager_ffi.c | 141 retObj->notBefore = strdup(info.notBefore); in FfiCertManagerGetUserCertInfo()
|
/base/security/appverify/interfaces/innerkits/appverify_lite/src/ |
H A D | app_provision.c | 136 cJSON *notBefore = cJSON_GetObjectItem(jsonObj, "not-before"); in GetProfValidity() local 137 if (notBefore == NULL) { in GetProfValidity() 141 profVal->notBefore = notBefore->valueint; in GetProfValidity()
|
/base/security/appverify/interfaces/innerkits/appverify/include/util/ |
H A D | hap_cert_verify_openssl_utils.h | 60 const ASN1_TIME* notBefore, const ASN1_TIME* notAfter);
|
/base/security/certificate_manager/test/unittest/src/ |
H A D | cm_test_common.cpp | 222 (strcmp(firstCert->notBefore, secondCert->notBefore) == 0) && in CompareCertInfo()
|
/base/security/certificate_framework/frameworks/adapter/v1.0/src/ |
H A D | x509_certificate_openssl.c | 1795 if (pKeyValid == NULL || pKeyValid->notBefore == NULL || pKeyValid->notAfter == NULL) { in ComparePrivateKeyValidX509Openssl() 1802 char *notBefore = Asn1TimeToStr(pKeyValid->notBefore); in ComparePrivateKeyValidX509Openssl() local 1805 if (notBefore == NULL || notAfter == NULL) { in ComparePrivateKeyValidX509Openssl() 1807 CfFree(notBefore); in ComparePrivateKeyValidX509Openssl() 1811 if (privateKeyValid->size < DATETIME_LEN || strlen(notBefore) < DATETIME_LEN || strlen(notAfter) < DATETIME_LEN) { in ComparePrivateKeyValidX509Openssl() 1813 CfFree(notBefore); in ComparePrivateKeyValidX509Openssl() 1817 if (strncmp((const char *)privateKeyValid->data, (const char *)notBefore, DATETIME_LEN) >= 0 && in ComparePrivateKeyValidX509Openssl() 1821 CfFree(notBefore); in ComparePrivateKeyValidX509Openssl()
|
/base/security/certificate_manager/interfaces/innerkits/cert_manager_standard/main/include/ |
H A D | cm_type.h | 277 char notBefore[MAX_LEN_NOT_BEFORE]; member
|
/base/security/certificate_manager/interfaces/kits/napi/include/ |
H A D | cm_napi_common.h | 44 static const std::string CM_CERT_PROPERTY_BEFORE = "notBefore"; 190 napi_value notBefore; member
|
/base/security/huks/services/huks_standard/huks_engine/main/device_cert_manager/src/ |
H A D | dcm_attest.c | 449 struct DataTime notBefore = {0};
in SetAttestCertValid() local 453 GenerateSysDateTime((uint32_t)tmpSec, ¬Before);
in SetAttestCertValid() 454 HKS_LOG_I("notBefore:"
in SetAttestCertValid() 456 notBefore.year, notBefore.month, notBefore.day, notBefore.hour, notBefore.min, notBefore.seconds);
in SetAttestCertValid() 457 GetTimeStampTee(valid->start, ¬Before);
in SetAttestCertValid() [all...] |
/base/security/certificate_manager/interfaces/kits/napi/src/ |
H A D | cm_napi_common.cpp | 399 NAPI_CALL(env, napi_create_string_latin1(env, static_cast<const char *>(certInfo->notBefore), in GenerateCertInfo() 400 NAPI_AUTO_LENGTH, &cInfVal.notBefore)); in GenerateCertInfo() 422 NAPI_CALL(env, napi_set_named_property(env, elem, CM_CERT_PROPERTY_BEFORE.c_str(), cInfVal.notBefore)); in GenerateCertInfo()
|
/base/security/certificate_manager/frameworks/cert_manager_standard/main/os_dependency/cm_ipc/src/ |
H A D | cm_ipc_client_serialization.c | 151 int32_t notBeforeLen = GetX509NotBefore(x509cert, cInfo->notBefore, MAX_LEN_NOT_BEFORE); in GetInfoFromX509Cert() 153 CM_LOG_E("get cert notBefore failed"); in GetInfoFromX509Cert()
|
/base/security/appverify/interfaces/innerkits/appverify/src/provision/ |
H A D | provision_verify.cpp | 216 GetInt64IfExist(validity, VALUE_NOT_BEFORE, out.notBefore);
in ParseValidity()
|
/base/security/appverify/interfaces/innerkits/appverify/test/unittest/src/ |
H A D | provision_verify_test.cpp | 501 ASSERT_EQ(info.validity.notBefore, 1262275200);
|