]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
* yarrow.h (struct yarrow_key_event_ctx): New struct.
authorNiels Möller <nisse@lysator.liu.se>
Mon, 8 Oct 2001 20:57:34 +0000 (22:57 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Mon, 8 Oct 2001 20:57:34 +0000 (22:57 +0200)
Rev: src/nettle/ChangeLog:1.36
Rev: src/nettle/yarrow.h:1.5

ChangeLog
yarrow.h

index f21958d108a01eaa283c02928217ac3fdd241ac2..b634e6f9c274f9639e3e281527d82b4dd7c972f7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2001-10-08  Niels Möller  <nisse@cuckoo.hack.org>
 
+       * yarrow.h (struct yarrow_key_event_ctx): New struct.
+
        * yarrow256.c (yarrow_fast_reseed): Generate two block of output
        using the old key and feed into the pool.
 
index 464f9947740d400175f5b4e79707c4d887683d18..1f4fec9795c7093d098c4bf52fffbe61127750ee 100644 (file)
--- a/yarrow.h
+++ b/yarrow.h
@@ -103,5 +103,20 @@ yarrow256_random(struct yarrow256_ctx *ctx, unsigned length, uint8_t *dst);
 int
 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 */