10Duke Enterprise C++ SDK
Loading...
Searching...
No Matches
tenduke::crypto::MessageDigestVerifier Class Referenceabstract

#include <MessageDigestVerifier.h>

Detailed Description

Verifies a message by computing digest for the message and comparing the computed signature to the provided signature.

The digest could be a cryptographic hash function, message authentication code (MAC), or a signature.

NOTE: Instances are not thread safe.

NOTE: Most implementations throw tenduke::crypto::CryptoException if construction fails.

Inheritance diagram for tenduke::crypto::MessageDigestVerifier:
tenduke::crypto::DigitalSignatureVerifier tenduke::crypto::libcrypto::LibcryptoSignatureVerifier tenduke::crypto::win::cng::WinCNGSignatureVerifier

Public Member Functions

virtual bool verify (const void *message, std::size_t messageLength, const void *signature, std::size_t signatureLength)=0
 Verifies the digest.

Member Function Documentation

◆ verify()

virtual bool tenduke::crypto::MessageDigestVerifier::verify ( const void * message,
std::size_t messageLength,
const void * signature,
std::size_t signatureLength )
pure virtual

Verifies the digest.

Parameters
message-
messageLength-
signature-
signatureLength-
Returns
true if computed message digest matches provided signature, false if not.
Exceptions
tenduke::crypto::CryptoExceptionfor various conditions.

Implemented in tenduke::crypto::libcrypto::LibcryptoSignatureVerifier, tenduke::crypto::win::cng::WinCNGSignatureVerifier, and WinCNGSignatureVerifier.


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