F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
ClearTextDecryptor.cpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title ClearTextDecryptor.cpp
3 // \author lestarch-autobot
4 // \brief cpp file for ClearTextDecryptor component implementation class
5 // ======================================================================
6 
8 
9 namespace Svc {
10 
11 namespace Ccsds {
12 
13 // ----------------------------------------------------------------------
14 // Component construction and destruction
15 // ----------------------------------------------------------------------
16 
17 ClearTextDecryptor ::ClearTextDecryptor(const char* const compName) : ClearTextDecryptorComponentBase(compName) {}
18 
20 
21 // ----------------------------------------------------------------------
22 // Handler implementations for typed input ports
23 // ----------------------------------------------------------------------
24 
25 void ClearTextDecryptor ::decryptIn_handler(FwIndexType portNum,
26  U16 securityAssociationIndex,
27  Fw::Buffer& data,
28  const ComCfg::FrameContext& context) {
29  // Make the absence of security visible: a flight configuration must never route traffic here
30  this->log_WARNING_HI_NullCipherInUse(securityAssociationIndex);
31  this->decryptOut_out(0, Svc::Ccsds::SdlsStatus::SUCCESS, data, context);
32 }
33 
34 void ClearTextDecryptor ::decryptReturnIn_handler(FwIndexType portNum,
35  Fw::Buffer& data,
36  const ComCfg::FrameContext& context) {
37  this->bufferReturnOut_out(0, data, context);
38 }
39 
40 } // namespace Ccsds
41 
42 } // namespace Svc
~ClearTextDecryptor()
Destroy ClearTextDecryptor object.
ClearTextDecryptor(const char *const compName)
Construct ClearTextDecryptor object.
PlatformIndexType FwIndexType
Type used to pass context info between components during framing/deframing.
RateGroupDivider component implementation.
Request completed successfully.