98#if defined(BOTAN_HAS_COMMONCRYPTO)
116#if defined(BOTAN_HAS_AES)
117 if(algo ==
"AES-128") {
118 return std::make_unique<AES_128>();
121 if(algo ==
"AES-192") {
122 return std::make_unique<AES_192>();
125 if(algo ==
"AES-256") {
126 return std::make_unique<AES_256>();
130#if defined(BOTAN_HAS_ARIA)
131 if(algo ==
"ARIA-128") {
132 return std::make_unique<ARIA_128>();
135 if(algo ==
"ARIA-192") {
136 return std::make_unique<ARIA_192>();
139 if(algo ==
"ARIA-256") {
140 return std::make_unique<ARIA_256>();
144#if defined(BOTAN_HAS_SERPENT)
145 if(algo ==
"Serpent") {
146 return std::make_unique<Serpent>();
150#if defined(BOTAN_HAS_SHACAL2)
151 if(algo ==
"SHACAL2") {
152 return std::make_unique<SHACAL2>();
156#if defined(BOTAN_HAS_TWOFISH)
157 if(algo ==
"Twofish") {
158 return std::make_unique<Twofish>();
162#if defined(BOTAN_HAS_THREEFISH_512)
163 if(algo ==
"Threefish-512") {
164 return std::make_unique<Threefish_512>();
168#if defined(BOTAN_HAS_BLOWFISH)
169 if(algo ==
"Blowfish") {
170 return std::make_unique<Blowfish>();
174#if defined(BOTAN_HAS_CAMELLIA)
175 if(algo ==
"Camellia-128") {
176 return std::make_unique<Camellia_128>();
179 if(algo ==
"Camellia-192") {
180 return std::make_unique<Camellia_192>();
183 if(algo ==
"Camellia-256") {
184 return std::make_unique<Camellia_256>();
188#if defined(BOTAN_HAS_DES)
190 return std::make_unique<DES>();
193 if(algo ==
"TripleDES" || algo ==
"3DES" || algo ==
"DES-EDE") {
194 return std::make_unique<TripleDES>();
198#if defined(BOTAN_HAS_NOEKEON)
199 if(algo ==
"Noekeon") {
200 return std::make_unique<Noekeon>();
204#if defined(BOTAN_HAS_CAST_128)
205 if(algo ==
"CAST-128" || algo ==
"CAST5") {
206 return std::make_unique<CAST_128>();
210#if defined(BOTAN_HAS_IDEA)
212 return std::make_unique<IDEA>();
216#if defined(BOTAN_HAS_KUZNYECHIK)
217 if(algo ==
"Kuznyechik") {
218 return std::make_unique<Kuznyechik>();
222#if defined(BOTAN_HAS_SEED)
224 return std::make_unique<SEED>();
228#if defined(BOTAN_HAS_SM4)
230 return std::make_unique<SM4>();
236#if defined(BOTAN_HAS_GOST_28147_89)
237 if(
auto m = req.
match(
"GOST-28147-89({params:str=R3411_94_TestParam})")) {
238 return std::make_unique<GOST_28147_89>(m->str(
"params"));
242#if defined(BOTAN_HAS_CASCADE)
243 if(
auto m = req.
match(
"Cascade({cipher1},{cipher2})")) {
248 return std::make_unique<Cascade_Cipher>(std::move(c1), std::move(c2));
253#if defined(BOTAN_HAS_LION)
254 if(
auto m = req.
match(
"Lion({hash},{stream},{block_size:int=1024})")) {
259 return std::make_unique<Lion>(std::move(hash), std::move(stream), m->integer(
"block_size"));