• Home
  • Raw
  • Download

Lines Matching +full:- +full:algorithm

1 /* SPDX-License-Identifier: GPL-2.0+ */
21 const char *name; /* Name of algorithm */
31 * @output: Checksum result (length depends on algorithm)
42 * @return 0 if ok, -1 on error
55 * @return 0 if ok, -1 on error
68 * @return 0 if ok, -ENOSPC if size of the result buffer is too small
69 * or -1 on other errors
77 * hash_command: Process a hash command for a particular algorithm
81 * @algo_name: Hash algorithm being used (lower case!)
92 * hash_block() - Hash a block according to the requested algorithm
94 * The caller probably knows the hash length for the chosen algorithm, but
98 * @algo_name: Hash algorithm to use
106 * since the caller is selecting the algorithm.
107 * @return 0 if ok, -ve on error: -EPROTONOSUPPORT for an unknown algorithm,
108 * -ENOSPC if the output buffer is not large enough.
116 * hash_lookup_algo() - Look up the hash_algo struct for an algorithm
118 * The function returns the pointer to the struct or -EPROTONOSUPPORT if the
119 * algorithm is not available.
121 * @algo_name: Hash algorithm to look up
124 * @return 0 if ok, -EPROTONOSUPPORT for an unknown algorithm.
129 * hash_progressive_lookup_algo() - Look up hash_algo for prog. hash support
131 * The function returns the pointer to the struct or -EPROTONOSUPPORT if the
132 * algorithm is not available with progressive hash support.
134 * @algo_name: Hash algorithm to look up
137 * @return 0 if ok, -EPROTONOSUPPORT for an unknown algorithm.
143 * hash_parse_string() - Parse hash string into a binary array
148 * @algo_name: Hash algorithm to look up
152 * @return 0 if ok, -EPROTONOSUPPORT for an unknown algorithm.