10Duke Enterprise C++ SDK
Toggle main menu visibility
Loading...
Searching...
No Matches
WinCNGCiphers.h
1
#ifndef TENDUKE_CRYPTO_WIN_CNG_WINCNGCIPHERS_H
2
#define TENDUKE_CRYPTO_WIN_CNG_WINCNGCIPHERS_H
3
4
#include "crypto/AbstractCiphers.h"
5
#include "utl/BinaryData.h"
6
7
#include <memory>
8
9
namespace
tenduke
{
namespace
crypto
{
namespace
win {
namespace
cng {
10
18
class
WinCNGCiphers
:
public
::tenduke::crypto::AbstractCiphers
19
{
20
protected
:
24
std::unique_ptr<tenduke::utl::BinaryData>
decryptBytes
(
25
const
unsigned
char
*ciphertext,
26
std::size_t ciphertextLength,
27
const
unsigned
char
*encryptionKey,
28
std::size_t encryptionKeyLength
29
)
const override
;
30
34
std::unique_ptr<tenduke::utl::BinaryData>
encryptBytes
(
35
const
unsigned
char
*plaintext,
36
std::size_t plaintextLength,
37
const
unsigned
char
*encryptionKey,
38
std::size_t encryptionKeyLength
39
)
const override
;
40
};
41
42
}}}}
43
44
#endif
// TENDUKE_CRYPTO_WIN_CNG_WINCNGCIPHERS_H
tenduke::crypto::AbstractCiphers
Abstract base class for cipher implementations.
Definition
AbstractCiphers.h:23
tenduke::crypto::win::cng::WinCNGCiphers
Windows CNG implementation of tenduke::crypto::Ciphers.
Definition
WinCNGCiphers.h:19
tenduke::crypto::win::cng::WinCNGCiphers::encryptBytes
std::unique_ptr< tenduke::utl::BinaryData > encryptBytes(const unsigned char *plaintext, std::size_t plaintextLength, const unsigned char *encryptionKey, std::size_t encryptionKeyLength) const override
Encrypts the data.Implementations will implement this method.
Definition
WinCNGCiphers.cpp:172
tenduke::crypto::win::cng::WinCNGCiphers::decryptBytes
std::unique_ptr< tenduke::utl::BinaryData > decryptBytes(const unsigned char *ciphertext, std::size_t ciphertextLength, const unsigned char *encryptionKey, std::size_t encryptionKeyLength) const override
Decrypts the data.Implementations will implement this method.
Definition
WinCNGCiphers.cpp:283
tenduke::crypto
Cryptography services.
Definition
AbstractCiphers.h:12
tenduke
Root for classes, functions and globals of 10Duke C++ Client.
Definition
APIRequest.h:4
core
services
windows
src
crypto
WinCNGCiphers.h
Generated by
1.17.0