with the digest of the slow pool.
(yarrow256_init): Initialize seed_file and counter to zero, to
ease debugging.
Rev: src/nettle/yarrow256.c:1.14
ctx->seeded = 0;
+ /* Not strictly, necessary, but it makes it easier to see if the
+ * values are sane. */
+ memset(ctx->seed_file, 0, YARROW256_SEED_FILE_SIZE);
+ memset(ctx->counter, 0, sizeof(ctx->counter));
+
ctx->nsources = n;
ctx->sources = s;
sha256_init(&ctx->pools[YARROW_SLOW]);
/* Feed it into the fast pool */
- sha256_update(&ctx->pools[YARROW_SLOW], sizeof(digest), digest);
+ sha256_update(&ctx->pools[YARROW_FAST], sizeof(digest), digest);
yarrow_fast_reseed(ctx);