LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
logicalaccess::SignatureHelper Class Reference

#include <signature_helper.hpp>

Static Public Member Functions

static bool verify_sha512 (const std::string &data, const std::string &signature, const std::string &pem_pubkey)
 

Detailed Description

Some static pubkey based signature utils.

Member Function Documentation

◆ verify_sha512()

bool logicalaccess::SignatureHelper::verify_sha512 ( const std::string &  data,
const std::string &  signature,
const std::string &  pem_pubkey 
)
static

Verify that the signature of data matches signature.

pem_pubkey is a text PEM encoded public to use for signature verification.

RSA / SHA512 is used.

Parameters
data
signature
pem_pubkey
Returns
true if signature is valid, false otherwise.

The documentation for this class was generated from the following files: