Skip to content
Snippets Groups Projects
Commit 2178bae2 authored by Niels Möller's avatar Niels Möller
Browse files

(YARROW_KEY_EVENT_BUFFER): New constant.

Rev: src/nettle/yarrow.h:1.6
parent bdcc117b
No related branches found
No related tags found
No related merge requests found
...@@ -57,7 +57,7 @@ struct yarrow160_ctx ...@@ -57,7 +57,7 @@ struct yarrow160_ctx
void void
yarrow160_init(struct yarrow160_ctx *ctx, yarrow160_init(struct yarrow160_ctx *ctx,
int nsources, unsigned nsources,
struct yarrow_source *sources); struct yarrow_source *sources);
void void
...@@ -89,7 +89,7 @@ struct yarrow256_ctx ...@@ -89,7 +89,7 @@ struct yarrow256_ctx
void void
yarrow256_init(struct yarrow256_ctx *ctx, yarrow256_init(struct yarrow256_ctx *ctx,
int nsources, unsigned nsources,
struct yarrow_source *sources); struct yarrow_source *sources);
void void
...@@ -104,11 +104,13 @@ int ...@@ -104,11 +104,13 @@ int
yarrow256_seeded(struct yarrow256_ctx *ctx); yarrow256_seeded(struct yarrow256_ctx *ctx);
/* Key event estimator */ /* Key event estimator */
#define YARROW_KEY_EVENT_BUFFER 16
struct yarrow_key_event_ctx struct yarrow_key_event_ctx
{ {
/* Counter for initial priming of the state */ /* Counter for initial priming of the state */
unsigned index; unsigned index;
unsigned chars[16]; unsigned chars[YARROW_KEY_EVENT_BUFFER];
unsigned previous; unsigned previous;
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment