summaryrefslogtreecommitdiff
path: root/gcm.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2011-02-13 15:33:07 +0100
committerNiels Möller <nisse@lysator.liu.se>2011-02-13 15:33:07 +0100
commit4961af0a52912d3bc43518d8d5ba17b7f8d60561 (patch)
tree5b241dd585161084b2cebcfa6611f6985a758d6b /gcm.c
parentccba0ebe59d083f04e865375aaf2ff441561fcc1 (diff)
downloadnettle-4961af0a52912d3bc43518d8d5ba17b7f8d60561.tar.gz
* gcm.h (GCM_UPDATE): Renamed, from...
(GCM_AUTH): ...old name. * gcm-aes.c (gcm_aes_update): Renamed, from... (gcm_aes_auth): ...old name. * gcm.c (gcm_update): Renamed, and fixed an assert. From... (gcm_auth): ...old name. Rev: nettle/ChangeLog:1.150 Rev: nettle/gcm-aes.c:1.3 Rev: nettle/gcm.c:1.14 Rev: nettle/gcm.h:1.11
Diffstat (limited to 'gcm.c')
-rw-r--r--gcm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcm.c b/gcm.c
index b83bb00f..c95d1fb4 100644
--- a/gcm.c
+++ b/gcm.c
@@ -411,11 +411,11 @@ gcm_set_iv(struct gcm_ctx *ctx, const struct gcm_key *key,
}
void
-gcm_auth(struct gcm_ctx *ctx, const struct gcm_key *key,
- unsigned length, const uint8_t *data)
+gcm_update(struct gcm_ctx *ctx, const struct gcm_key *key,
+ unsigned length, const uint8_t *data)
{
assert(ctx->auth_size % GCM_BLOCK_SIZE == 0);
- assert(ctx->data_size % GCM_BLOCK_SIZE == 0);
+ assert(ctx->data_size == 0);
gcm_hash(key, &ctx->x, length, data);