/* * calculates md5 checksum of standard input or file in the 1st parameter * */ #include #include #include #include using namespace std;; using namespace xstream;; int main(int argc, char* argv[]){ const size_t len = 4*1024; char buf[len]; istream* readfrom; try{ if(1good()){ readfrom->read(buf,len); out.write(buf,readfrom->gcount()); } out.flush(); struct digest::md5::result res = md.digest(); cout<