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

Go to the source code of this file.

Classes

struct  sha512_ctx

Macros

#define rol64(x, n)   ( ((x) << (n)) | ((x) >> (64-(n))) )
#define SHA384_BLOCKSIZE   128
#define SHA384_DIGESTSIZE   48
#define SHA512_BLOCKSIZE   128
#define SHA512_DIGESTSIZE   64

Functions

void * sha384_finish_ctx (struct sha512_ctx *ctx, void *resbuf)
void sha384_init_ctx (struct sha512_ctx *ctx)
void * sha384_read_ctx (const struct sha512_ctx *ctx, void *resbuf)
void * sha512_finish_ctx (struct sha512_ctx *ctx, void *resbuf)
void sha512_init_ctx (struct sha512_ctx *ctx)
void sha512_process_block (const void *buffer, size_t len, struct sha512_ctx *ctx)
void sha512_process_bytes (const void *buffer, size_t len, struct sha512_ctx *ctx)
void * sha512_read_ctx (const struct sha512_ctx *ctx, void *resbuf)

Macro Definition Documentation

#define rol64 (   x,
 
)    ( ((x) << (n)) | ((x) >> (64-(n))) )
#define SHA384_BLOCKSIZE   128
#define SHA384_DIGESTSIZE   48
#define SHA512_BLOCKSIZE   128
#define SHA512_DIGESTSIZE   64

Function Documentation

void* sha384_finish_ctx ( struct sha512_ctx ctx,
void *  resbuf 
)
void sha384_init_ctx ( struct sha512_ctx ctx)
void* sha384_read_ctx ( const struct sha512_ctx ctx,
void *  resbuf 
)
void* sha512_finish_ctx ( struct sha512_ctx ctx,
void *  resbuf 
)
void sha512_init_ctx ( struct sha512_ctx ctx)
void sha512_process_block ( const void *  buffer,
size_t  len,
struct sha512_ctx ctx 
)
Todo:
: see sha1.c for a better implementation.
void sha512_process_bytes ( const void *  buffer,
size_t  len,
struct sha512_ctx ctx 
)
void* sha512_read_ctx ( const struct sha512_ctx ctx,
void *  resbuf 
)