51 printf(
"usage: ffhash [b64:]algorithm [input]...\n");
52 printf(
"Supported hash algorithms:");
69 printf(
"b64:%s", res);
79 int fd,
flags = O_RDONLY;
85 if (file) fd = open(file, flags);
100 printf(
"+READ-FAILED: %s", strerror(err));
112 printf(
" *%s", file);
118 int main(
int argc,
char **argv)
122 const char *hash_name;
134 printf(
"Invalid hash type: %s\n", hash_name);
137 printf(
"%s\n", strerror(errno));
143 for (i = 2; i < argc; i++)
144 ret |=
check(argv[i]);