Home
last modified time | relevance | path

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

/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/profile/model/
H A DValidity.java32 private Long notBefore; field in Validity
49 ValidateUtils.throwIfMatches(this.notBefore == 0L, ERROR.SIGN_ERROR, "Require notBefore in validity!"); in enforceValid()
51 ValidateUtils.throwIfMatches(this.notBefore >= this.notAfter, ERROR.SIGN_ERROR, in enforceValid()
52 "Require notBefore less than notAfter in validity!"); in enforceValid()
56 return notBefore; in getNotBefore()
59 public void setNotBefore(Long notBefore) { in setNotBefore() argument
60 this.notBefore = notBefore; in setNotBefore()
/developtools/hapsigner/hapsigntool_cpp_test/unittest/signProfile/
H A Dpkcs7_data_test.cpp366 ASN1_TIME* notBefore = NULL;
369 int result = PKCS7Data::CheckSignTimeInValidPeriod(signTime, notBefore, notAfter);
384 ASN1_TIME notBefore{ 0 };
385 notBefore.data = NULL;
388 int result = PKCS7Data::CheckSignTimeInValidPeriod(signTime, &notBefore, notAfter);
404 ASN1_TIME notBefore{ 0 };
405 notBefore.data = data;
408 int result = PKCS7Data::CheckSignTimeInValidPeriod(signTime, &notBefore, notAfter);
424 ASN1_TIME notBefore{ 0 };
425 notBefore
[all...]
/developtools/hapsigner/hapsigntool_cpp/utils/src/
H A Dverify_cert_openssl_utils.cpp136 const ASN1_TIME* notBefore = X509_get0_notBefore(certsChain[i]); in VerifyCertChainPeriodOfValidity() local
138 if (!CheckSignTimeInValidPeriod(signTime, notBefore, notAfter)) { in VerifyCertChainPeriodOfValidity()
164 const ASN1_TIME* notBefore, in CheckSignTimeInValidPeriod()
167 if (!CheckAsn1TimeIsValid(notBefore) || !CheckAsn1TimeIsValid(notAfter)) { in CheckSignTimeInValidPeriod()
175 if (ASN1_TIME_compare(notBefore, signTime->value.asn1_string) > 0 || in CheckSignTimeInValidPeriod()
178 "notBefore:%s, notAfter : %s", in CheckSignTimeInValidPeriod()
179 signTime->value.asn1_string->data, notBefore->data, notAfter->data); in CheckSignTimeInValidPeriod()
183 "notBefore:%s, notAfter : %s", in CheckSignTimeInValidPeriod()
185 notBefore->data, notAfter->data); in CheckSignTimeInValidPeriod()
163 CheckSignTimeInValidPeriod(const ASN1_TYPE* signTime, const ASN1_TIME* notBefore, const ASN1_TIME* notAfter) CheckSignTimeInValidPeriod() argument
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/cert/
H A DCertBuilder.java83 LocalDateTime notBefore = LocalDateTime.now(); in CertBuilder()
84 LocalDateTime notAfter = notBefore.plusDays(certExpire); in CertBuilder()
94 issuer, CertUtils.randomSerial(), Date.from(notBefore.atZone(ZoneId.systemDefault()).toInstant()), in CertBuilder()
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/utils/
H A DKeyStoreHelper.java307 LocalDateTime notBefore = LocalDateTime.now(); in createKeyOnly()
308 LocalDateTime notAfter = notBefore.plusYears(NUM_ONE_HUNDRED); in createKeyOnly()
313 Date.from(notBefore.atZone(ZoneId.systemDefault()).toInstant()), in createKeyOnly()
/developtools/hapsigner/hapsigntool_cpp/profile/src/
H A Dpkcs7_data.cpp305 const ASN1_TIME* notBefore, const ASN1_TIME* notAfter) in CheckSignTimeInValidPeriod()
307 if (notBefore == nullptr || notBefore->data == nullptr || notAfter == nullptr || notAfter->data == nullptr) { in CheckSignTimeInValidPeriod()
319 if (ASN1_TIME_compare(notBefore, signTime->value.asn1_string) > 0 || in CheckSignTimeInValidPeriod()
321 SIGNATURE_TOOLS_LOGE("sign time invalid, signTime: %s, notBefore: %s, " in CheckSignTimeInValidPeriod()
323 GetASN1Time(notBefore).c_str(), GetASN1Time(notAfter).c_str()); in CheckSignTimeInValidPeriod()
460 const ASN1_TIME* notBefore = X509_get0_notBefore(cert); in CheckSginerInfoSignTimeInCertChainValidPeriod() local
462 if (CheckSignTimeInValidPeriod(signTime, notBefore, notAfter) < 0) { in CheckSginerInfoSignTimeInCertChainValidPeriod()
304 CheckSignTimeInValidPeriod(const ASN1_TYPE* signTime, const ASN1_TIME* notBefore, const ASN1_TIME* notAfter) CheckSignTimeInValidPeriod() argument
H A Dprofile_verify.cpp179 GetInt64IfExist(obj[VALUE_VALIDITY], VALUE_NOT_BEFORE, out.notBefore); in ParseValidity()
/developtools/hapsigner/hapsigntool_cpp/utils/include/
H A Dverify_cert_openssl_utils.h42 const ASN1_TIME* notBefore, const ASN1_TIME* notAfter);
/developtools/hapsigner/hapsigntool_cpp/profile/include/
H A Dprofile_info.h64 int64_t notBefore = 0; member
H A Dpkcs7_data.h104 const ASN1_TIME* notBefore, const ASN1_TIME* notAfter);

Completed in 6 milliseconds