SourcePP
Several modern C++20 libraries for sanely parsing Valve's formats.
Loading...
Searching...
No Matches
RSA.h File Reference
#include <cstddef>
#include <span>
#include <string>
#include <string_view>
#include <tuple>
#include <vector>
#include <sourcepp/Math.h>
Include dependency graph for RSA.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  sourcepp
 
namespace  sourcepp::crypto
 

Functions

std::pair< std::string, std::string > sourcepp::crypto::computeSHA256KeyPair (uint16_t size=2048)
 
bool sourcepp::crypto::verifySHA256PublicKey (std::span< const std::byte > buffer, std::span< const std::byte > publicKey, std::span< const std::byte > signature)
 
std::vector< std::byte > sourcepp::crypto::signDataWithSHA256PrivateKey (std::span< const std::byte > buffer, std::span< const std::byte > privateKey)