Home
last modified time | relevance | path

Searched refs:notBefore (Results 1 - 17 of 17) sorted by relevance

/base/security/appverify/interfaces/innerkits/appverify/src/util/
H A Dhap_cert_verify_openssl_utils.cpp384 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 Dcj_cert_manager_ffi.h51 char *notBefore; member
/base/security/certificate_framework/test/unittest/v1.0/src/
H A Dcrypto_x509_certificate_test_part3.cpp734 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 Dprovision_info.h68 int64_t notBefore = 0; member
/base/security/appverify/interfaces/innerkits/appverify_lite/include/
H A Dapp_verify_pub.h74 int32_t notBefore; member
/base/security/certificate_manager/interfaces/kits/cj/src/
H A Dcj_cert_manager_ffi.c141 retObj->notBefore = strdup(info.notBefore); in FfiCertManagerGetUserCertInfo()
/base/security/appverify/interfaces/innerkits/appverify_lite/src/
H A Dapp_provision.c136 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 Dhap_cert_verify_openssl_utils.h60 const ASN1_TIME* notBefore, const ASN1_TIME* notAfter);
/base/security/certificate_manager/test/unittest/src/
H A Dcm_test_common.cpp222 (strcmp(firstCert->notBefore, secondCert->notBefore) == 0) && in CompareCertInfo()
/base/security/certificate_framework/frameworks/adapter/v1.0/src/
H A Dx509_certificate_openssl.c1795 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 Dcm_type.h277 char notBefore[MAX_LEN_NOT_BEFORE]; member
/base/security/certificate_manager/interfaces/kits/napi/include/
H A Dcm_napi_common.h44 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 Ddcm_attest.c449 struct DataTime notBefore = {0}; in SetAttestCertValid() local
453 GenerateSysDateTime((uint32_t)tmpSec, &notBefore); 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, &notBefore); in SetAttestCertValid()
[all...]
/base/security/certificate_manager/interfaces/kits/napi/src/
H A Dcm_napi_common.cpp399 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 Dcm_ipc_client_serialization.c151 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 Dprovision_verify.cpp216 GetInt64IfExist(validity, VALUE_NOT_BEFORE, out.notBefore); in ParseValidity()
/base/security/appverify/interfaces/innerkits/appverify/test/unittest/src/
H A Dprovision_verify_test.cpp501 ASSERT_EQ(info.validity.notBefore, 1262275200);

Completed in 16 milliseconds