diff options
Diffstat (limited to 'src/lib/block/block_cipher.cpp')
-rw-r--r-- | src/lib/block/block_cipher.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/lib/block/block_cipher.cpp b/src/lib/block/block_cipher.cpp index a0eafbd11..a3e17be4c 100644 --- a/src/lib/block/block_cipher.cpp +++ b/src/lib/block/block_cipher.cpp @@ -12,6 +12,10 @@ #include <botan/aes.h> #endif +#if defined(BOTAN_HAS_ARIA) + #include <botan/aria.h> +#endif + #if defined(BOTAN_HAS_BLOWFISH) #include <botan/blowfish.h> #endif @@ -132,6 +136,23 @@ BlockCipher::create(const std::string& algo, } #endif +#if defined(BOTAN_HAS_ARIA) + if(algo == "ARIA-128") + { + return std::unique_ptr<BlockCipher>(new ARIA_128); + } + + if(algo == "ARIA-192") + { + return std::unique_ptr<BlockCipher>(new ARIA_192); + } + + if(algo == "ARIA-256") + { + return std::unique_ptr<BlockCipher>(new ARIA_256); + } +#endif + #if defined(BOTAN_HAS_SERPENT) if(algo == "Serpent") { |