Home
last modified time | relevance | path

Searched refs:certLen (Results 1 – 2 of 2) sorted by relevance

/base/security/appverify/interfaces/innerkits/appverify/src/util/
Dhap_verify_openssl_utils.cpp448 int32_t certLen = i2d_X509(ptrX509, nullptr); in GetDerCert() local
449 if (certLen <= 0) { in GetDerCert()
450 HAPVERIFY_LOG_ERROR(LABEL, "certLen %{public}d, i2d_X509 failed", certLen); in GetDerCert()
454 std::unique_ptr<unsigned char[]> derCertificate = std::make_unique<unsigned char[]>(certLen); in GetDerCert()
455 int32_t base64CertLen = HapCertVerifyOpensslUtils::CalculateLenAfterBase64Encode(certLen); in GetDerCert()
465 int32_t len = EVP_EncodeBlock(base64Certificate.get(), derCertificate.get(), certLen); in GetDerCert()
Dhap_cert_verify_openssl_utils.cpp103 int32_t certLen = i2d_X509(cert, nullptr); in GetFingerprintBase64FromPemCert() local
104 if (certLen <= 0) { in GetFingerprintBase64FromPemCert()
105 HAPVERIFY_LOG_ERROR(LABEL, "certLen %{public}d, i2d_X509 failed", certLen); in GetFingerprintBase64FromPemCert()
111 std::unique_ptr<unsigned char[]> derCertificate = std::make_unique<unsigned char[]>(certLen); in GetFingerprintBase64FromPemCert()
122 SHA256_Update(&sha256, derCertificate.get(), certLen); in GetFingerprintBase64FromPemCert()