aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/utils/block_input.hpp
blob: 343bb2a9d814bc20382d003b404c51cdea739ee3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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;
    };
}