summaryrefslogtreecommitdiff
path: root/gcm.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2013-04-26 10:28:57 +0200
committerNiels Möller <nisse@lysator.liu.se>2013-04-26 10:28:57 +0200
commitb8bfc32ff2fe1084614332bdda4d3b7805f62da0 (patch)
tree89051484ba8b04a534128414f971115e42de7132 /gcm.h
parentfc05e5448e27c5436186b5c51a81772d440bf134 (diff)
downloadnettle-b8bfc32ff2fe1084614332bdda4d3b7805f62da0.tar.gz
Use size_t rather than unsigned for all hash-related functions.
Diffstat (limited to 'gcm.h')
-rw-r--r--gcm.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcm.h b/gcm.h
index b42c9957..f50c7363 100644
--- a/gcm.h
+++ b/gcm.h
@@ -98,7 +98,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);
void
gcm_encrypt(struct gcm_ctx *ctx, const struct gcm_key *key,
@@ -113,7 +113,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);
/* Convenience macrology (not sure how useful it is) */
@@ -166,7 +166,7 @@ gcm_aes_set_iv(struct gcm_aes_ctx *ctx,
void
gcm_aes_update(struct gcm_aes_ctx *ctx,
- unsigned length, const uint8_t *data);
+ size_t length, const uint8_t *data);
void
gcm_aes_encrypt(struct gcm_aes_ctx *ctx,
@@ -177,7 +177,7 @@ gcm_aes_decrypt(struct gcm_aes_ctx *ctx,
size_t length, uint8_t *dst, const uint8_t *src);
void
-gcm_aes_digest(struct gcm_aes_ctx *ctx, unsigned length, uint8_t *digest);
+gcm_aes_digest(struct gcm_aes_ctx *ctx, size_t length, uint8_t *digest);
#ifdef __cplusplus
}