10Duke Enterprise C++ SDK
Loading...
Searching...
No Matches
WinCNG_utils.h
1#ifndef TENDUKE_CRYPTO_WIN_CNG_WINCNG_UTILS_H
2#define TENDUKE_CRYPTO_WIN_CNG_WINCNG_UTILS_H
3
4#include "crypto/msgauthn/HashAlgorithm.h"
5
6#include <windows.h>
7#include <memory>
8#include "utl/FixedSizeBinaryData.h"
9
10
11namespace tenduke { namespace crypto { namespace win { namespace cng {
12
13std::string getBCryptErrorMessage(::DWORD statusCode);
14std::string getNCryptErrorMessage(::LONG statusCode);
15void throwWinCNGException(::DWORD statusCode);
16::LPCWSTR toPaddingAlgorithmId(::tenduke::crypto::HashAlgorithm algorithm);
17
18std::unique_ptr<::tenduke::utl::FixedSizeBinaryData> base64ToBlob(const char * keyAsPem);
19
20}}}}
21
22#endif //TENDUKE_CRYPTO_WIN_CNG_WINCNG_UTILS_H
Cryptography services.
Definition AbstractCiphers.h:18
HashAlgorithm
Currently supported hash algorithms.
Definition HashAlgorithm.h:13
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4