NetSim Source Code Help
Loading...
Searching...
No Matches
des_run.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for des_run.c:

Go to the source code of this file.

Macros

#define ENCRYPT   1
 
#define DECRYPT   0
 
#define uchar   unsigned char
 
#define uint   unsigned int
 

Functions

void key_schedule (uchar key[], uchar schedule[][6], uint mode)
 
void des_crypt (uchar in[], uchar out[], uchar key[][6])
 
void printtext (unsigned char hash[])
 
int des (char *buf, int *len)
 

Macro Definition Documentation

◆ DECRYPT

#define DECRYPT   0

Definition at line 6 of file des_run.c.

◆ ENCRYPT

#define ENCRYPT   1

Definition at line 5 of file des_run.c.

◆ uchar

#define uchar   unsigned char

Definition at line 7 of file des_run.c.

◆ uint

#define uint   unsigned int

Definition at line 8 of file des_run.c.

Function Documentation

◆ des()

int des ( char *  buf,
int *  len 
)

Definition at line 21 of file des_run.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ des_crypt()

void des_crypt ( uchar  in[],
uchar  out[],
uchar  key[][6] 
)

Definition at line 230 of file des.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ key_schedule()

void key_schedule ( uchar  key[],
uchar  schedule[][6],
uint  mode 
)

Definition at line 75 of file des.c.

Here is the caller graph for this function:

◆ printtext()

void printtext ( unsigned char  hash[])

Definition at line 13 of file des_run.c.