Lines Matching defs:hash
2 /* System hash blacklist.
30 * hex digits. The hash is kept in the description.
57 * The hash to be blacklisted is expected to be in the description. There will
86 * mark_hash_blacklisted - Add a hash to the system blacklist
87 * @hash - The hash as a hex string with a type prefix (eg. "tbs:23aa429783")
89 int mark_hash_blacklisted(const char *hash)
95 hash,
103 pr_err("Problem blacklisting hash (%ld)\n", PTR_ERR(key));
110 * is_hash_blacklisted - Determine if a hash is blacklisted
111 * @hash: The hash to be checked as a binary blob
112 * @hash_len: The length of the binary hash
113 * @type: Type of hash
115 int is_hash_blacklisted(const u8 *hash, size_t hash_len, const char *type)
128 bin2hex(p, hash, hash_len);
144 int is_binary_blacklisted(const u8 *hash, size_t hash_len)
146 if (is_hash_blacklisted(hash, hash_len, "bin") == -EKEYREJECTED)