diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-22 18:09:30 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-22 18:09:30 +0200 |
| commit | 1f6cacd70c7309fd38b76a14ec7d58af04debe07 (patch) | |
| tree | a54b2af969552b34d47bff56f83338e55d5a8cf0 /aesxx/utils/helpers/block_input.hpp | |
| parent | aesxx/utils: refactoring (diff) | |
| download | aes-tools-1f6cacd70c7309fd38b76a14ec7d58af04debe07.tar.gz aes-tools-1f6cacd70c7309fd38b76a14ec7d58af04debe07.zip | |
aesxx/utils: move helper headers to helpers/
Diffstat (limited to 'aesxx/utils/helpers/block_input.hpp')
| -rw-r--r-- | aesxx/utils/helpers/block_input.hpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/aesxx/utils/helpers/block_input.hpp b/aesxx/utils/helpers/block_input.hpp new file mode 100644 index 0000000..042a680 --- /dev/null +++ b/aesxx/utils/helpers/block_input.hpp @@ -0,0 +1,24 @@ +// 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 <string_view> +#include <utility> +#include <vector> + +class Input { +public: + Input(std::string_view key, std::string_view iv, std::vector<std::string>&& blocks) + : key{key}, iv{iv}, blocks{std::move(blocks)} {} + + Input(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; +}; |
