Searched refs:hash_name (Results 1 – 3 of 3) sorted by relevance
32 const EVP_MD* HashTreeBuilder::HashFunction(const std::string& hash_name) { in HashFunction() argument33 if (android::base::EqualsIgnoreCase(hash_name, "sha1")) { in HashFunction()36 if (android::base::EqualsIgnoreCase(hash_name, "sha256")) { in HashFunction()39 if (android::base::EqualsIgnoreCase(hash_name, "sha384")) { in HashFunction()42 if (android::base::EqualsIgnoreCase(hash_name, "sha512")) { in HashFunction()45 if (android::base::EqualsIgnoreCase(hash_name, "blake2b-256")) { in HashFunction()49 LOG(ERROR) << "Unsupported hash algorithm " << hash_name; in HashFunction()
71 static const EVP_MD* HashFunction(const std::string& hash_name);
41 void BuildHashtree(const std::string &hash_name) { in BuildHashtree() argument43 HashTreeBuilder builder(4096, HashTreeBuilder::HashFunction(hash_name)); in BuildHashtree()