Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
seed.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/crypto.h>
#include <asm/byteorder.h>

Go to the source code of this file.

Data Structures

struct  seed_ctx
 

Macros

#define SEED_NUM_KCONSTANTS   16
 
#define SEED_KEY_SIZE   16
 
#define SEED_BLOCK_SIZE   16
 
#define SEED_KEYSCHED_LEN   32
 
#define OP(X1, X2, X3, X4, rbase)
 

Functions

 module_init (seed_init)
 
 module_exit (seed_fini)
 
 MODULE_DESCRIPTION ("SEED Cipher Algorithm")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Hye-Shik Chang <[email protected]>, Kim Hyun <hkim@kisa.or.kr>")
 

Macro Definition Documentation

#define OP (   X1,
  X2,
  X3,
  X4,
  rbase 
)
Value:
t0 = X3 ^ ks[rbase]; \
t1 = X4 ^ ks[rbase+1]; \
t1 ^= t0; \
t1 = SS0[byte(t1, 0)] ^ SS1[byte(t1, 1)] ^ \
SS2[byte(t1, 2)] ^ SS3[byte(t1, 3)]; \
t0 += t1; \
t0 = SS0[byte(t0, 0)] ^ SS1[byte(t0, 1)] ^ \
SS2[byte(t0, 2)] ^ SS3[byte(t0, 3)]; \
t1 += t0; \
t1 = SS0[byte(t1, 0)] ^ SS1[byte(t1, 1)] ^ \
SS2[byte(t1, 2)] ^ SS3[byte(t1, 3)]; \
t0 += t1; \
X1 ^= t0; \
X2 ^= t1;

Definition at line 315 of file seed.c.

#define SEED_BLOCK_SIZE   16

Definition at line 24 of file seed.c.

#define SEED_KEY_SIZE   16

Definition at line 23 of file seed.c.

#define SEED_KEYSCHED_LEN   32

Definition at line 25 of file seed.c.

#define SEED_NUM_KCONSTANTS   16

Definition at line 22 of file seed.c.

Function Documentation

MODULE_AUTHOR ( "Hye-Shik Chang <[email protected] ,
Kim Hyun< hkim @kisa.or.kr >"   
)
MODULE_DESCRIPTION ( "SEED Cipher Algorithm"  )
module_exit ( seed_fini  )
module_init ( seed_init  )
MODULE_LICENSE ( "GPL"  )