10Duke Enterprise C++ SDK
Toggle main menu visibility
Loading...
Searching...
No Matches
LibcryptoCiphers.h
1
#ifndef TENDUKE_CRYPTO_LIBCRYPTO_LIBCRYPTOCIPHERS_H
2
#define TENDUKE_CRYPTO_LIBCRYPTO_LIBCRYPTOCIPHERS_H
3
4
#include "crypto/AbstractCiphers.h"
5
#include "utl/BinaryData.h"
6
7
#include <memory>
8
9
namespace
tenduke
{
namespace
crypto
{
namespace
libcrypto
{
10
18
class
LibcryptoCiphers
:
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_LIBCRYPTO_LIBCRYPTOCIPHERS_H
tenduke::crypto::AbstractCiphers
Abstract base class for cipher implementations.
Definition
AbstractCiphers.h:23
tenduke::crypto::libcrypto::LibcryptoCiphers
Libcrypto-implementation of tenduke::crypto::Ciphers.
Definition
LibcryptoCiphers.h:19
tenduke::crypto::libcrypto::LibcryptoCiphers::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
LibcryptoCiphers.cpp:76
tenduke::crypto::libcrypto::LibcryptoCiphers::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
LibcryptoCiphers.cpp:192
tenduke::crypto::libcrypto
libcrypto based implementations of cryptography services.
Definition
AsymmetricMessageDigest.h:15
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
default
src
crypto
LibcryptoCiphers.h
Generated by
1.17.0