Lines Matching full:hash
2 /* System hash blacklist.
24 * hex digits. The hash is kept in the description.
51 * The hash to be blacklisted is expected to be in the description. There will
80 * mark_hash_blacklisted - Add a hash to the system blacklist
81 * @hash - The hash as a hex string with a type prefix (eg. "tbs:23aa429783")
83 int mark_hash_blacklisted(const char *hash) in mark_hash_blacklisted() argument
89 hash, in mark_hash_blacklisted()
97 pr_err("Problem blacklisting hash (%ld)\n", PTR_ERR(key)); in mark_hash_blacklisted()
104 * is_hash_blacklisted - Determine if a hash is blacklisted
105 * @hash: The hash to be checked as a binary blob
106 * @hash_len: The length of the binary hash
107 * @type: Type of hash
109 int is_hash_blacklisted(const u8 *hash, size_t hash_len, const char *type) in is_hash_blacklisted() argument
122 bin2hex(p, hash, hash_len); in is_hash_blacklisted()
138 int is_binary_blacklisted(const u8 *hash, size_t hash_len) in is_binary_blacklisted() argument
140 if (is_hash_blacklisted(hash, hash_len, "bin") == -EKEYREJECTED) in is_binary_blacklisted()