Searched refs:hash_name (Results 1 – 3 of 3) sorted by relevance
31 const EVP_MD* HashTreeBuilder::HashFunction(const std::string& hash_name) { in HashFunction() argument32 if (android::base::EqualsIgnoreCase(hash_name, "sha1")) { in HashFunction()35 if (android::base::EqualsIgnoreCase(hash_name, "sha256")) { in HashFunction()38 if (android::base::EqualsIgnoreCase(hash_name, "sha384")) { in HashFunction()41 if (android::base::EqualsIgnoreCase(hash_name, "sha512")) { in HashFunction()45 LOG(ERROR) << "Unsupported hash algorithm " << hash_name; in HashFunction()
66 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()