summaryrefslogtreecommitdiff
path: root/nettle-meta.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2011-02-14 12:32:45 +0100
committerNiels Möller <nisse@lysator.liu.se>2011-02-14 12:32:45 +0100
commit1c7bddc1723a42e0fa40d0762bfa1101ece01962 (patch)
treefe5d50620f7463a67618e5b0813a1bc250d13284 /nettle-meta.h
parent90c7e8d6a241056fd4e7d204bbee4f940a0500e7 (diff)
downloadnettle-1c7bddc1723a42e0fa40d0762bfa1101ece01962.tar.gz
Renamed some macro arguments.
Rev: nettle/nettle-meta.h:1.9
Diffstat (limited to 'nettle-meta.h')
-rw-r--r--nettle-meta.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/nettle-meta.h b/nettle-meta.h
index c02d146f..2a009546 100644
--- a/nettle-meta.h
+++ b/nettle-meta.h
@@ -52,33 +52,33 @@ struct nettle_cipher
nettle_crypt_func *decrypt;
};
-#define _NETTLE_CIPHER(name, NAME, keysize) { \
- #name #keysize, \
+#define _NETTLE_CIPHER(name, NAME, key_size) { \
+ #name #key_size, \
sizeof(struct name##_ctx), \
NAME##_BLOCK_SIZE, \
- keysize / 8, \
+ key_size / 8, \
(nettle_set_key_func *) name##_set_key, \
(nettle_set_key_func *) name##_set_key, \
(nettle_crypt_func *) name##_encrypt, \
(nettle_crypt_func *) name##_decrypt, \
}
-#define _NETTLE_CIPHER_SEP(name, NAME, keysize) { \
- #name #keysize, \
+#define _NETTLE_CIPHER_SEP(name, NAME, key_size) { \
+ #name #key_size, \
sizeof(struct name##_ctx), \
NAME##_BLOCK_SIZE, \
- keysize / 8, \
+ key_size / 8, \
(nettle_set_key_func *) name##_set_encrypt_key, \
(nettle_set_key_func *) name##_set_decrypt_key, \
(nettle_crypt_func *) name##_encrypt, \
(nettle_crypt_func *) name##_decrypt, \
}
-#define _NETTLE_CIPHER_SEP_SET_KEY(name, NAME, keysize) {\
- #name #keysize, \
+#define _NETTLE_CIPHER_SEP_SET_KEY(name, NAME, key_size) {\
+ #name #key_size, \
sizeof(struct name##_ctx), \
NAME##_BLOCK_SIZE, \
- keysize / 8, \
+ key_size / 8, \
(nettle_set_key_func *) name##_set_encrypt_key, \
(nettle_set_key_func *) name##_set_decrypt_key, \
(nettle_crypt_func *) name##_crypt, \