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

Go to the source code of this file.

Data Structures

struct  cast6_ctx
 

Macros

#define CAST6_BLOCK_SIZE   16
 
#define CAST6_MIN_KEY_SIZE   16
 
#define CAST6_MAX_KEY_SIZE   32
 

Functions

int __cast6_setkey (struct cast6_ctx *ctx, const u8 *key, unsigned int keylen, u32 *flags)
 
int cast6_setkey (struct crypto_tfm *tfm, const u8 *key, unsigned int keylen)
 
void __cast6_encrypt (struct cast6_ctx *ctx, u8 *dst, const u8 *src)
 
void __cast6_decrypt (struct cast6_ctx *ctx, u8 *dst, const u8 *src)
 

Variables

const u32 cast6_s1 [256]
 
const u32 cast6_s2 [256]
 
const u32 cast6_s3 [256]
 
const u32 cast6_s4 [256]
 

Macro Definition Documentation

#define CAST6_BLOCK_SIZE   16

Definition at line 7 of file cast6.h.

#define CAST6_MAX_KEY_SIZE   32

Definition at line 9 of file cast6.h.

#define CAST6_MIN_KEY_SIZE   16

Definition at line 8 of file cast6.h.

Function Documentation

void __cast6_decrypt ( struct cast6_ctx ctx,
u8 dst,
const u8 src 
)

Definition at line 494 of file cast6_generic.c.

void __cast6_encrypt ( struct cast6_ctx ctx,
u8 dst,
const u8 src 
)

Definition at line 456 of file cast6_generic.c.

int __cast6_setkey ( struct cast6_ctx ctx,
const u8 key,
unsigned int  keylen,
u32 flags 
)
int cast6_setkey ( struct crypto_tfm tfm,
const u8 key,
unsigned int  keylen 
)

Definition at line 429 of file cast6_generic.c.

Variable Documentation

const u32 cast6_s1[256]

Definition at line 42 of file cast6_generic.c.

const u32 cast6_s2[256]

Definition at line 110 of file cast6_generic.c.

const u32 cast6_s3[256]

Definition at line 178 of file cast6_generic.c.

const u32 cast6_s4[256]

Definition at line 246 of file cast6_generic.c.