OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions
gostsum.c File Reference
#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)
 

Macro Definition Documentation

#define BUF_SIZE   262144

Definition at line 17 of file gostsum.c.

#define O_BINARY   0

Definition at line 34 of file gostsum.c.

Function Documentation

int get_line ( FILE *  f,
char *  hash,
char *  filename 
)

Definition at line 188 of file gostsum.c.

int hash_file ( gost_hash_ctx ctx,
char *  filename,
char *  sum,
int  mode 
)

Definition at line 149 of file gostsum.c.

int hash_stream ( gost_hash_ctx ctx,
int  fd,
char *  sum 
)

Definition at line 166 of file gostsum.c.

void help ( )

Definition at line 21 of file gostsum.c.

int main ( int  argc,
char **  argv 
)

Definition at line 37 of file gostsum.c.