summaryrefslogtreecommitdiff
path: root/gcm-aes.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-aes.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-aes.c')
-rw-r--r--gcm-aes.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gcm-aes.c b/gcm-aes.c
index 74de82c8..f210403d 100644
--- a/gcm-aes.c
+++ b/gcm-aes.c
@@ -39,13 +39,11 @@ gcm_aes_set_iv(struct gcm_aes_ctx *ctx,
gcm_set_iv(&ctx->gcm, &ctx->key, length, iv);
}
-/* FIXME: Rename to gcm_aes_update, for consistency with other hash
- and mac functions? */
void
-gcm_aes_auth(struct gcm_aes_ctx *ctx, unsigned length, const uint8_t *data)
+gcm_aes_update(struct gcm_aes_ctx *ctx, unsigned length, const uint8_t *data)
{
- GCM_AUTH(ctx, (nettle_crypt_func *) aes_encrypt,
- length, data);
+ GCM_UPDATE(ctx, (nettle_crypt_func *) aes_encrypt,
+ length, data);
}
void