OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions
gosthash.c File Reference
#include <string.h>
#include "gost89.h"
#include "gosthash.h"

Go to the source code of this file.

Macros

#define MYALLOC(size)   malloc(size)
 
#define MYFREE(ptr)   free(ptr)
 

Functions

int init_gost_hash_ctx (gost_hash_ctx *ctx, const gost_subst_block *subst_block)
 
void done_gost_hash_ctx (gost_hash_ctx *ctx)
 
int start_hash (gost_hash_ctx *ctx)
 
int hash_block (gost_hash_ctx *ctx, const byte *block, size_t length)
 
int finish_hash (gost_hash_ctx *ctx, byte *hashval)
 

Macro Definition Documentation

#define MYALLOC (   size)    malloc(size)

Definition at line 24 of file gosthash.c.

#define MYFREE (   ptr)    free(ptr)

Definition at line 25 of file gosthash.c.

Function Documentation

void done_gost_hash_ctx ( gost_hash_ctx ctx)

Definition at line 156 of file gosthash.c.

int finish_hash ( gost_hash_ctx ctx,
byte hashval 
)

Definition at line 226 of file gosthash.c.

int hash_block ( gost_hash_ctx ctx,
const byte block,
size_t  length 
)

Definition at line 181 of file gosthash.c.

int init_gost_hash_ctx ( gost_hash_ctx ctx,
const gost_subst_block subst_block 
)

Definition at line 138 of file gosthash.c.

int start_hash ( gost_hash_ctx ctx)

Definition at line 166 of file gosthash.c.