X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=arcfour.h;h=23fb458aad26cb272a24806b6166de15c8cfe3b3;hp=1f5af2fe6ce82445e119cb64620b813e7dd251ce;hb=c58f43febaefd188708dca010198629c0935728c;hpb=b07fb998ba047b641edb843e73f5284fe5fff9af diff --git a/arcfour.h b/arcfour.h index 1f5af2f..23fb458 100644 --- 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