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

Go to the source code of this file.

Data Structures

struct  cast5_ctx
 

Macros

#define CAST5_BLOCK_SIZE   8
 
#define CAST5_MIN_KEY_SIZE   5
 
#define CAST5_MAX_KEY_SIZE   16
 

Functions

int cast5_setkey (struct crypto_tfm *tfm, const u8 *key, unsigned int keylen)
 
void __cast5_encrypt (struct cast5_ctx *ctx, u8 *dst, const u8 *src)
 
void __cast5_decrypt (struct cast5_ctx *ctx, u8 *dst, const u8 *src)
 

Variables

const u32 cast5_s1 [256]
 
const u32 cast5_s2 [256]
 
const u32 cast5_s3 [256]
 
const u32 cast5_s4 [256]
 

Macro Definition Documentation

#define CAST5_BLOCK_SIZE   8

Definition at line 7 of file cast5.h.

#define CAST5_MAX_KEY_SIZE   16

Definition at line 9 of file cast5.h.

#define CAST5_MIN_KEY_SIZE   5

Definition at line 8 of file cast5.h.

Function Documentation

void __cast5_decrypt ( struct cast5_ctx ctx,
u8 dst,
const u8 src 
)

Definition at line 637 of file cast5_generic.c.

void __cast5_encrypt ( struct cast5_ctx ctx,
u8 dst,
const u8 src 
)

Definition at line 580 of file cast5_generic.c.

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

Definition at line 756 of file cast5_generic.c.

Variable Documentation

const u32 cast5_s1[256]

Definition at line 34 of file cast5_generic.c.

const u32 cast5_s2[256]

Definition at line 101 of file cast5_generic.c.

const u32 cast5_s3[256]

Definition at line 168 of file cast5_generic.c.

const u32 cast5_s4[256]

Definition at line 235 of file cast5_generic.c.