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

Function check_string

lib_acl_cpp/samples/md5/main.cpp:83–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83static void check_string(const acl::string& key, const acl::string& plain)
84{
85 acl::md5 md5;
86 if (!key.empty()) {
87 md5.update(key, key.size());
88 }
89
90 const char* res = md5.update(plain, plain.size()).finish().get_string();
91 printf("key=%s, plain=%s, res=%s\r\n", key.c_str(), plain.c_str(), res);
92}
93
94static void usage(const char* procname)
95{

Callers 1

mainFunction · 0.85

Calls 6

emptyMethod · 0.45
updateMethod · 0.45
sizeMethod · 0.45
get_stringMethod · 0.45
finishMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…