Home
last modified time | relevance | path

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

/developtools/hapsigner/hapsigntool_cpp_test/unittest/signProfile/
H A Dpkcs7_data_test.cpp365 ASN1_TYPE* signTime = NULL;
369 int result = PKCS7Data::CheckSignTimeInValidPeriod(signTime, notBefore, notAfter);
383 ASN1_TYPE* signTime = NULL;
388 int result = PKCS7Data::CheckSignTimeInValidPeriod(signTime, &notBefore, notAfter);
403 ASN1_TYPE* signTime = NULL;
408 int result = PKCS7Data::CheckSignTimeInValidPeriod(signTime, &notBefore, notAfter);
423 ASN1_TYPE* signTime = NULL;
429 int result = PKCS7Data::CheckSignTimeInValidPeriod(signTime, &notBefore, &notAfter);
444 ASN1_TYPE* signTime = NULL;
450 int result = PKCS7Data::CheckSignTimeInValidPeriod(signTime,
[all...]
/developtools/hapsigner/hapsigntool_cpp/utils/src/
H A Dverify_cert_openssl_utils.cpp126 const ASN1_TYPE* signTime) in VerifyCertChainPeriodOfValidity()
138 if (!CheckSignTimeInValidPeriod(signTime, notBefore, notAfter)) { in VerifyCertChainPeriodOfValidity()
163 bool VerifyCertOpensslUtils::CheckSignTimeInValidPeriod(const ASN1_TYPE* signTime, in CheckSignTimeInValidPeriod() argument
171 if (!CheckAsn1TypeIsValid(signTime)) { in CheckSignTimeInValidPeriod()
172 SIGNATURE_TOOLS_LOGE("signTime is invalid"); in CheckSignTimeInValidPeriod()
175 if (ASN1_TIME_compare(notBefore, signTime->value.asn1_string) > 0 || in CheckSignTimeInValidPeriod()
176 ASN1_TIME_compare(notAfter, signTime->value.asn1_string) < 0) { in CheckSignTimeInValidPeriod()
177 SIGNATURE_TOOLS_LOGE("Out of valid period, signTime: %s, " in CheckSignTimeInValidPeriod()
179 signTime->value.asn1_string->data, notBefore->data, notAfter->data); in CheckSignTimeInValidPeriod()
182 SIGNATURE_TOOLS_LOGD("signTime typ in CheckSignTimeInValidPeriod()
125 VerifyCertChainPeriodOfValidity(CertChain& certsChain, const ASN1_TYPE* signTime) VerifyCertChainPeriodOfValidity() argument
[all...]
H A Dverify_hap_openssl_utils.cpp120 ASN1_TYPE* signTime = PKCS7_get_signed_attribute(signInfo, NID_pkcs9_signingTime); in VerifyCertChain() local
121 if (!VerifyCertOpensslUtils::VerifyCertChainPeriodOfValidity(certsChain, signTime)) { in VerifyCertChain()
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/utils/
H A DCertChainUtils.java59 BigInteger serial, Date signTime) throws GeneralSecurityException, VerifyException { in getCertPath()
68 params.setDate(signTime); in getCertPath()
91 * @param signTime signing time
95 X509Certificate root, Date signTime) throws VerifyException { in verifyCertChain()
100 CertPath certPath = getCertPath(certificates, trustStore, issuer, serial, signTime); in verifyCertChain()
103 params.setDate(signTime); in verifyCertChain()
58 getCertPath(List<X509Certificate> certificates, KeyStore trustStore, X500Principal issuer, BigInteger serial, Date signTime) getCertPath() argument
94 verifyCertChain(List<X509Certificate> certificates, X500Principal issuer, BigInteger serial, X509Certificate root, Date signTime) verifyCertChain() argument
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/profile/
H A DVerifyHelper.java147 Date signTime = getSignTime(signer); in verify()
151 certificates.get(certificates.size() - 1), signTime); in verify()
168 Date signTime = Date.from(LocalDateTime.now().atZone(ZoneId.systemDefault()).toInstant()); in getSignTime()
173 LOGGER.warn("sign information does not include signTime"); in getSignTime()
174 return signTime; in getSignTime()
180 return signTime; in getSignTime()
184 signTime = Time.getInstance(objectAt).getDate(); in getSignTime()
186 return signTime; in getSignTime()
H A DProfileSignTool.java151 Attribute signTime = new Attribute(PKCSObjectIdentifiers.pkcs_9_at_signingTime, in generatePKCS9Attributes()
157 vector.add(signTime); in generatePKCS9Attributes()
/developtools/hapsigner/hapsigntool_cpp/utils/include/
H A Dverify_cert_openssl_utils.h41 DLL_EXPORT static bool CheckSignTimeInValidPeriod(const ASN1_TYPE* signTime,
52 const ASN1_TYPE* signTime);
/developtools/hapsigner/hapsigntool_cpp/profile/src/
H A Dpkcs7_data.cpp304 int PKCS7Data::CheckSignTimeInValidPeriod(const ASN1_TYPE* signTime, in CheckSignTimeInValidPeriod() argument
312 if (signTime == nullptr || signTime->value.asn1_string == nullptr || in CheckSignTimeInValidPeriod()
313 signTime->value.asn1_string->data == nullptr) { in CheckSignTimeInValidPeriod()
318 ASN1_TIME_set_string(tm, (reinterpret_cast<const char*>(signTime->value.asn1_string->data))); in CheckSignTimeInValidPeriod()
319 if (ASN1_TIME_compare(notBefore, signTime->value.asn1_string) > 0 || in CheckSignTimeInValidPeriod()
320 ASN1_TIME_compare(notAfter, signTime->value.asn1_string) < 0) { in CheckSignTimeInValidPeriod()
321 SIGNATURE_TOOLS_LOGE("sign time invalid, signTime: %s, notBefore: %s, " in CheckSignTimeInValidPeriod()
457 ASN1_TYPE* signTime = PKCS7_get_signed_attribute(signerInfo, NID_pkcs9_signingTime); in CheckSginerInfoSignTimeInCertChainValidPeriod() local
462 if (CheckSignTimeInValidPeriod(signTime, notBefor in CheckSginerInfoSignTimeInCertChainValidPeriod()
[all...]
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/hap/sign/
H A DBcPkcs7Generator.java196 Attribute signTime = new Attribute(PKCSObjectIdentifiers.pkcs_9_at_signingTime, in generatePKCS9Attributes()
202 tab.put(signTime.getAttrType(), signTime); in generatePKCS9Attributes()
/developtools/hapsigner/hapsigntool_cpp/profile/include/
H A Dpkcs7_data.h103 static int CheckSignTimeInValidPeriod(const ASN1_TYPE* signTime,

Completed in 6 milliseconds