summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/arc4.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/ipxe/arc4.h')
-rw-r--r--src/include/ipxe/arc4.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/include/ipxe/arc4.h b/src/include/ipxe/arc4.h
new file mode 100644
index 00000000..9da972b6
--- /dev/null
+++ b/src/include/ipxe/arc4.h
@@ -0,0 +1,22 @@
+#ifndef _IPXE_ARC4_H
+#define _IPXE_ARC4_H
+
+FILE_LICENCE ( GPL2_OR_LATER );
+
+struct cipher_algorithm;
+
+#include <stdint.h>
+
+struct arc4_ctx {
+ int i, j;
+ u8 state[256];
+};
+
+#define ARC4_CTX_SIZE sizeof ( struct arc4_ctx )
+
+extern struct cipher_algorithm arc4_algorithm;
+
+void arc4_skip ( const void *key, size_t keylen, size_t skip,
+ const void *src, void *dst, size_t msglen );
+
+#endif /* _IPXE_ARC4_H */