Home | History | Annotate | Download | only in hidl

Lines Matching defs:HASH

17 #include "Hash.h"
31 const std::vector<uint8_t> Hash::kEmptyHash = std::vector<uint8_t>(SHA256_DIGEST_LENGTH, 0);
33 Hash& Hash::getMutableHash(const std::string& path) {
34 static std::map<std::string, Hash> hashes;
39 it = hashes.insert(it, {path, Hash(path)});
45 const Hash& Hash::getHash(const std::string& path) {
49 void Hash::clearHash(const std::string& path) {
67 Hash::Hash(const std::string &path)
71 std::string Hash::hexString(const std::vector<uint8_t> &hash) {
74 for (uint8_t i : hash) {
80 std::string Hash::hexString() const {
84 const std::vector<uint8_t> &Hash::raw() const {
88 const std::string &Hash::getPath() const {
92 #define HASH "([0-9a-f]+)"
99 MAYBE_SPACES HASH SPACES FQNAME MAYBE_SPACES
148 std::string hash = match.str(1);
151 if (hash.size() == 0 && fqName.size() == 0) {
155 if (hash.size() == 0 || fqName.size() == 0) {
156 *err = "Hash or fqName empty on " + path + ": " + line;
161 file->hashes[fqName].push_back(hash);
170 std::vector<std::string> Hash::lookupHash(const std::string& path, const std::string& interfaceName,