diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2015-12-28 03:26:46 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2015-12-28 03:26:46 +0300 |
commit | 6fe0f155b0a0daa5affe1482da50cbe152358b07 (patch) | |
tree | a305e26159bcb266c02cd8e9f9292bad839bda79 /utils/block_input.hpp | |
parent | utils: refactoring (diff) | |
download | aes-tools-6fe0f155b0a0daa5affe1482da50cbe152358b07.tar.gz aes-tools-6fe0f155b0a0daa5affe1482da50cbe152358b07.zip |
utils: interface update & refactoring
Diffstat (limited to '')
-rw-r--r-- | utils/block_input.hpp | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/utils/block_input.hpp b/utils/block_input.hpp new file mode 100644 index 0000000..343bb2a --- /dev/null +++ b/utils/block_input.hpp @@ -0,0 +1,47 @@ +/** + * \file + * \author Egor Tensin <Egor.Tensin@gmail.com> + * \date 2015 + * \copyright This file is licensed under the terms of the MIT License. + * See LICENSE.txt for details. + */ + +#pragma once + +#include <string> +#include <vector> + +namespace +{ + class Input + { + public: + Input(const std::string& key_string, + const std::string& iv_string, + const std::vector<std::string>& input_block_strings) + : key_string(key_string) + , iv_string(iv_string) + , input_block_strings(input_block_strings) + { } + + Input(const std::string& key_string, + const std::vector<std::string>& input_block_strings) + : key_string(key_string) + , input_block_strings(input_block_strings) + { } + + const std::string& get_key_string() const { return key_string; } + + const std::string& get_iv_string() const { return iv_string; } + + const std::vector<std::string>& get_input_block_strings() const + { + return input_block_strings; + } + + private: + const std::string key_string; + const std::string iv_string; + const std::vector<std::string> input_block_strings; + }; +} |