Classes | Defines | Functions

sha1.h File Reference

#include <stdio.h>
#include <stdint.h>

Go to the source code of this file.

Classes

struct  sha1_ctx

Defines

#define SHA1_DIGEST_SIZE   20

Functions

void sha1_init_ctx (struct sha1_ctx *ctx)
void sha1_process_block (const void *buffer, size_t len, struct sha1_ctx *ctx)
void sha1_process_bytes (const void *buffer, size_t len, struct sha1_ctx *ctx)
void * sha1_finish_ctx (struct sha1_ctx *ctx, void *resbuf)
void * sha1_read_ctx (const struct sha1_ctx *ctx, void *resbuf)
int sha1_stream (FILE *stream, void *resblock)
void * sha1_buffer (const char *buffer, size_t len, void *resblock)

Define Documentation

#define SHA1_DIGEST_SIZE   20

Function Documentation

void* sha1_buffer ( const char *  buffer,
size_t  len,
void *  resblock 
)
void* sha1_finish_ctx ( struct sha1_ctx ctx,
void *  resbuf 
)
void sha1_init_ctx ( struct sha1_ctx ctx  ) 
void sha1_process_block ( const void *  buffer,
size_t  len,
struct sha1_ctx ctx 
)
void sha1_process_bytes ( const void *  buffer,
size_t  len,
struct sha1_ctx ctx 
)
void* sha1_read_ctx ( const struct sha1_ctx ctx,
void *  resbuf 
)
int sha1_stream ( FILE *  stream,
void *  resblock 
)