Lines Matching refs:algorithm
30 * The "algorithm" argument can be any of the registered, non-deprecated IPP
43 cupsHashData(const char *algorithm, /* I - Algorithm name */
49 if (!algorithm || !data || datalen == 0 || !hash || hashsize == 0)
56 if (!strcmp(algorithm, "sha"))
73 else if (!strcmp(algorithm, "sha2-224"))
86 else if (!strcmp(algorithm, "sha2-256"))
99 else if (!strcmp(algorithm, "sha2-384"))
112 else if (!strcmp(algorithm, "sha2-512"))
125 else if (!strcmp(algorithm, "sha2-512_224"))
146 else if (!strcmp(algorithm, "sha2-512_256"))
170 /* Algorithm */
174 if (!strcmp(algorithm, "sha"))
176 else if (!strcmp(algorithm, "sha2-224"))
178 else if (!strcmp(algorithm, "sha2-256"))
180 else if (!strcmp(algorithm, "sha2-384"))
182 else if (!strcmp(algorithm, "sha2-512"))
184 else if (!strcmp(algorithm, "sha2-512_224"))
189 else if (!strcmp(algorithm, "sha2-512_256"))
230 * Unknown hash algorithm...
233 _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Unknown hash algorithm."), 1);