Lines Matching full:hash
2 /* System hash blacklist.
31 * hex digits. The hash is kept in the description.
58 * The hash to be blacklisted is expected to be in the description. There will
87 * mark_hash_blacklisted - Add a hash to the system blacklist
88 * @hash: The hash as a hex string with a type prefix (eg. "tbs:23aa429783")
90 int mark_hash_blacklisted(const char *hash) in mark_hash_blacklisted() argument
96 hash, in mark_hash_blacklisted()
104 pr_err("Problem blacklisting hash (%ld)\n", PTR_ERR(key)); in mark_hash_blacklisted()
111 * is_hash_blacklisted - Determine if a hash is blacklisted
112 * @hash: The hash to be checked as a binary blob
113 * @hash_len: The length of the binary hash
114 * @type: Type of hash
116 int is_hash_blacklisted(const u8 *hash, size_t hash_len, const char *type) in is_hash_blacklisted() argument
129 bin2hex(p, hash, hash_len); in is_hash_blacklisted()
145 int is_binary_blacklisted(const u8 *hash, size_t hash_len) in is_binary_blacklisted() argument
147 if (is_hash_blacklisted(hash, hash_len, "bin") == -EKEYREJECTED) in is_binary_blacklisted()