Transaction-Level Modeling Framework for Space Applications
Classes | |
struct | test8 |
Macros | |
#define | ENCRYPT 1 |
#define | DECRYPT 0 |
#define | KEY_SZ 8 |
#define | ITERATIONS 128 |
#define | HALF_ITERATIONS 64 |
#define | c2l(c, l) |
#define | c2ln(c, l1, l2, n) |
#define | l2c(l, c) |
#define | l2cn(l1, l2, c, n) |
#define | PERM_OP(a, b, t, n, m) |
#define | HPERM_OP(a, t, n, m) |
#define | D_ENCRYPT(L, R, S) |
#define | NTESTS (sizeof(test8)/sizeof(test8[0])) |
Typedefs | |
typedef unsigned char | uchar |
typedef unsigned short | ushort |
typedef unsigned int | uint |
typedef unsigned long | ulong |
Functions | |
void | des_set_key (unsigned char *key, void *schedule) |
int | des_encrypt (ulong *, ulong *, ulong *, int) |
int | des_ecb_encrypt (unsigned char *input, unsigned char *output, void *ks, int encrypt) |
int | beq (unsigned char *a, unsigned char *b, int z) |
int | main () |
Variables | |
ulong * | input |
ulong * | output |
ulong * | ks |
int | encrypt |
struct test8 | test8 [] |
unsigned long | keys [32] |
#define c2l | ( | c, | |
l | |||
) |
Referenced by des_ecb_encrypt(), and des_set_key().
#define D_ENCRYPT | ( | L, | |
R, | |||
S | |||
) |
Referenced by des_encrypt().
#define DECRYPT 0 |
#define ENCRYPT 1 |
Referenced by main().
#define HALF_ITERATIONS 64 |
#define HPERM_OP | ( | a, | |
t, | |||
n, | |||
m | |||
) |
Referenced by des_set_key().
#define ITERATIONS 128 |
Referenced by des_set_key().
#define KEY_SZ 8 |
#define l2c | ( | l, | |
c | |||
) |
#define PERM_OP | ( | a, | |
b, | |||
t, | |||
n, | |||
m | |||
) |
Referenced by des_encrypt(), and des_set_key().
typedef unsigned long ulong |
typedef unsigned short ushort |
void des_set_key | ( | unsigned char * | key, |
void * | schedule | ||
) |
int main | ( | void | ) |
References test8::cipher, des_ecb_encrypt(), des_set_key(), ENCRYPT, i, test8::key, keys, NTESTS, and test8::plain.
int encrypt |
ulong* input |
unsigned long keys[32] |
ulong* ks |
ulong* output |