|
CryptoFramework
|
Interface for cryptographic service providers (CSPs). More...
#include <ICsp.hpp>
Public Member Functions | |
| virtual | ~ICsp ()=default |
Virtual destructor for the ICsp interface. More... | |
| virtual std::vector< std::shared_ptr< ICertificate > > | GetCertificates ()=0 |
| Retrieves a list of available certificates. More... | |
| virtual bool | VerifyCadesAttached (const Blob &signature, CadesType type) const =0 |
| Verifies an attached CAdES (CMS Advanced Electronic Signatures) signature. More... | |
| virtual bool | VerifyCadesDetached (const Blob &signature, const Blob &source, CadesType type) const =0 |
| Verifies a detached CAdES (CMS Advanced Electronic Signatures) signature. More... | |
Interface for cryptographic service providers (CSPs).
The ICsp interface defines the methods required for managing certificates and verifying digital signatures. Derived classes should implement these methods based on specific cryptographic service providers.
|
virtualdefault |
Virtual destructor for the ICsp interface.
Ensures proper cleanup of derived class objects through the interface.
|
pure virtual |
Retrieves a list of available certificates.
Provides access to the certificates managed by the cryptographic service provider.
|
pure virtual |
Verifies an attached CAdES (CMS Advanced Electronic Signatures) signature.
Validates the authenticity of the provided signature against its embedded data.
| signature | The Blob containing the attached signature data. |
| type | The type of CAdES signature (e.g., CadesType::kBes). |
true if the signature is valid, otherwise false.
|
pure virtual |
Verifies a detached CAdES (CMS Advanced Electronic Signatures) signature.
Validates the authenticity of the provided signature against external source data.
| signature | The Blob containing the detached signature data. |
| source | The Blob containing the original source data. |
| type | The type of CAdES signature (e.g., CadesType::kBes). |
true if the signature is valid, otherwise false.