diff options
author | Niels Möller <nisse@lysator.liu.se> | 2014-01-25 09:10:50 +0100 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2014-01-26 21:22:14 +0100 |
commit | 187631fa9c0b08e1bcb22e5580b11e6be909dd4b (patch) | |
tree | 6784a8f545d309d57e4195a5f4c123a07dfaa7c7 /gcm.c | |
parent | d0c86a102f63c29ca05e9445c24c40effa809547 (diff) | |
download | nettle-187631fa9c0b08e1bcb22e5580b11e6be909dd4b.tar.gz |
Comment fixes.
Diffstat (limited to 'gcm.c')
-rw-r--r-- | gcm.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -7,9 +7,6 @@ * http://www.cryptobarn.com/papers/gcm-spec.pdf. */ -/* NOTE: Tentative interface, subject to change. No effort will be - made to avoid incompatible changes. */ - /* nettle, low-level cryptographics library * * Copyright (C) 2011 Niels Möller @@ -389,10 +386,7 @@ gcm_hash_sizes(const struct gcm_key *key, union nettle_block16 *x, gcm_hash(key, x, GCM_BLOCK_SIZE, buffer); } -/* - * @length: The size of the iv (fixed for now to GCM_NONCE_SIZE) - * @iv: The iv - */ +/* NOTE: The key is needed only if length != GCM_IV_SIZE */ void gcm_set_iv(struct gcm_ctx *ctx, const struct gcm_key *key, size_t length, const uint8_t *iv) |