From b5f0874cd96ee2a62aabc645b9626c2749cb6a01 Mon Sep 17 00:00:00 2001 From: manuel Date: Mon, 26 Mar 2012 12:54:45 +0200 Subject: initial pintos checkin --- pintos-progos/tests/arc4.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pintos-progos/tests/arc4.h (limited to 'pintos-progos/tests/arc4.h') 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 @@ +#ifndef TESTS_ARC4_H +#define TESTS_ARC4_H + +#include +#include + +/* Alleged RC4 algorithm encryption state. */ +struct arc4 + { + uint8_t s[256]; + uint8_t i, j; + }; + +void arc4_init (struct arc4 *, const void *, size_t); +void arc4_crypt (struct arc4 *, void *, size_t); + +#endif /* tests/arc4.h */ -- cgit v1.2.3