SourcePP
Several modern C++20 libraries for sanely parsing Valve's formats.
Toggle main menu visibility
Loading...
Searching...
No Matches
AES.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <cstddef>
4
#include <span>
5
#include <vector>
6
7
#include <
sourcepp/Math.h
>
8
9
namespace
sourcepp::crypto
{
10
11
extern
const
std::array<std::byte, 16>
NULL_IV
;
12
13
bool
decryptAES_CFB
(std::span<std::byte> buffer, std::span<const std::byte> key, std::span<const std::byte> iv =
NULL_IV
);
14
15
bool
encryptAES_CFB
(std::span<std::byte> buffer, std::span<const std::byte> key, std::span<const std::byte> iv =
NULL_IV
);
16
17
}
// namespace sourcepp::crypto
Math.h
sourcepp::crypto
Definition
Adler32.h:8
sourcepp::crypto::decryptAES_CFB
bool decryptAES_CFB(std::span< std::byte > buffer, std::span< const std::byte > key, std::span< const std::byte > iv=NULL_IV)
Definition
AES.cpp:15
sourcepp::crypto::encryptAES_CFB
bool encryptAES_CFB(std::span< std::byte > buffer, std::span< const std::byte > key, std::span< const std::byte > iv=NULL_IV)
Definition
AES.cpp:28
sourcepp::crypto::NULL_IV
const std::array< std::byte, 16 > NULL_IV
Definition
AES.cpp:11
include
sourcepp
crypto
AES.h
Generated on
for SourcePP by
1.17.0