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

* yarrow.h (struct yarrow_key_event_ctx): New struct.

Rev: src/nettle/ChangeLog:1.36
Rev: src/nettle/yarrow.h:1.5
parent 0a8dcf44
No related branches found
No related tags found
No related merge requests found
2001-10-08 Niels Mller <nisse@cuckoo.hack.org> 2001-10-08 Niels Mller <nisse@cuckoo.hack.org>
* yarrow.h (struct yarrow_key_event_ctx): New struct.
* yarrow256.c (yarrow_fast_reseed): Generate two block of output * yarrow256.c (yarrow_fast_reseed): Generate two block of output
using the old key and feed into the pool. using the old key and feed into the pool.
......
...@@ -103,5 +103,20 @@ yarrow256_random(struct yarrow256_ctx *ctx, unsigned length, uint8_t *dst); ...@@ -103,5 +103,20 @@ yarrow256_random(struct yarrow256_ctx *ctx, unsigned length, uint8_t *dst);
int int
yarrow256_seeded(struct yarrow256_ctx *ctx); yarrow256_seeded(struct yarrow256_ctx *ctx);
/* Key event estimator */
struct yarrow_key_event_ctx
{
/* Counter for initial priming of the state */
unsigned index;
unsigned chars[16];
unsigned previous;
};
void
yarrow_key_event_init(struct yarrow_key_event_ctx *ctx);
unsigned
yarrow_key_event_estimate(struct yarrow_key_event_ctx *ctx,
unsigned key, unsigned time);
#endif /* NETTLE_YARROW_COMPAT_H_INCLUDED */ #endif /* NETTLE_YARROW_COMPAT_H_INCLUDED */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment