/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/profile/model/ |
H A D | Validity.java | 32 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 D | pkcs7_data_test.cpp | 366 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, ¬Before, notAfter); 404 ASN1_TIME notBefore{ 0 }; 405 notBefore.data = data; 408 int result = PKCS7Data::CheckSignTimeInValidPeriod(signTime, ¬Before, notAfter); 424 ASN1_TIME notBefore{ 0 }; 425 notBefore [all...] |
/developtools/hapsigner/hapsigntool_cpp/utils/src/ |
H A D | verify_cert_openssl_utils.cpp | 136 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 D | CertBuilder.java | 83 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 D | KeyStoreHelper.java | 307 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 D | pkcs7_data.cpp | 305 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 D | profile_verify.cpp | 179 GetInt64IfExist(obj[VALUE_VALIDITY], VALUE_NOT_BEFORE, out.notBefore); in ParseValidity()
|
/developtools/hapsigner/hapsigntool_cpp/utils/include/ |
H A D | verify_cert_openssl_utils.h | 42 const ASN1_TIME* notBefore, const ASN1_TIME* notAfter);
|
/developtools/hapsigner/hapsigntool_cpp/profile/include/ |
H A D | profile_info.h | 64 int64_t notBefore = 0; member
|
H A D | pkcs7_data.h | 104 const ASN1_TIME* notBefore, const ASN1_TIME* notAfter);
|