aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/utils/block_input.hpp
blob: 549e3f26ca73625c661f3eed10b712a73a7886bf (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
// 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 <utility>
#include <vector>

namespace
{
    class Input
    {
    public:
        Input(const std::string& key, const std::string& iv, std::vector<std::string>&& blocks)
            : key{key}
            , iv{iv}
            , blocks{std::move(blocks)}
        { }

        Input(const std::string& key, std::vector<std::string>&& blocks)
            : key{key}
            , blocks{std::move(blocks)}
        { }

        const std::string key;
        const std::string iv;
        const std::vector<std::string> blocks;
    };
}