37 static const char * _SupportedHashes[10];
40 std::string GetHashForFile(std::string filename)
const;
43 HashString(std::string Type, std::string Hash);
44 explicit HashString(std::string_view StringedHashString);
48 std::string HashType()
const {
return Type; };
49 std::string HashValue()
const {
return Hash; };
52 bool VerifyFile(std::string filename)
const;
55 bool FromFile(std::string filename);
59 std::string toStr()
const;
62 bool operator==(
HashString const &other)
const;
63 bool operator!=(
HashString const &other)
const;
66 static APT_PURE
const char** SupportedHashes();
67#ifdef APT_COMPILING_APT
68 struct APT_HIDDEN HashSupportInfo {
69 std::string_view name;
70 pkgTagSection::Key namekey;
71 std::string_view chksumsname;
72 pkgTagSection::Key chksumskey;
74 APT_HIDDEN
static std::vector<HashSupportInfo> SupportedHashesInfo();