summaryrefslogtreecommitdiff
path: root/nettle-internal.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2014-01-26 21:35:40 +0100
committerNiels Möller <nisse@lysator.liu.se>2014-01-26 21:35:40 +0100
commite57d2fe2e0385f219e1e4f7adc051ad6b98905c1 (patch)
treebe39f15d6a3132030e6c873315c25657c3fb1859 /nettle-internal.h
parent187631fa9c0b08e1bcb22e5580b11e6be909dd4b (diff)
downloadnettle-e57d2fe2e0385f219e1e4f7adc051ad6b98905c1.tar.gz
New gcm-aes interface.
Diffstat (limited to 'nettle-internal.h')
-rw-r--r--nettle-internal.h15
1 files changed, 1 insertions, 14 deletions
diff --git a/nettle-internal.h b/nettle-internal.h
index 19e242c9..b5a168e5 100644
--- a/nettle-internal.h
+++ b/nettle-internal.h
@@ -103,25 +103,12 @@ struct nettle_aead
};
#define _NETTLE_AEAD(type, TYPE, name, key_size) { \
- #type "-" #name #key_size, \
- sizeof(struct type##_##name##_ctx), \
- TYPE##_BLOCK_SIZE, \
- key_size / 8, \
- (nettle_set_key_func *) type##_##name##_set_key, \
- (nettle_set_key_func *) type##_##name##_set_iv, \
- (nettle_hash_update_func *) type##_##name##_update, \
- (nettle_crypt_func *) type##_##name##_encrypt, \
- (nettle_crypt_func *) type##_##name##_decrypt, \
- (nettle_hash_digest_func *) type##_##name##_digest, \
-}
-
-#define _NETTLE_AEAD_FIX(type, TYPE, name, key_size) { \
#type "-" #name, \
sizeof(struct type##_##name##_ctx), \
TYPE##_BLOCK_SIZE, \
key_size / 8, \
(nettle_set_key_func *) type##_##name##_set_key, \
- (nettle_set_key_func *) type##_##name##_set_iv, \
+ (nettle_set_key_func *) type##_##name##_set_nonce, \
(nettle_hash_update_func *) type##_##name##_update, \
(nettle_crypt_func *) type##_##name##_encrypt, \
(nettle_crypt_func *) type##_##name##_decrypt, \