diff options
author | Niels Möller <nisse@lysator.liu.se> | 2011-02-13 15:33:07 +0100 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2011-02-13 15:33:07 +0100 |
commit | 4961af0a52912d3bc43518d8d5ba17b7f8d60561 (patch) | |
tree | 5b241dd585161084b2cebcfa6611f6985a758d6b /gcm.c | |
parent | ccba0ebe59d083f04e865375aaf2ff441561fcc1 (diff) | |
download | nettle-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |