Coda Distributed File System
Macros | Typedefs | Functions
rijndael-alg-fst.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MAXKC   (256/32)
 
#define MAXKB   (256/8)
 
#define MAXNR   14
 

Typedefs

typedef unsigned char u8
 
typedef unsigned short u16
 
typedef unsigned int u32
 

Functions

int rijndaelKeySetupEnc (u32 rk[], const u8 cipherKey[], int keyBits)
 
int rijndaelKeySetupDec (u32 rk[], const u8 cipherKey[], int keyBits)
 
void rijndaelEncrypt (const u32 rk[], int Nr, const u8 pt[16], u8 ct[16])
 
void rijndaelDecrypt (const u32 rk[], int Nr, const u8 ct[16], u8 pt[16])
 

Macro Definition Documentation

◆ MAXKB

#define MAXKB   (256/8)

◆ MAXKC

#define MAXKC   (256/32)

rijndael-alg-fst.h

Version
3.0 (December 2000)

Optimised ANSI C code for the Rijndael cipher (now AES)

Author
Vincent Rijmen vince.nosp@m.nt.r.nosp@m.ijmen.nosp@m.@esa.nosp@m.t.kul.nosp@m.euve.nosp@m.n.ac..nosp@m.be
Antoon Bosselaers antoo.nosp@m.n.bo.nosp@m.ssela.nosp@m.ers@.nosp@m.esat..nosp@m.kule.nosp@m.uven..nosp@m.ac.b.nosp@m.e
Paulo Barreto paulo.nosp@m..bar.nosp@m.reto@.nosp@m.terr.nosp@m.a.com.nosp@m..br

This code is hereby placed in the public domain.

THIS SOFTWARE IS PROVIDED BY THE AUTHORS ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

◆ MAXNR

#define MAXNR   14

Typedef Documentation

◆ u16

typedef unsigned short u16

◆ u32

typedef unsigned int u32

◆ u8

typedef unsigned char u8

Function Documentation

◆ rijndaelDecrypt()

void rijndaelDecrypt ( const u32  rk[],
int  Nr,
const u8  ct[16],
u8  pt[16] 
)

◆ rijndaelEncrypt()

void rijndaelEncrypt ( const u32  rk[],
int  Nr,
const u8  pt[16],
u8  ct[16] 
)

◆ rijndaelKeySetupDec()

int rijndaelKeySetupDec ( u32  rk[],
const u8  cipherKey[],
int  keyBits 
)

Expand the cipher key into the decryption key schedule.

Returns
the number of rounds for the given cipher key size.

◆ rijndaelKeySetupEnc()

int rijndaelKeySetupEnc ( u32  rk[],
const u8  cipherKey[],
int  keyBits 
)

Expand the cipher key into the encryption key schedule.

Returns
the number of rounds for the given cipher key size.