CryptoFramework
Static Public Member Functions | List of all members
CryptoFramework Class Reference

An "entry point" in CryptoFramework. More...

#include <CryptoFramework.hpp>

Static Public Member Functions

static bool IsCspAvailable (CspType csp)
 Is CSP available? More...
 
static std::shared_ptr< ICspGetCspInstance (CspType csp)
 Get CSP instance. More...
 

Detailed Description

An "entry point" in CryptoFramework.

This static class is used to start working with CryptoFramework. It checks CSPs availability and provides their instances.

Member Function Documentation

◆ GetCspInstance()

static std::shared_ptr<ICsp> CryptoFramework::GetCspInstance ( CspType  csp)
static

Get CSP instance.

Returns CSP instance with ICsp interface if available.

Parameters
cspCSP type to get instance of.
Exceptions
std::runtime_errorIf prompted CSP is not available.

◆ IsCspAvailable()

static bool CryptoFramework::IsCspAvailable ( CspType  csp)
static

Is CSP available?

Checks if given CSP type is available.

Parameters
cspCSP type to check.

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