projects
/
pintos-anon
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
ccb260cd42e00254fd0a00d4f102763c3f3e29f3
[pintos-anon]
/
grading
/
lib
/
arc4.h
1
#ifndef ARC4_H
2
#define ARC4_H
3
4
#include <stddef.h>
5
#include <stdint.h>
6
7
/* Alleged RC4 algorithm encryption state. */
8
struct arc4
9
{
10
uint8_t s[256];
11
uint8_t i, j;
12
};
13
14
void arc4_init (struct arc4 *, const void *, size_t);
15
void arc4_crypt (struct arc4 *, void *, size_t);
16
17
18
#endif /* arc4.h */