10Duke Enterprise C++ Client
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/MessageDigest.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::MessageDigest::Algorithm algorithm);
17
18std::unique_ptr<::tenduke::utl::FixedSizeBinaryData> base64ToBlob(const char * keyAsPem);
19
20}}}}
21
22#endif //TENDUKE_CRYPTO_WIN_CNG_WINCNG_UTILS_H
Algorithm
Supported algorithms.
Definition MessageDigest.h:24
Cryptography services.
Definition CryptoException.h:7
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4