Commit dfb71dc4 authored by Niels Möller's avatar Niels Möller

(_NETTLE_CIPHER_SEP_SET_KEY): New macro.

Rev: nettle/nettle-meta.h:1.7
parent 13962f42
......@@ -74,6 +74,17 @@ struct nettle_cipher
(nettle_crypt_func *) name##_decrypt, \
}
#define _NETTLE_CIPHER_SEP_SET_KEY(name, NAME, keysize) {\
#name #keysize, \
sizeof(struct name##_ctx), \
NAME##_BLOCK_SIZE, \
keysize / 8, \
(nettle_set_key_func *) name##_set_encrypt_key, \
(nettle_set_key_func *) name##_set_decrypt_key, \
(nettle_crypt_func *) name##_crypt, \
(nettle_crypt_func *) name##_crypt, \
}
#define _NETTLE_CIPHER_FIX(name, NAME, keysize) { \
#name, \
sizeof(struct name##_ctx), \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment