MCPcopy Create free account
hub / github.com/acl-dev/acl / md5_file

Method md5_file

lib_acl_cpp/src/stdlib/md5.cpp:286–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286acl_int64 md5::md5_file(const char* path, const void *key, size_t klen,
287 char* out, size_t size)
288{
289 ifstream in;
290
291 if (!in.open_read(path)) {
292 logger_error("open file: %s error: %s", path, last_serror());
293 return -1;
294 }
295 return md5_file(in, key, klen, out, size);
296}
297
298acl_int64 md5::md5_file(istream& in, const void *key, size_t klen,
299 char* out, size_t size)

Callers

nothing calls this directly

Calls 6

get_digestMethod · 0.80
last_serrorFunction · 0.70
open_readMethod · 0.45
updateMethod · 0.45
readMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected