Botan
1.11.15
|
00001 /* 00002 * Stream Cipher Utility Header 00003 * (C) 2015 Jack Lloyd 00004 * 00005 * Botan is released under the Simplified BSD License (see license.txt) 00006 */ 00007 00008 #ifndef BOTAN_STREAM_CIPHER_UTILS_H__ 00009 #define BOTAN_STREAM_CIPHER_UTILS_H__ 00010 00011 #include <botan/stream_cipher.h> 00012 #include <botan/internal/algo_registry.h> 00013 #include <botan/loadstor.h> 00014 #include <botan/rotate.h> 00015 #include <botan/internal/xor_buf.h> 00016 #include <algorithm> 00017 00018 namespace Botan { 00019 00020 #define BOTAN_REGISTER_STREAM_CIPHER(name, maker) BOTAN_REGISTER_T(StreamCipher, name, maker) 00021 #define BOTAN_REGISTER_STREAM_CIPHER_NOARGS(name) BOTAN_REGISTER_T_NOARGS(StreamCipher, name) 00022 00023 #define BOTAN_REGISTER_STREAM_CIPHER_1LEN(name, def) BOTAN_REGISTER_T_1LEN(StreamCipher, name, def) 00024 00025 #define BOTAN_REGISTER_STREAM_CIPHER_NAMED_NOARGS(type, name) BOTAN_REGISTER_NAMED_T(StreamCipher, name, type, make_new_T<type>) 00026 #define BOTAN_REGISTER_STREAM_CIPHER_NAMED_1LEN(type, name, def) \ 00027 BOTAN_REGISTER_NAMED_T(StreamCipher, name, type, (make_new_T_1len<type,def>)) 00028 00029 } 00030 00031 #endif