diff options
author | Niels Möller <nisse@lysator.liu.se> | 2001-10-09 18:28:00 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2001-10-09 18:28:00 +0200 |
commit | 2178bae284a33b33f20a89944817765aa6fc0f8d (patch) | |
tree | d0902f48091453e8c9f28f7922a6047322d0535a /yarrow.h | |
parent | bdcc117bd0ef1cd5e70e639a30c7adba801882ad (diff) | |
download | nettle-2178bae284a33b33f20a89944817765aa6fc0f8d.tar.gz |
(YARROW_KEY_EVENT_BUFFER): New constant.
Rev: src/nettle/yarrow.h:1.6
Diffstat (limited to 'yarrow.h')
-rw-r--r-- | yarrow.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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; }; |