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

Go to the source code of this file.

Classes

struct  sha1_ctx
struct  sha256_ctx

Macros

#define _SHA1_DIGEST_LENGTH   5
#define _SHA256_DIGEST_LENGTH   8
#define SHA1_DATA_SIZE   64
#define sha1_digest   nettle_sha1_digest
#define SHA1_DIGEST_SIZE   20
#define sha1_init   nettle_sha1_init
#define sha1_update   nettle_sha1_update
#define SHA256_DATA_SIZE   64
#define sha256_digest   nettle_sha256_digest
#define SHA256_DIGEST_SIZE   32
#define sha256_init   nettle_sha256_init
#define sha256_update   nettle_sha256_update

Functions

void _nettle_sha1_compress (uint32_t *state, uint32_t *data)
void nettle_sha1_digest (struct sha1_ctx *ctx, unsigned length, uint8_t *digest)
void nettle_sha1_init (struct sha1_ctx *ctx)
void nettle_sha1_update (struct sha1_ctx *ctx, unsigned length, const uint8_t *data)
void nettle_sha256_digest (struct sha256_ctx *ctx, unsigned length, uint8_t *digest)
void nettle_sha256_init (struct sha256_ctx *ctx)
void nettle_sha256_update (struct sha256_ctx *ctx, unsigned length, const uint8_t *data)

Macro Definition Documentation

#define _SHA1_DIGEST_LENGTH   5
#define _SHA256_DIGEST_LENGTH   8
#define SHA1_DATA_SIZE   64
#define sha1_digest   nettle_sha1_digest
#define SHA1_DIGEST_SIZE   20
#define sha1_init   nettle_sha1_init
#define sha1_update   nettle_sha1_update
#define SHA256_DATA_SIZE   64
#define sha256_digest   nettle_sha256_digest
#define SHA256_DIGEST_SIZE   32
#define sha256_init   nettle_sha256_init
#define sha256_update   nettle_sha256_update

Function Documentation

void _nettle_sha1_compress ( uint32_t state,
uint32_t data 
)
void nettle_sha1_digest ( struct sha1_ctx ctx,
unsigned  length,
uint8_t *  digest 
)
void nettle_sha1_init ( struct sha1_ctx ctx)
void nettle_sha1_update ( struct sha1_ctx ctx,
unsigned  length,
const uint8_t *  data 
)
void nettle_sha256_digest ( struct sha256_ctx ctx,
unsigned  length,
uint8_t *  digest 
)
void nettle_sha256_init ( struct sha256_ctx ctx)
void nettle_sha256_update ( struct sha256_ctx ctx,
unsigned  length,
const uint8_t *  data 
)