#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <limits.h>
#include <fcntl.h>
#include <string.h>
#include "gosthash.h"
Go to the source code of this file.
Macros | |
#define | BUF_SIZE 262144 |
#define | O_BINARY 0 |
Functions | |
int | hash_file (gost_hash_ctx *ctx, char *filename, char *sum, int mode) |
int | hash_stream (gost_hash_ctx *ctx, int fd, char *sum) |
int | get_line (FILE *f, char *hash, char *filename) |
void | help () |
int | main (int argc, char **argv) |
int hash_file | ( | gost_hash_ctx * | ctx, |
char * | filename, | ||
char * | sum, | ||
int | mode | ||
) |
int hash_stream | ( | gost_hash_ctx * | ctx, |
int | fd, | ||
char * | sum | ||
) |