AsyncFw 1.2
Async Framework is c++ runtime with timers, poll notifiers, sockets, coroutines, etc.
 
Loading...
Searching...
No Matches
Cryptor.h
1/*
2Copyright (c) 2026 Alexandr Kuzmuk
3
4This file is part of the AsyncFw project. Licensed under the MIT License.
5See {Link: LICENSE file https://mit-license.org} in the project root for full license information.
6*/
7
8#pragma once
9
10namespace AsyncFw {
11class DataArray;
12class DataArrayView;
14class Cryptor {
15public:
16 static bool encrypt(const DataArray &key, const DataArray &text, DataArray &ctext);
17 static bool decrypt(const DataArray &key, const DataArray &ctext, DataArray &text);
18
19protected:
20 static void encrypt(const DataArray &key, const DataArrayView &iv, const DataArrayView &text, DataArray &ctext);
21 static void decrypt(const DataArray &key, const DataArrayView &iv, const DataArrayView &ctext, DataArray &text);
22};
23} // namespace AsyncFw
The Cryptor class.
Definition Cryptor.h:14
The DataArrayView class.
Definition DataArray.h:37
The DataArray class.
Definition DataArray.h:20