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

Go to the source code of this file.

Classes

struct  nettle_armor
struct  nettle_cipher
struct  nettle_hash

Macros

#define _NETTLE_ARMOR(name, NAME)
#define _NETTLE_ARMOR_0(name, NAME)
#define _NETTLE_CIPHER(name, NAME, keysize)
#define _NETTLE_CIPHER_FIX(name, NAME, keysize)
#define _NETTLE_CIPHER_SEP(name, NAME, keysize)
#define _NETTLE_HASH(name, NAME)

Typedefs

typedef int(* nettle_armor_decode_final_func )(void *ctx)
typedef int(* nettle_armor_decode_update_func )(void *ctx, unsigned *dst_length, uint8_t *dst, unsigned src_length, const uint8_t *src)
typedef unsigned(* nettle_armor_encode_final_func )(void *ctx, uint8_t *dst)
typedef unsigned(* nettle_armor_encode_update_func )(void *ctx, uint8_t *dst, unsigned src_length, const uint8_t *src)
typedef void(* nettle_armor_init_func )(void *ctx)
typedef unsigned(* nettle_armor_length_func )(unsigned length)
typedef void(* nettle_hash_digest_func )(void *ctx, unsigned length, uint8_t *dst)
typedef void(* nettle_hash_init_func )(void *ctx)
typedef void(* nettle_hash_update_func )(void *ctx, unsigned length, const uint8_t *src)
typedef void(* nettle_progress_func )(void *ctx, int c)
typedef void(* nettle_random_func )(void *ctx, unsigned length, uint8_t *dst)
typedef void(* nettle_set_key_func )(void *ctx, unsigned length, const uint8_t *key)

Variables

struct nettle_cipher nettle_aes128
struct nettle_cipher nettle_aes192
struct nettle_cipher nettle_aes256
struct nettle_cipher nettle_arcfour128
struct nettle_cipher nettle_arctwo128
struct nettle_cipher nettle_arctwo40
struct nettle_cipher nettle_arctwo64
struct nettle_cipher nettle_arctwo_gutmann128
struct nettle_armor nettle_base16
struct nettle_armor nettle_base64
struct nettle_cipher nettle_cast128
struct nettle_hash nettle_md2
struct nettle_hash nettle_md4
struct nettle_hash nettle_md5
struct nettle_cipher nettle_serpent128
struct nettle_cipher nettle_serpent192
struct nettle_cipher nettle_serpent256
struct nettle_hash nettle_sha1
struct nettle_hash nettle_sha256
struct nettle_cipher nettle_twofish128
struct nettle_cipher nettle_twofish192
struct nettle_cipher nettle_twofish256

Macro Definition Documentation

#define _NETTLE_ARMOR (   name,
  NAME 
)
Value:
{ \
#name, \
sizeof(struct name##_encode_ctx), \
sizeof(struct name##_decode_ctx), \
NAME##_ENCODE_FINAL_LENGTH, \
(nettle_armor_init_func) name##_encode_init, \
(nettle_armor_length_func) name##_encode_length, \
(nettle_armor_encode_update_func) name##_encode_update, \
(nettle_armor_encode_final_func) name##_encode_final, \
(nettle_armor_init_func) name##_decode_init, \
(nettle_armor_length_func) name##_decode_length, \
(nettle_armor_decode_update_func) name##_decode_update, \
(nettle_armor_decode_final_func) name##_decode_final, \
}
#define _NETTLE_ARMOR_0 (   name,
  NAME 
)
Value:
{ \
#name, \
0, \
sizeof(struct name##_decode_ctx), \
NAME##_ENCODE_FINAL_LENGTH, \
(nettle_armor_init_func) name##_encode_init, \
(nettle_armor_length_func) name##_encode_length, \
(nettle_armor_encode_update_func) name##_encode_update, \
(nettle_armor_encode_final_func) name##_encode_final, \
(nettle_armor_init_func) name##_decode_init, \
(nettle_armor_length_func) name##_decode_length, \
(nettle_armor_decode_update_func) name##_decode_update, \
(nettle_armor_decode_final_func) name##_decode_final, \
}
#define _NETTLE_CIPHER (   name,
  NAME,
  keysize 
)
Value:
{ \
#name #keysize, \
sizeof(struct name##_ctx), \
NAME##_BLOCK_SIZE, \
keysize / 8, \
(nettle_set_key_func) name##_set_key, \
(nettle_set_key_func) name##_set_key, \
(nettle_crypt_func) name##_encrypt, \
(nettle_crypt_func) name##_decrypt, \
}
#define _NETTLE_CIPHER_FIX (   name,
  NAME,
  keysize 
)
Value:
{ \
#name, \
sizeof(struct name##_ctx), \
NAME##_BLOCK_SIZE, \
keysize / 8, \
(nettle_set_key_func) name##_set_key, \
(nettle_set_key_func) name##_set_key, \
(nettle_crypt_func) name##_encrypt, \
(nettle_crypt_func) name##_decrypt, \
}
#define _NETTLE_CIPHER_SEP (   name,
  NAME,
  keysize 
)
Value:
{ \
#name #keysize, \
sizeof(struct name##_ctx), \
NAME##_BLOCK_SIZE, \
keysize / 8, \
(nettle_set_key_func) name##_set_encrypt_key, \
(nettle_set_key_func) name##_set_decrypt_key, \
(nettle_crypt_func) name##_encrypt, \
(nettle_crypt_func) name##_decrypt, \
}
#define _NETTLE_HASH (   name,
  NAME 
)
Value:
{ \
#name, \
sizeof(struct name##_ctx), \
NAME##_DIGEST_SIZE, \
NAME##_DATA_SIZE, \
(nettle_hash_init_func) name##_init, \
(nettle_hash_update_func) name##_update, \
(nettle_hash_digest_func) name##_digest \
}

Typedef Documentation

typedef int(* nettle_armor_decode_final_func)(void *ctx)
typedef int(* nettle_armor_decode_update_func)(void *ctx, unsigned *dst_length, uint8_t *dst, unsigned src_length, const uint8_t *src)
typedef unsigned(* nettle_armor_encode_final_func)(void *ctx, uint8_t *dst)
typedef unsigned(* nettle_armor_encode_update_func)(void *ctx, uint8_t *dst, unsigned src_length, const uint8_t *src)
typedef void(* nettle_armor_init_func)(void *ctx)
typedef unsigned(* nettle_armor_length_func)(unsigned length)
typedef void(* nettle_hash_digest_func)(void *ctx, unsigned length, uint8_t *dst)
typedef void(* nettle_hash_init_func)(void *ctx)
typedef void(* nettle_hash_update_func)(void *ctx, unsigned length, const uint8_t *src)
typedef void(* nettle_progress_func)(void *ctx, int c)
typedef void(* nettle_random_func)(void *ctx, unsigned length, uint8_t *dst)
typedef void(* nettle_set_key_func)(void *ctx, unsigned length, const uint8_t *key)

Variable Documentation

struct nettle_cipher nettle_aes128
struct nettle_cipher nettle_aes192
struct nettle_cipher nettle_aes256
struct nettle_cipher nettle_arcfour128
struct nettle_cipher nettle_arctwo128
struct nettle_cipher nettle_arctwo40
struct nettle_cipher nettle_arctwo64
struct nettle_cipher nettle_arctwo_gutmann128
struct nettle_armor nettle_base16
struct nettle_armor nettle_base64
struct nettle_cipher nettle_cast128
struct nettle_hash nettle_md2
struct nettle_hash nettle_md4
struct nettle_hash nettle_md5
struct nettle_cipher nettle_serpent128
struct nettle_cipher nettle_serpent192
struct nettle_cipher nettle_serpent256
struct nettle_hash nettle_sha1
struct nettle_hash nettle_sha256
struct nettle_cipher nettle_twofish128
struct nettle_cipher nettle_twofish192
struct nettle_cipher nettle_twofish256