summaryrefslogtreecommitdiff
path: root/yarrow.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2013-04-26 10:53:36 +0200
committerNiels Möller <nisse@lysator.liu.se>2013-04-26 10:53:36 +0200
commiteb7c996e529a49b5eedeb064df275378486987d7 (patch)
treef994f68060f3f7d6d051035a3d50da8f589b9af3 /yarrow.h
parent220812bc32bbe7abeaacb80b8845f226ee2cd90e (diff)
downloadnettle-eb7c996e529a49b5eedeb064df275378486987d7.tar.gz
Use size_t rather than unsigned for randomness related functions.
Diffstat (limited to 'yarrow.h')
-rw-r--r--yarrow.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/yarrow.h b/yarrow.h
index 8a0de5f6..fc6ccf9c 100644
--- a/yarrow.h
+++ b/yarrow.h
@@ -87,17 +87,17 @@ yarrow256_init(struct yarrow256_ctx *ctx,
void
yarrow256_seed(struct yarrow256_ctx *ctx,
- unsigned length,
+ size_t length,
const uint8_t *seed_file);
/* Returns 1 on reseed */
int
yarrow256_update(struct yarrow256_ctx *ctx,
unsigned source, unsigned entropy,
- unsigned length, const uint8_t *data);
+ size_t length, const uint8_t *data);
void
-yarrow256_random(struct yarrow256_ctx *ctx, unsigned length, uint8_t *dst);
+yarrow256_random(struct yarrow256_ctx *ctx, size_t length, uint8_t *dst);
int
yarrow256_is_seeded(struct yarrow256_ctx *ctx);