Coda Distributed File System
rijndael-alg-fst.h
Go to the documentation of this file.
1// clang-format off
27#ifndef __RIJNDAEL_ALG_FST_H
28#define __RIJNDAEL_ALG_FST_H
29
30#define MAXKC (256/32)
31#define MAXKB (256/8)
32#define MAXNR 14
33
34typedef unsigned char u8;
35typedef unsigned short u16;
36typedef unsigned int u32;
37
38int rijndaelKeySetupEnc(u32 rk[/*4*(Nr + 1)*/], const u8 cipherKey[], int keyBits);
39int rijndaelKeySetupDec(u32 rk[/*4*(Nr + 1)*/], const u8 cipherKey[], int keyBits);
40void rijndaelEncrypt(const u32 rk[/*4*(Nr + 1)*/], int Nr, const u8 pt[16], u8 ct[16]);
41void rijndaelDecrypt(const u32 rk[/*4*(Nr + 1)*/], int Nr, const u8 ct[16], u8 pt[16]);
42
43#ifdef INTERMEDIATE_VALUE_KAT
44void rijndaelEncryptRound(const u32 rk[/*4*(Nr + 1)*/], int Nr, u8 block[16], int rounds);
45void rijndaelDecryptRound(const u32 rk[/*4*(Nr + 1)*/], int Nr, u8 block[16], int rounds);
46#endif /* INTERMEDIATE_VALUE_KAT */
47
48#endif /* __RIJNDAEL_ALG_FST_H */
unsigned int u32
Definition: rijndael-alg-fst.h:36
int rijndaelKeySetupDec(u32 rk[], const u8 cipherKey[], int keyBits)
Definition: rijndael-alg-fst.c:864
void rijndaelDecrypt(const u32 rk[], int Nr, const u8 ct[16], u8 pt[16])
Definition: rijndael-alg-fst.c:1089
int rijndaelKeySetupEnc(u32 rk[], const u8 cipherKey[], int keyBits)
Definition: rijndael-alg-fst.c:774
void rijndaelEncrypt(const u32 rk[], int Nr, const u8 pt[16], u8 ct[16])
Definition: rijndael-alg-fst.c:908
unsigned short u16
Definition: rijndael-alg-fst.h:35
unsigned char u8
Definition: rijndael-alg-fst.h:34
int Nr
Definition: rijndael-mikescott.c:67
Definition: tar-FromRedHatCD.h:228