Coda Distributed File System
Macros | Functions | Variables
rijndael-mikescott.c File Reference
#include <stdio.h>
Include dependency graph for rijndael-mikescott.c:

Macros

#define BYTE   unsigned char /* 8 bits */
 
#define WORD   unsigned int /* 32 bits */
 
#define ROTL(x)   (((x)>>7)|((x)<<1))
 
#define ROTL8(x)   (((x)<<8)|((x)>>24))
 
#define ROTL16(x)   (((x)<<16)|((x)>>16))
 
#define ROTL24(x)   (((x)<<24)|((x)>>8))
 

Functions

BYTE ByteSub (BYTE x)
 
void gentables (void)
 
void gkey (int nb, int nk, char *key)
 
void encrypt (char *buff)
 
void decrypt (char *buff)
 
int main ()
 

Variables

int Nk
 
int Nb
 
int Nr
 
BYTE fi [24]
 
BYTE ri [24]
 
WORD fkey [120]
 
WORD rkey [120]
 

Macro Definition Documentation

◆ BYTE

#define BYTE   unsigned char /* 8 bits */

◆ ROTL

#define ROTL (   x)    (((x)>>7)|((x)<<1))

◆ ROTL16

#define ROTL16 (   x)    (((x)<<16)|((x)>>16))

◆ ROTL24

#define ROTL24 (   x)    (((x)<<24)|((x)>>8))

◆ ROTL8

#define ROTL8 (   x)    (((x)<<8)|((x)>>24))

◆ WORD

#define WORD   unsigned int /* 32 bits */

Function Documentation

◆ ByteSub()

BYTE ByteSub ( BYTE  x)

◆ decrypt()

void decrypt ( char *  buff)

◆ encrypt()

void encrypt ( char *  buff)

◆ gentables()

void gentables ( void  )

◆ gkey()

void gkey ( int  nb,
int  nk,
char *  key 
)

◆ main()

int main ( void  )

Variable Documentation

◆ fi

BYTE fi[24]

◆ fkey

WORD fkey[120]

◆ Nb

int Nb

◆ Nk

int Nk

◆ Nr

int Nr

◆ ri

BYTE ri[24]

◆ rkey

WORD rkey[120]