42 lines
666 B
C++
42 lines
666 B
C++
#pragma once
|
|
|
|
/**
|
|
* \file Encrypt.h
|
|
* \brief File containing encrypt utilities
|
|
*/
|
|
|
|
#include <sp/common/DataBuffer.h>
|
|
|
|
namespace sp {
|
|
namespace option {
|
|
|
|
struct TlsEncrypt {
|
|
bool m_Enabled = true;
|
|
};
|
|
|
|
} // namespace option
|
|
} // namespace sp
|
|
|
|
#include <sp/io/IOInterface.h>
|
|
|
|
namespace sp {
|
|
namespace ssl {
|
|
|
|
// encrypt
|
|
|
|
// decrypt
|
|
|
|
} // namespace ssl
|
|
|
|
namespace io {
|
|
|
|
template <>
|
|
class MessageEncapsulator<option::TlsEncrypt> {
|
|
public:
|
|
static DataBuffer Encapsulate(const DataBuffer& a_Data, const option::TlsEncrypt& a_Option);
|
|
static DataBuffer Decapsulate(DataBuffer& a_Data, const option::TlsEncrypt& a_Option);
|
|
};
|
|
|
|
} // namespace io
|
|
} // namespace sp
|