F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
ClearTextEncryptor.cpp
Go to the documentation of this file.
1
// ======================================================================
2
// \title ClearTextEncryptor.cpp
3
// \author lestarch-autobot
4
// \brief cpp file for ClearTextEncryptor component implementation class
5
// ======================================================================
6
7
#include "
Svc/Ccsds/ClearTextEncryptor/ClearTextEncryptor.hpp
"
8
9
namespace
Svc
{
10
11
namespace
Ccsds {
12
13
// ----------------------------------------------------------------------
14
// Component construction and destruction
15
// ----------------------------------------------------------------------
16
17
ClearTextEncryptor ::ClearTextEncryptor
(
const
char
*
const
compName) : ClearTextEncryptorComponentBase(compName) {}
18
19
ClearTextEncryptor ::~ClearTextEncryptor
() {}
20
21
// ----------------------------------------------------------------------
22
// Handler implementations for typed input ports
23
// ----------------------------------------------------------------------
24
25
void
ClearTextEncryptor ::encryptIn_handler(
FwIndexType
portNum,
26
U16 securityAssociationIndex,
27
Fw::Buffer
& data,
28
const
ComCfg::FrameContext
& context) {
29
this->encryptOut_out(0,
Svc::Ccsds::SdlsStatus::SUCCESS
, data, context);
30
}
31
32
void
ClearTextEncryptor ::encryptReturnIn_handler(
FwIndexType
portNum,
33
Fw::Buffer
& data,
34
const
ComCfg::FrameContext
& context) {
35
this->bufferReturnOut_out(0, data, context);
36
}
37
38
}
// namespace Ccsds
39
40
}
// namespace Svc
Svc::Ccsds::ClearTextEncryptor::~ClearTextEncryptor
~ClearTextEncryptor()
Destroy ClearTextEncryptor object.
Definition:
ClearTextEncryptor.cpp:19
FwIndexType
PlatformIndexType FwIndexType
Definition:
FwIndexTypeAliasAc.h:15
ComCfg::FrameContext
Type used to pass context info between components during framing/deframing.
Definition:
FrameContextSerializableAc.hpp:21
Svc
RateGroupDivider component implementation.
Definition:
ActiveRateGroupCfg.hpp:18
Fw::Buffer
Definition:
Buffer.hpp:53
Svc::Ccsds::SdlsStatus::SUCCESS
Request completed successfully.
Definition:
SdlsStatusEnumAc.hpp:36
ClearTextEncryptor.hpp
Svc::Ccsds::ClearTextEncryptor::ClearTextEncryptor
ClearTextEncryptor(const char *const compName)
Construct ClearTextEncryptor object.
Definition:
ClearTextEncryptor.cpp:17
Svc
Ccsds
ClearTextEncryptor
ClearTextEncryptor.cpp
Generated by
1.8.14