MCPcopy Create free account
hub / github.com/OpenPrinting/cups / cupsHashData

Function cupsHashData

cups/hash.c:56–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54//
55
56ssize_t // O - Size of hash or -1 on error
57cupsHashData(const char *algorithm, // I - Algorithm name
58 const void *data, // I - Data to hash
59 size_t datalen, // I - Length of data to hash
60 unsigned char *hash, // I - Hash buffer
61 size_t hashsize) // I - Size of hash buffer
62{
63 if (!algorithm || !data || datalen == 0 || !hash || hashsize == 0)
64 {
65 _cupsSetError(IPP_STATUS_ERROR_INTERNAL, _("Bad arguments to function"), 1);
66 return (-1);
67 }
68
69 return (hash_data(algorithm, hash, hashsize, data, datalen, NULL, 0));
70}
71
72
73//

Callers 9

create_printerFunction · 0.85
cgi_set_sidFunction · 0.85
httpCredentialsStringFunction · 0.85
_cupsConvertOptionsFunction · 0.85
httpCredentialsStringFunction · 0.85
httpCredentialsStringFunction · 0.85
httpCredentialsStringFunction · 0.85
httpAssembleUUIDFunction · 0.85
_httpSetDigestAuthStringFunction · 0.85

Calls 2

_cupsSetErrorFunction · 0.85
hash_dataFunction · 0.85

Tested by

no test coverage detected