#include "arcfour.h"
+/** @brief Encrypt using Arcfour stream cipher
+ * @param context Context structure
+ * @param inbuf Input buffer
+ * @param outbuf Output buffer
+ * @param length Number of bytes in @p inbuf
+ *
+ * Copies from @p inbuf to @p outbuf, encrypting (or decrypting) using
+ * the stream controlled by @p context.
+ */
void
arcfour_stream (arcfour_context * context, const char *inbuf, char *outbuf,
size_t length)
context->idx_j = j;
}
+/** @brief Initialize an @ref arcfour_context
+ * @param context Context structure
+ * @param key Key data
+ * @param keylen Length of key
+ *
+ * Initializes @p context using @p key.
+ */
void
arcfour_setkey (arcfour_context * context, const char *key, size_t keylen)
{