10Duke Enterprise C++ SDK
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
9namespace tenduke { namespace crypto { namespace libcrypto {
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_LIBCRYPTO_LIBCRYPTOCIPHERS_H
Abstract base class for cipher implementations.
Definition AbstractCiphers.h:23
Libcrypto-implementation of tenduke::crypto::Ciphers.
Definition LibcryptoCiphers.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 LibcryptoCiphers.cpp:76
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
libcrypto based implementations of cryptography services.
Definition AsymmetricMessageDigest.h:15
Cryptography services.
Definition AbstractCiphers.h:12
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4