6 int main(int ac, char **av){
13 if (ac == 1 || (ac == 2 && !strcmp(av[1], "-"))) {
15 unsigned char buf[4096];
17 unsigned char tmp[32];
22 bytes = fread(buf, 1, sizeof buf, stdin);
23 sha256_process(&md, buf, bytes);
24 } while (bytes && !feof(stdin));
28 sha256_done(&md, tmp);
30 sprintf(hash+j*2, "%02x", (unsigned)tmp[j]);
38 fprintf(stderr, "usage: path\n");
41 rv = zpm_hash(av[1], hash, 0);