From: Niels Möller Date: Tue, 9 Oct 2001 16:28:00 +0000 (+0200) Subject: (YARROW_KEY_EVENT_BUFFER): New constant. X-Git-Tag: nettle_1.5_release_20020131~148 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2178bae284a33b33f20a89944817765aa6fc0f8d;p=thirdparty%2Fnettle.git (YARROW_KEY_EVENT_BUFFER): New constant. Rev: src/nettle/yarrow.h:1.6 --- diff --git a/yarrow.h b/yarrow.h index 1f4fec97..13be1950 100644 --- a/yarrow.h +++ b/yarrow.h @@ -57,7 +57,7 @@ struct yarrow160_ctx void yarrow160_init(struct yarrow160_ctx *ctx, - int nsources, + unsigned nsources, struct yarrow_source *sources); void @@ -89,7 +89,7 @@ struct yarrow256_ctx void yarrow256_init(struct yarrow256_ctx *ctx, - int nsources, + unsigned nsources, struct yarrow_source *sources); void @@ -104,11 +104,13 @@ int yarrow256_seeded(struct yarrow256_ctx *ctx); /* Key event estimator */ +#define YARROW_KEY_EVENT_BUFFER 16 + struct yarrow_key_event_ctx { /* Counter for initial priming of the state */ unsigned index; - unsigned chars[16]; + unsigned chars[YARROW_KEY_EVENT_BUFFER]; unsigned previous; };