/ohos5.0/base/security/appverify/interfaces/innerkits/appverify/include/common/ |
H A D | hap_byte_buffer.h | 37 DLL_EXPORT HapByteBuffer(); 40 DLL_EXPORT ~HapByteBuffer(); 46 DLL_EXPORT bool GetInt32(int32_t& value); 52 DLL_EXPORT int32_t GetCapacity() const; 53 DLL_EXPORT int32_t GetPosition() const; 54 DLL_EXPORT int32_t GetLimit() const; 57 DLL_EXPORT void SetLimit(int32_t lim); 59 DLL_EXPORT void Slice(); 60 DLL_EXPORT int32_t Remaining() const; 61 DLL_EXPORT bool HasRemaining() const; [all …]
|
H A D | random_access_file.h | 34 DLL_EXPORT RandomAccessFile(); 35 DLL_EXPORT ~RandomAccessFile(); 36 DLL_EXPORT bool Init(const std::string& filePath, bool readFile = false); 37 DLL_EXPORT bool InitWithFd(const int32_t fileFd); 38 DLL_EXPORT long long GetLength() const; 39 DLL_EXPORT long long ReadFileFullyFromOffset(HapByteBuffer& buffer, long long offset); 40 DLL_EXPORT long long ReadFileFullyFromOffset(char buf[], long long offset, int32_t bufCapacity);
|
H A D | export_define.h | 19 #define DLL_EXPORT __attribute__ ((visibility ("default"))) macro 22 #define DLL_EXPORT macro
|
H A D | hap_byte_buffer_data_source.h | 28 DLL_EXPORT HapByteBufferDataSource(HapByteBuffer& hapBuffer); 29 DLL_EXPORT ~HapByteBufferDataSource();
|
/ohos5.0/base/security/appverify/interfaces/innerkits/appverify/include/util/ |
H A D | hap_cert_verify_openssl_utils.h | 32 DLL_EXPORT static X509* GetX509CertFromPemString(const std::string& pemString); 36 DLL_EXPORT static void ClearCertVisitSign(CertSign& certVisitSign); 38 DLL_EXPORT static bool CertVerify(X509* cert, const X509* issuerCert); 40 DLL_EXPORT static bool GetIssuerFromX509(const X509* cert, std::string& issuer); 49 DLL_EXPORT static bool X509NameCompare(const X509_NAME* a, const X509_NAME* b); 51 DLL_EXPORT static int32_t CalculateLenAfterBase64Encode(int32_t len); 55 DLL_EXPORT static X509* FindCertOfIssuer(X509* cert, CertSign& certVisitSign); 56 DLL_EXPORT static std::string GetDnToString(X509_NAME* name); 59 DLL_EXPORT static bool CheckSignTimeInValidPeriod(const ASN1_TYPE* signTime, 61 DLL_EXPORT static bool CheckAsn1TimeIsValid(const ASN1_TIME* asn1Time); [all …]
|
H A D | hap_signing_block_utils.h | 58 DLL_EXPORT static bool FindHapSignature(RandomAccessFile& hapFile, SignatureInfo& signInfo); 64 DLL_EXPORT static const long long HAP_SIG_BLOCK_MAGIC_HIGH_OLD; 65 DLL_EXPORT static const long long HAP_SIG_BLOCK_MAGIC_LOW_OLD; 66 DLL_EXPORT static const long long HAP_SIG_BLOCK_MAGIC_HIGH; 67 DLL_EXPORT static const long long HAP_SIG_BLOCK_MAGIC_LOW; 68 DLL_EXPORT static const int32_t ZIP_HEAD_OF_SIGNING_BLOCK_LENGTH; 69 DLL_EXPORT static const int32_t ZIP_EOCD_SEGMENT_FLAG; 88 DLL_EXPORT static bool FindEocdInSearchBuffer(HapByteBuffer& zipContents, int& offset); 95 DLL_EXPORT static bool ClassifyHapSubSigningBlock(SignatureInfo& signInfo, 98 DLL_EXPORT static bool ComputeDigestsWithOptionalBlock(const DigestParameter& digestParam, [all …]
|
H A D | hap_verify_openssl_utils.h | 52 DLL_EXPORT static bool ParsePkcs7Package(const unsigned char packageData[], 54 DLL_EXPORT static bool GetCertChains(PKCS7* p7, Pkcs7Context& pkcs7Context); 55 DLL_EXPORT static bool VerifyPkcs7(Pkcs7Context& pkcs7Context); 56 …DLL_EXPORT static bool GetPublickeys(const CertChain& signCertChain, std::vector<std::string>& Sig… 57 …DLL_EXPORT static bool GetSignatures(const CertChain& signCertChain, std::vector<std::string>& Sig… 64 DLL_EXPORT static int32_t GetDigestAlgorithmId(int32_t signAlgorithm); 68 DLL_EXPORT static bool VerifyPkcs7SignedData(Pkcs7Context& pkcs7Context); 69 DLL_EXPORT static bool VerifySignInfo(STACK_OF(PKCS7_SIGNER_INFO)* signerInfoStack, 72 DLL_EXPORT static bool GetDerCert(X509* ptrX509, std::vector<std::string>& SignatureVec); 74 …DLL_EXPORT static bool VerifyShaWithRsaPss(const PKCS7_SIGNER_INFO* signInfo, EVP_PKEY* pkey, bool… [all …]
|
H A D | digest_parameter.h | 27 DLL_EXPORT DigestParameter(); 28 DLL_EXPORT ~DigestParameter(); 30 DLL_EXPORT DigestParameter(const DigestParameter& other); 31 DLL_EXPORT DigestParameter& operator = (const DigestParameter& other);
|
H A D | hap_profile_verify_utils.h | 29 …DLL_EXPORT static bool ParseProfile(Pkcs7Context& profilePkcs7Context, const Pkcs7Context& hapPkcs… 31 DLL_EXPORT static bool VerifyProfile(Pkcs7Context& pkcs7Context);
|
/ohos5.0/base/security/appverify/interfaces/innerkits/appverify/include/interfaces/ |
H A D | hap_verify_result.h | 64 DLL_EXPORT HapVerifyResult(); 65 DLL_EXPORT ~HapVerifyResult(); 66 DLL_EXPORT int32_t GetVersion() const; 67 DLL_EXPORT void SetVersion(int32_t signatureVersion); 68 DLL_EXPORT void SetPkcs7SignBlock(const HapByteBuffer& pkcs7); 69 DLL_EXPORT void SetPkcs7ProfileBlock(const HapByteBuffer& pkcs7); 71 DLL_EXPORT void SetProvisionInfo(const ProvisionInfo& info); 72 DLL_EXPORT int32_t GetProperty(std::string& property) const; 73 DLL_EXPORT ProvisionInfo GetProvisionInfo() const; 74 DLL_EXPORT std::vector<std::string> GetPublicKey() const; [all …]
|
H A D | hap_verify.h | 27 DLL_EXPORT bool EnableDebugMode(); 28 DLL_EXPORT void DisableDebugMode(); 29 DLL_EXPORT int32_t HapVerify(const std::string& filePath, HapVerifyResult& hapVerifyResult, bool re… 30 DLL_EXPORT int32_t ParseHapProfile(const std::string& filePath, HapVerifyResult& hapVerifyV1Result); 31 DLL_EXPORT int32_t ParseHapSignatureInfo(const std::string& filePath, SignatureInfo &hapSignInfo); 32 extern "C" DLL_EXPORT int32_t ParseBundleNameAndAppIdentifier(const int32_t fileFd, std::string &bu… 34 DLL_EXPORT void SetDevMode(DevMode devMode);
|
/ohos5.0/base/security/appverify/interfaces/innerkits/appverify/include/init/ |
H A D | hap_crl_manager.h | 35 DLL_EXPORT static HapCrlManager& GetInstance(); 36 DLL_EXPORT void Init(); 37 DLL_EXPORT bool CrlCheck(X509* cert, X509_CRL* targetCrl, Pkcs7Context& pkcs7Context); 38 DLL_EXPORT void WriteCrlsToFile(); 48 DLL_EXPORT X509_CRL* GetFinalCrl(X509_CRL* crlInPackage, Pkcs7Context& pkcs7Context); 49 DLL_EXPORT X509_CRL* GetCrlByIssuer(const std::string& issuer); 50 DLL_EXPORT void UpdateCrlByIssuer(const std::string& issuer, X509_CRL* crl); 51 DLL_EXPORT bool ReadCrls(HapByteBuffer& crlsBuffer); 52 DLL_EXPORT bool ParseCrls(HapByteBuffer& crlsBuffer); 55 DLL_EXPORT static const std::string HAP_CRL_FILE_PATH;
|
H A D | trusted_root_ca.h | 34 DLL_EXPORT static TrustedRootCa& GetInstance(); 35 DLL_EXPORT bool Init(); 36 DLL_EXPORT void Recovery(); 37 DLL_EXPORT bool EnableDebug(); 38 DLL_EXPORT void DisableDebug(); 39 DLL_EXPORT X509* FindMatchedRoot(X509* caCert); 40 DLL_EXPORT void SetDevMode(DevMode devMode); 50 … DLL_EXPORT bool GetTrustedRootCAFromJson(StringCertMap& rootCertMap, const std::string& filePath);
|
H A D | trusted_source_manager.h | 45 DLL_EXPORT static TrustedSourceManager& GetInstance(); 46 DLL_EXPORT bool Init(); 47 DLL_EXPORT void Recovery(); 48 DLL_EXPORT bool EnableDebug(); 49 DLL_EXPORT void DisableDebug(); 50 …DLL_EXPORT MatchingResult IsTrustedSource(const std::string& certSubject, const std::string& certI…
|
H A D | trusted_ticket_manager.h | 41 DLL_EXPORT static TrustedTicketManager& GetInstance(); 42 DLL_EXPORT bool Init(); 43 DLL_EXPORT void Recovery(); 44 …DLL_EXPORT MatchingResult IsTrustedSource(const std::string& certSubject, const std::string& certI…
|
H A D | device_type_manager.h | 28 DLL_EXPORT static DeviceTypeManager& GetInstance(); 29 DLL_EXPORT bool GetDeviceTypeInfo();
|
/ohos5.0/base/security/appverify/interfaces/innerkits/appverify/include/verify/ |
H A D | hap_verify_v2.h | 45 DLL_EXPORT bool GetDigestAndAlgorithm(Pkcs7Context& digest); 46 DLL_EXPORT bool CheckFilePath(const std::string& filePath, std::string& standardFilePath); 48 …DLL_EXPORT bool ParseAndVerifyProfileIfNeed(const std::string& profile, ProvisionInfo& provisionIn… 51 …DLL_EXPORT bool VerifyProfileInfo(const Pkcs7Context& pkcs7Context, const Pkcs7Context& profileCon… 54 DLL_EXPORT bool GenerateAppId(ProvisionInfo& provisionInfo); 55 DLL_EXPORT bool GenerateFingerprint(ProvisionInfo& provisionInfo);
|
/ohos5.0/base/security/appverify/interfaces/innerkits/appverify/include/provision/ |
H A D | provision_verify.h | 40 DLL_EXPORT AppProvisionVerifyResult ParseAndVerify(const std::string& appProvision, ProvisionInfo& … 48 DLL_EXPORT AppProvisionVerifyResult ParseProvision(const std::string& appProvision, ProvisionInfo& … 56 DLL_EXPORT AppProvisionVerifyResult ParseProfile(const std::string& appProvision, ProvisionInfo& in… 58 DLL_EXPORT void SetRdDevice(bool isRdDevice);
|
H A D | provision_info.h | 79 DLL_EXPORT ProvisionInfo(); 80 DLL_EXPORT ~ProvisionInfo(); 81 DLL_EXPORT ProvisionInfo(const ProvisionInfo &info); 82 DLL_EXPORT ProvisionInfo &operator=(const ProvisionInfo &info);
|
/ohos5.0/base/security/appverify/interfaces/innerkits/appverify/include/ticket/ |
H A D | ticket_verify.h | 45 DLL_EXPORT bool CheckTicketSource(const ProvisionInfo& profileInfo);
|
/ohos5.0/base/security/device_auth/frameworks/deviceauth_lite/source/log/ |
H A D | log.c | 23 #ifdef DLL_EXPORT
|
/ohos5.0/base/security/device_auth/interfaces/inner_api/deviceauth_lite/ |
H A D | hichain.h | 22 #ifdef DLL_EXPORT
|