File: arcfour.h

package info (click to toggle)
wipe 0.24-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 468 kB
  • sloc: ansic: 1,925; makefile: 93; perl: 85; sh: 27
file content (28 lines) | stat: -rw-r--r-- 504 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* wipe
 *
 * by Berke Durak
 *
 * Arcfour implementation, beta.
 *
 */

#ifndef ARCFOUR_H
#define ARCFOUR_H
#include <stdio.h>

#ifndef U32U16U8
typedef unsigned long u32;
typedef unsigned short u16;
typedef unsigned char u8;
#define U32U16U8
#endif

struct arcfour_KeySchedule {
	int i, j;
	u8 s[256];
};

void arcfour_SetupKey (u8 *k, int n, struct arcfour_KeySchedule *ks);
u8 arcfour_GetByte (struct arcfour_KeySchedule *ks);
void arcfour_Fill (struct arcfour_KeySchedule *ks, u8 *b, int n);
#endif