summaryrefslogtreecommitdiffstats
path: root/pintos-progos/tests/arc4.h
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2012-03-26 12:54:45 +0200
committermanuel <manuel@mausz.at>2012-03-26 12:54:45 +0200
commitb5f0874cd96ee2a62aabc645b9626c2749cb6a01 (patch)
tree1262e4bbe0634de6650be130c36e0538240f4cbf /pintos-progos/tests/arc4.h
downloadprogos-b5f0874cd96ee2a62aabc645b9626c2749cb6a01.tar.gz
progos-b5f0874cd96ee2a62aabc645b9626c2749cb6a01.tar.bz2
progos-b5f0874cd96ee2a62aabc645b9626c2749cb6a01.zip
initial pintos checkin
Diffstat (limited to 'pintos-progos/tests/arc4.h')
-rw-r--r--pintos-progos/tests/arc4.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/pintos-progos/tests/arc4.h b/pintos-progos/tests/arc4.h
new file mode 100644
index 0000000..61c533a
--- /dev/null
+++ b/pintos-progos/tests/arc4.h
@@ -0,0 +1,17 @@
1#ifndef TESTS_ARC4_H
2#define TESTS_ARC4_H
3
4#include <stddef.h>
5#include <stdint.h>
6
7/* Alleged RC4 algorithm encryption state. */
8struct arc4
9 {
10 uint8_t s[256];
11 uint8_t i, j;
12 };
13
14void arc4_init (struct arc4 *, const void *, size_t);
15void arc4_crypt (struct arc4 *, void *, size_t);
16
17#endif /* tests/arc4.h */