Make tests public. Rewrite most tests. Add tests.
[pintos-anon] / src / tests / arc4.h
diff --git a/src/tests/arc4.h b/src/tests/arc4.h
new file mode 100644 (file)
index 0000000..61c533a
--- /dev/null
@@ -0,0 +1,17 @@
+#ifndef TESTS_ARC4_H
+#define TESTS_ARC4_H
+
+#include <stddef.h>
+#include <stdint.h>
+
+/* 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 */