diff options
author | Niels Möller <nisse@lysator.liu.se> | 2013-04-26 10:53:36 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2013-04-26 10:53:36 +0200 |
commit | eb7c996e529a49b5eedeb064df275378486987d7 (patch) | |
tree | f994f68060f3f7d6d051035a3d50da8f589b9af3 /yarrow.h | |
parent | 220812bc32bbe7abeaacb80b8845f226ee2cd90e (diff) | |
download | nettle-eb7c996e529a49b5eedeb064df275378486987d7.tar.gz |
Use size_t rather than unsigned for randomness related functions.
Diffstat (limited to 'yarrow.h')
-rw-r--r-- | yarrow.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |