fourdst_plugin 0.0.1a
C++ Plugin Manager
|
Namespaces | |
namespace | utils |
Classes | |
struct | EVP_MD_CTX_Deleter |
struct | EVP_PKEY_Deleter |
Custom deleter for OpenSSL EVP_PKEY objects. More... | |
class | PublicKey |
Represents a public key for cryptographic operations. More... | |
Typedefs | |
using | Unique_EVP_PKEY = std::unique_ptr<EVP_PKEY, EVP_PKEY_Deleter> |
Unique pointer type for managing EVP_PKEY objects with automatic cleanup. | |
Functions | |
bool | verify_signature (const PublicKey &key, const std::vector< unsigned char > &data_to_verify, const std::vector< unsigned char > &signature) |
Verifies a digital signature against given data using the provided public key. | |
using fourdst::crypt::Unique_EVP_PKEY = std::unique_ptr<EVP_PKEY, EVP_PKEY_Deleter> |
Unique pointer type for managing EVP_PKEY objects with automatic cleanup.
bool fourdst::crypt::verify_signature | ( | const PublicKey & | key, |
const std::vector< unsigned char > & | data_to_verify, | ||
const std::vector< unsigned char > & | signature ) |
Verifies a digital signature against given data using the provided public key.
This function verifies that the signature was created by the private key corresponding to the provided public key and that the data has not been tampered with.
[in] | key | The public key to use for verification. |
[in] | data_to_verify | The data that was signed. |
[in] | signature | The signature to verify. |
std::runtime_error | If:
|