10Duke Enterprise C++ SDK
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
9namespace tenduke { namespace crypto { namespace win { namespace cng {
10
19{
20protected:
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
Abstract base class for cipher implementations.
Definition AbstractCiphers.h:23
Windows CNG implementation of tenduke::crypto::Ciphers.
Definition WinCNGCiphers.h:19
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
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
Cryptography services.
Definition AbstractCiphers.h:12
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4