SourcePP
Several modern C++20 libraries for sanely parsing Valve's formats.
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
9namespace sourcepp::crypto {
10
11extern const std::array<std::byte, 16> NULL_IV;
12
13bool decryptAES_CFB(std::span<std::byte> buffer, std::span<const std::byte> key, std::span<const std::byte> iv = NULL_IV);
14
15bool 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
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
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
const std::array< std::byte, 16 > NULL_IV
Definition AES.cpp:11