AsyncFw
1.2
Async Framework is c++ runtime with timers, poll notifiers, sockets, coroutines, etc.
Loading...
Searching...
No Matches
Cryptor.h
1
/*
2
Copyright (c) 2026 Alexandr Kuzmuk
3
4
This file is part of the AsyncFw project. Licensed under the MIT License.
5
See {Link: LICENSE file https://mit-license.org} in the project root for full license information.
6
*/
7
8
#pragma once
9
10
namespace
AsyncFw {
11
class
DataArray
;
12
class
DataArrayView
;
14
class
Cryptor
{
15
public
:
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
19
protected
:
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
AsyncFw::Cryptor
The Cryptor class.
Definition
Cryptor.h:14
AsyncFw::DataArrayView
The DataArrayView class.
Definition
DataArray.h:37
AsyncFw::DataArray
The DataArray class.
Definition
DataArray.h:20
main
Cryptor.h
Generated by
1.13.2