moved typedefs to beginning of files to solve some include problems

splitted authenticator to have a separate implementation for each auth_method_t
using va_copy to clone va_lists, should fix proplems on AMD64
some other cleanups
This commit is contained in:
Martin Willi
2006-10-30 14:07:05 +00:00
parent 09cb5472bc
commit 382b481795
119 changed files with 1196 additions and 1120 deletions
@@ -25,17 +25,16 @@
#ifndef AES_CBC_CRYPTER_H_
#define AES_CBC_CRYPTER_H_
#include <crypto/crypters/crypter.h>
typedef struct aes_cbc_crypter_t aes_cbc_crypter_t;
#include <crypto/crypters/crypter.h>
/**
* @brief Class implementing the AES symmetric encryption algorithm.
*
*
* @b Constructors:
* - aes_cbc_crypter_create()
*
*
* @ingroup crypters
*/
struct aes_cbc_crypter_t {
+7 -9
View File
@@ -24,18 +24,19 @@
#ifndef CRYPTER_H_
#define CRYPTER_H_
#include <types.h>
typedef enum encryption_algorithm_t encryption_algorithm_t;
typedef struct crypter_t crypter_t;
#include <types.h>
/**
* @brief Encryption algorithm, as in IKEv2 RFC 3.3.2.
*
*
* Currently only the following algorithms are implemented:
* - ENCR_AES_CBC
* - ENCR_DES
* - ENCR_3DES
*
*
* @ingroup crypters
*/
enum encryption_algorithm_t {
@@ -62,15 +63,12 @@ enum encryption_algorithm_t {
*/
extern enum_name_t *encryption_algorithm_names;
typedef struct crypter_t crypter_t;
/**
* @brief Generic interface for symmetric encryption algorithms.
*
*
* @b Constructors:
* - crypter_create()
*
*
* @ingroup crypters
*/
struct crypter_t {
@@ -23,11 +23,11 @@
#ifndef DES_CRYPTER_H_
#define DES_CRYPTER_H_
typedef struct des_crypter_t des_crypter_t;
#include <crypto/crypters/crypter.h>
typedef struct des_crypter_t des_crypter_t;
/**
* @brief Class implementing the DES and 3DES encryption algorithms.
*