aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/utils/block_input.hpp
blob: 0bcabbb27cd86b23cf43d50a5a091fea06a8ce22 (plain) (tree)
1
2
3
4



                                                             










                 



                                                                




                                                      


                                                                


















                                                                        
// Copyright (c) 2015 Egor Tensin <Egor.Tensin@gmail.com>
// This file is part of the "AES tools" project.
// For details, see https://github.com/egor-tensin/aes-tools.
// Distributed under the MIT License.

#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;
    };
}