diff options
author | Niels Möller <nisse@lysator.liu.se> | 2013-04-26 10:28:57 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2013-04-26 10:28:57 +0200 |
commit | b8bfc32ff2fe1084614332bdda4d3b7805f62da0 (patch) | |
tree | 89051484ba8b04a534128414f971115e42de7132 /gcm.c | |
parent | fc05e5448e27c5436186b5c51a81772d440bf134 (diff) | |
download | nettle-b8bfc32ff2fe1084614332bdda4d3b7805f62da0.tar.gz |
Use size_t rather than unsigned for all hash-related functions.
Diffstat (limited to 'gcm.c')
-rw-r--r-- | gcm.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -349,7 +349,7 @@ gcm_set_key(struct gcm_key *key, static void gcm_hash(const struct gcm_key *key, union gcm_block *x, - unsigned length, const uint8_t *data) + size_t length, const uint8_t *data) { for (; length >= GCM_BLOCK_SIZE; length -= GCM_BLOCK_SIZE, data += GCM_BLOCK_SIZE) @@ -412,7 +412,7 @@ gcm_set_iv(struct gcm_ctx *ctx, const struct gcm_key *key, void gcm_update(struct gcm_ctx *ctx, const struct gcm_key *key, - unsigned length, const uint8_t *data) + size_t length, const uint8_t *data) { assert(ctx->auth_size % GCM_BLOCK_SIZE == 0); assert(ctx->data_size == 0); @@ -488,7 +488,7 @@ gcm_decrypt(struct gcm_ctx *ctx, const struct gcm_key *key, void gcm_digest(struct gcm_ctx *ctx, const struct gcm_key *key, void *cipher, nettle_crypt_func *f, - unsigned length, uint8_t *digest) + size_t length, uint8_t *digest) { uint8_t buffer[GCM_BLOCK_SIZE]; |