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

Go to the source code of this file.

Classes

struct  hmac_md5_ctx
struct  hmac_sha1_ctx
struct  hmac_sha256_ctx

Macros

#define HMAC_CTX(type)   { type outer; type inner; type state; }
#define hmac_digest   nettle_hmac_digest
#define HMAC_DIGEST(ctx, hash, length, digest)
#define hmac_md5_digest   nettle_hmac_md5_digest
#define hmac_md5_set_key   nettle_hmac_md5_set_key
#define hmac_md5_update   nettle_hmac_md5_update
#define hmac_set_key   nettle_hmac_set_key
#define HMAC_SET_KEY(ctx, hash, length, key)
#define hmac_sha1_digest   nettle_hmac_sha1_digest
#define hmac_sha1_set_key   nettle_hmac_sha1_set_key
#define hmac_sha1_update   nettle_hmac_sha1_update
#define hmac_sha256_digest   nettle_hmac_sha256_digest
#define hmac_sha256_set_key   nettle_hmac_sha256_set_key
#define hmac_sha256_update   nettle_hmac_sha256_update
#define hmac_update   nettle_hmac_update

Functions

void nettle_hmac_digest (const void *outer, const void *inner, void *state, const struct nettle_hash *hash, unsigned length, uint8_t *digest)
void nettle_hmac_md5_digest (struct hmac_md5_ctx *ctx, unsigned length, uint8_t *digest)
void nettle_hmac_md5_set_key (struct hmac_md5_ctx *ctx, unsigned key_length, const uint8_t *key)
void nettle_hmac_md5_update (struct hmac_md5_ctx *ctx, unsigned length, const uint8_t *data)
void nettle_hmac_set_key (void *outer, void *inner, void *state, const struct nettle_hash *hash, unsigned length, const uint8_t *key)
void nettle_hmac_sha1_digest (struct hmac_sha1_ctx *ctx, unsigned length, uint8_t *digest)
void nettle_hmac_sha1_set_key (struct hmac_sha1_ctx *ctx, unsigned key_length, const uint8_t *key)
void nettle_hmac_sha1_update (struct hmac_sha1_ctx *ctx, unsigned length, const uint8_t *data)
void nettle_hmac_sha256_digest (struct hmac_sha256_ctx *ctx, unsigned length, uint8_t *digest)
void nettle_hmac_sha256_set_key (struct hmac_sha256_ctx *ctx, unsigned key_length, const uint8_t *key)
void nettle_hmac_sha256_update (struct hmac_sha256_ctx *ctx, unsigned length, const uint8_t *data)
void nettle_hmac_update (void *state, const struct nettle_hash *hash, unsigned length, const uint8_t *data)

Macro Definition Documentation

#define HMAC_CTX (   type)    { type outer; type inner; type state; }
#define hmac_digest   nettle_hmac_digest
#define HMAC_DIGEST (   ctx,
  hash,
  length,
  digest 
)
Value:
hmac_digest( &(ctx)->outer, &(ctx)->inner, &(ctx)->state, \
(hash), (length), (digest) )
#define hmac_md5_digest   nettle_hmac_md5_digest
#define hmac_md5_set_key   nettle_hmac_md5_set_key
#define hmac_md5_update   nettle_hmac_md5_update
#define hmac_set_key   nettle_hmac_set_key
#define HMAC_SET_KEY (   ctx,
  hash,
  length,
  key 
)
Value:
hmac_set_key( &(ctx)->outer, &(ctx)->inner, &(ctx)->state, \
(hash), (length), (key) )
#define hmac_sha1_digest   nettle_hmac_sha1_digest
#define hmac_sha1_set_key   nettle_hmac_sha1_set_key
#define hmac_sha1_update   nettle_hmac_sha1_update
#define hmac_sha256_digest   nettle_hmac_sha256_digest
#define hmac_sha256_set_key   nettle_hmac_sha256_set_key
#define hmac_sha256_update   nettle_hmac_sha256_update
#define hmac_update   nettle_hmac_update

Function Documentation

void nettle_hmac_digest ( const void *  outer,
const void *  inner,
void *  state,
const struct nettle_hash hash,
unsigned  length,
uint8_t *  digest 
)
void nettle_hmac_md5_digest ( struct hmac_md5_ctx ctx,
unsigned  length,
uint8_t *  digest 
)
void nettle_hmac_md5_set_key ( struct hmac_md5_ctx ctx,
unsigned  key_length,
const uint8_t *  key 
)
void nettle_hmac_md5_update ( struct hmac_md5_ctx ctx,
unsigned  length,
const uint8_t *  data 
)
void nettle_hmac_set_key ( void *  outer,
void *  inner,
void *  state,
const struct nettle_hash hash,
unsigned  length,
const uint8_t *  key 
)
void nettle_hmac_sha1_digest ( struct hmac_sha1_ctx ctx,
unsigned  length,
uint8_t *  digest 
)
void nettle_hmac_sha1_set_key ( struct hmac_sha1_ctx ctx,
unsigned  key_length,
const uint8_t *  key 
)
void nettle_hmac_sha1_update ( struct hmac_sha1_ctx ctx,
unsigned  length,
const uint8_t *  data 
)
void nettle_hmac_sha256_digest ( struct hmac_sha256_ctx ctx,
unsigned  length,
uint8_t *  digest 
)
void nettle_hmac_sha256_set_key ( struct hmac_sha256_ctx ctx,
unsigned  key_length,
const uint8_t *  key 
)
void nettle_hmac_sha256_update ( struct hmac_sha256_ctx ctx,
unsigned  length,
const uint8_t *  data 
)
void nettle_hmac_update ( void *  state,
const struct nettle_hash hash,
unsigned  length,
const uint8_t *  data 
)