Dibbler - a portable DHCPv6  1.0.2RC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
sha256.h File Reference
#include <stdio.h>
#include <stdint.h>
+ Include dependency graph for sha256.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  sha256_ctx

Macros

#define SHA224_BLOCKSIZE   64
#define SHA224_DIGESTSIZE   28
#define SHA256_BLOCKSIZE   64
#define SHA256_DIGESTSIZE   32

Functions

void * sha224_finish_ctx (struct sha256_ctx *ctx, void *resbuf)
void sha224_init_ctx (struct sha256_ctx *ctx)
void * sha224_read_ctx (const struct sha256_ctx *ctx, void *resbuf)
void * sha256_buffer (const char *buffer, size_t len, void *resblock)
void * sha256_finish_ctx (struct sha256_ctx *ctx, void *resbuf)
void sha256_init_ctx (struct sha256_ctx *ctx)
void sha256_process_block (const void *buffer, size_t len, struct sha256_ctx *ctx)
void sha256_process_bytes (const void *buffer, size_t len, struct sha256_ctx *ctx)
void * sha256_read_ctx (const struct sha256_ctx *ctx, void *resbuf)

Macro Definition Documentation

#define SHA224_BLOCKSIZE   64
#define SHA224_DIGESTSIZE   28
#define SHA256_BLOCKSIZE   64
#define SHA256_DIGESTSIZE   32

Function Documentation

void* sha224_finish_ctx ( struct sha256_ctx ctx,
void *  resbuf 
)
void sha224_init_ctx ( struct sha256_ctx ctx)
void* sha224_read_ctx ( const struct sha256_ctx ctx,
void *  resbuf 
)
void* sha256_buffer ( const char *  buffer,
size_t  len,
void *  resblock 
)
void* sha256_finish_ctx ( struct sha256_ctx ctx,
void *  resbuf 
)
void sha256_init_ctx ( struct sha256_ctx ctx)
void sha256_process_block ( const void *  buffer,
size_t  len,
struct sha256_ctx ctx 
)
Todo:
: see sha1.c for a better implementation.
void sha256_process_bytes ( const void *  buffer,
size_t  len,
struct sha256_ctx ctx 
)
void* sha256_read_ctx ( const struct sha256_ctx ctx,
void *  resbuf 
)