X-Git-Url: https://git.cryptolib.org/?p=avr-crypto-lib.git;a=blobdiff_plain;f=arcfour%2Farcfour.h;fp=arcfour%2Farcfour.h;h=d7bb60632c3e1a3db599dfb76074de6183da8b74;hp=d332d7f8ed1f384f6368b4bfe2f1ae6caded66ad;hb=66c915087d1f7b8eb7280be43c16e9588faf2e55;hpb=3f759a542ce8ba4ffbeb6d336a3557a8abbd3ad4 diff --git a/arcfour/arcfour.h b/arcfour/arcfour.h index d332d7f..d7bb606 100644 --- a/arcfour/arcfour.h +++ b/arcfour/arcfour.h @@ -71,10 +71,10 @@ typedef struct arcfour_ctx_st { * the supplied key of the given length. * \param ctx pointer to the context * \param key pointer to the key - * \param length_B length of the key in bytes (between 1 and 255) + * \param length_b length of the key in bits (between 8 and 2048) */ -void arcfour_init(const void *key, uint8_t length_B, arcfour_ctx_t *ctx); +void arcfour_init(const void *key, uint16_t length_b, arcfour_ctx_t *ctx); /** \fn uint8_t arcfour_gen(arcfour_ctx_t *ctx) * \brief generates a byte of keystream