Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
serpent.h File Reference
#include <linux/types.h>
#include <linux/crypto.h>

Go to the source code of this file.

Data Structures

struct  serpent_ctx
 

Macros

#define SERPENT_MIN_KEY_SIZE   0
 
#define SERPENT_MAX_KEY_SIZE   32
 
#define SERPENT_EXPKEY_WORDS   132
 
#define SERPENT_BLOCK_SIZE   16
 

Functions

int __serpent_setkey (struct serpent_ctx *ctx, const u8 *key, unsigned int keylen)
 
int serpent_setkey (struct crypto_tfm *tfm, const u8 *key, unsigned int keylen)
 
void __serpent_encrypt (struct serpent_ctx *ctx, u8 *dst, const u8 *src)
 
void __serpent_decrypt (struct serpent_ctx *ctx, u8 *dst, const u8 *src)
 

Macro Definition Documentation

#define SERPENT_BLOCK_SIZE   16

Definition at line 14 of file serpent.h.

#define SERPENT_EXPKEY_WORDS   132

Definition at line 13 of file serpent.h.

#define SERPENT_MAX_KEY_SIZE   32

Definition at line 12 of file serpent.h.

#define SERPENT_MIN_KEY_SIZE   0

Definition at line 11 of file serpent.h.

Function Documentation

void __serpent_decrypt ( struct serpent_ctx ctx,
u8 dst,
const u8 src 
)

Definition at line 510 of file serpent_generic.c.

void __serpent_encrypt ( struct serpent_ctx ctx,
u8 dst,
const u8 src 
)

Definition at line 445 of file serpent_generic.c.

int __serpent_setkey ( struct serpent_ctx ctx,
const u8 key,
unsigned int  keylen 
)

Definition at line 232 of file serpent_generic.c.

int serpent_setkey ( struct crypto_tfm tfm,
const u8 key,
unsigned int  keylen 
)

Definition at line 439 of file serpent_generic.c.