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

(_NETTLE_CIPHER_SEP): New macro, useful for

algorithms with separate encyption and decryption key setup.

Rev: src/nettle/nettle-meta.h:1.6
parent 53c6d0f1
......@@ -68,6 +68,17 @@ struct nettle_cipher
(nettle_crypt_func) name##_decrypt, \
}
#define _NETTLE_CIPHER_SEP(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##_encrypt, \
(nettle_crypt_func) name##_decrypt, \
}
#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