libsymmetric_a_SOURCES = desCode.h desKerb.c desUtil.c desQuick.c \
$(BUILT_SOURCES) \
- sha.c md5.c idea.c rc4.c cast.c blowfish.c
+ sha.c md5.c idea.c arcfour.c cast.c blowfish.c
# Generate DES headers.
$(des_headers): desdata
-/* rc4.c
+/* arcfour.c
*
*/
#include "crypto_types.h"
-#include <rc4.h>
+#include <arcfour.h>
#ifdef RCSID
RCSID("$Id$");
#define SWAP(a,b) do { int _t = a; a = b; b = _t; } while(0)
-void rc4_set_key(struct rc4_ctx *ctx, const UINT8 *key, UINT32 len)
+void arcfour_set_key(struct arcfour_ctx *ctx, const UINT8 *key, UINT32 len)
{
register UINT8 j; /* Depends on the eight-bitness of these variables. */
unsigned i;
ctx->i = ctx->j = 0;
}
-void rc4_crypt(struct rc4_ctx *ctx, UINT8 *dest, const UINT8 *src, UINT32 len)
+void arcfour_crypt(struct arcfour_ctx *ctx, UINT8 *dest,
+ const UINT8 *src, UINT32 len)
{
register UINT8 i, j;
--- /dev/null
+/*
+ * $Id$
+ */
+
+#ifndef ARCFOUR_H_INCLUDED
+#define ARCFOUR_H_INCLUDED
+
+#include "crypto_types.h"
+
+struct arcfour_ctx {
+ UINT8 S[256];
+ UINT8 i, j;
+};
+
+#if 0
+void arcfour_init(struct arcfour_ctx *ctx);
+#endif
+
+void arcfour_set_key(struct arcfour_ctx *ctx, const UINT8 *key, UINT32 len);
+void arcfour_crypt(struct arcfour_ctx *ctx, UINT8 *dest,
+ const UINT8 *src, UINT32 len);
+
+#endif /* ARCFOUR_H_INCLUDED */
+++ /dev/null
-/*
- * $Id$
- */
-
-#ifndef RC4_H_INCLUDED
-#define RC4_H_INCLUDED
-
-#include "crypto_types.h"
-
-struct rc4_ctx {
- UINT8 S[256];
- UINT8 i, j;
-};
-
-#if 0
-void rc4_init(struct rc4_ctx *ctx);
-#endif
-
-void rc4_set_key(struct rc4_ctx *ctx, const UINT8 *key, UINT32 len);
-void rc4_crypt(struct rc4_ctx *ctx, UINT8 *dest, const UINT8 *src, UINT32 len);
-
-#endif /* RC4_H_INCLUDED */