]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - arcfour.h
changed arcfour api
[avr-crypto-lib.git] / arcfour.h
index 1f5af2fe6ce82445e119cb64620b813e7dd251ce..23fb458aad26cb272a24806b6166de15c8cfe3b3 100644 (file)
--- a/arcfour.h
+++ b/arcfour.h
@@ -74,7 +74,7 @@ typedef struct arcfour_ctx_st {
  * \param length_B length of the key in bytes (between 1 and 255)
  */
  
-void arcfour_init(arcfour_ctx_t *ctx, void *key, uint8_t length_B);
+void arcfour_init(const void *key, uint8_t length_B, arcfour_ctx_t *ctx);
 
 /** \fn uint8_t arcfour_gen(arcfour_ctx_t *ctx)
  * \brief generates a byte of keystream