Deleted Added
full compact
rijndael-api-fst.h (67958) rijndael-api-fst.h (78064)
1/* $KAME$ */
1/* $FreeBSD: head/sys/crypto/rijndael/rijndael-api-fst.h 78064 2001-06-11 12:39:29Z ume $ */
2/* $KAME: rijndael-api-fst.h,v 1.6 2001/05/27 00:23:23 itojun Exp $ */
2
3/*
4 * rijndael-api-fst.h v2.3 April '2000
5 *
6 * Optimised ANSI C code
7 *
8 * #define INTERMEDIATE_VALUE_KAT to generate the Intermediate Value Known Answer Test.
9 */

--- 40 unchanged lines hidden (view full) ---

50/* The structure for key information */
51typedef struct {
52 u_int8_t direction; /* Key used for encrypting or decrypting? */
53 int keyLen; /* Length of the key */
54 char keyMaterial[MAX_KEY_SIZE+1]; /* Raw key data in ASCII, e.g., user input or KAT values */
55 /* The following parameters are algorithm dependent, replace or add as necessary */
56 int ROUNDS; /* key-length-dependent number of rounds */
57 int blockLen; /* block length */
3
4/*
5 * rijndael-api-fst.h v2.3 April '2000
6 *
7 * Optimised ANSI C code
8 *
9 * #define INTERMEDIATE_VALUE_KAT to generate the Intermediate Value Known Answer Test.
10 */

--- 40 unchanged lines hidden (view full) ---

51/* The structure for key information */
52typedef struct {
53 u_int8_t direction; /* Key used for encrypting or decrypting? */
54 int keyLen; /* Length of the key */
55 char keyMaterial[MAX_KEY_SIZE+1]; /* Raw key data in ASCII, e.g., user input or KAT values */
56 /* The following parameters are algorithm dependent, replace or add as necessary */
57 int ROUNDS; /* key-length-dependent number of rounds */
58 int blockLen; /* block length */
58 u_int8_t keySched[RIJNDAEL_MAXROUNDS+1][4][4]; /* key schedule */
59 union {
60 u_int8_t xkS8[RIJNDAEL_MAXROUNDS+1][4][4]; /* key schedule */
61 u_int32_t xkS32[RIJNDAEL_MAXROUNDS+1][4]; /* key schedule */
62 } xKeySched;
63#define keySched xKeySched.xkS8
59} keyInstance;
60
61/* The structure for cipher information */
62typedef struct { /* changed order of the components */
63 u_int8_t mode; /* MODE_ECB, MODE_CBC, or MODE_CFB1 */
64 u_int8_t IV[MAX_IV_SIZE]; /* A possible Initialization Vector for ciphering */
65 /* Add any algorithm specific parameters needed here */
66 int blockLen; /* Sample: Handles non-128 bit block sizes (if available) */

--- 33 unchanged lines hidden ---
64} keyInstance;
65
66/* The structure for cipher information */
67typedef struct { /* changed order of the components */
68 u_int8_t mode; /* MODE_ECB, MODE_CBC, or MODE_CFB1 */
69 u_int8_t IV[MAX_IV_SIZE]; /* A possible Initialization Vector for ciphering */
70 /* Add any algorithm specific parameters needed here */
71 int blockLen; /* Sample: Handles non-128 bit block sizes (if available) */

--- 33 unchanged lines hidden ---