Coda Distributed File System
|
Macros | |
#define | ROTL(x, n) (((x) << (n)) | ((x) >> (32 - (n)))) |
#define | ROTR(x, n) (((x) >> (n)) | ((x) << (32 - (n)))) |
#define | BYTESWAP(x) |
#define | GETU32(p) BYTESWAP(*((u32 *)(p))) |
#define | PUTU32(ct, st) { *((u32 *)(ct)) = BYTESWAP(st); } |
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]) |
#define BYTESWAP | ( | x | ) |
#define ROTL | ( | x, | |
n | |||
) | (((x) << (n)) | ((x) >> (32 - (n)))) |
#define ROTR | ( | x, | |
n | |||
) | (((x) >> (n)) | ((x) << (32 - (n)))) |
Expand the cipher key into the decryption key schedule.