F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
SdlsFileKeyManager.hpp
Go to the documentation of this file.
1 // ======================================================================
2 // \title SdlsFileKeyManager.hpp
3 // \author lestarch-autobot
4 // \brief hpp file for SdlsFileKeyManager component implementation class
5 // ======================================================================
6 
7 #ifndef Svc_Ccsds_SdlsFileKeyManager_HPP
8 #define Svc_Ccsds_SdlsFileKeyManager_HPP
9 
11 #include "Svc/Ccsds/SdlsFileKeyManager/SdlsFileKeyManagerComponentAc.hpp"
12 
13 namespace Svc {
14 
15 namespace Ccsds {
16 
17 class SdlsFileKeyManager final : public SdlsFileKeyManagerComponentBase {
18  public:
19  // ----------------------------------------------------------------------
20  // Component construction, configuration, and destruction
21  // ----------------------------------------------------------------------
22 
24  SdlsFileKeyManager(const char* const compName
25  );
26 
29 
31  void configure(const char* path,
32  FwSizeType keySize
33  );
34 
35  private:
36  // ----------------------------------------------------------------------
37  // Handler implementations for typed input ports
38  // ----------------------------------------------------------------------
39 
43  Svc::Ccsds::SdlsStatus keyGet_handler(FwIndexType portNum,
44  Svc::Ccsds::SdlsKeyBuffer& key) override;
45 
46  // ----------------------------------------------------------------------
47  // Member variables
48  // ----------------------------------------------------------------------
49 
51  Fw::FileNameString m_path;
52 
54  FwSizeType m_keySize;
55 
57  bool m_configured;
58 };
59 
60 } // namespace Ccsds
61 
62 } // namespace Svc
63 
64 #endif
PlatformSizeType FwSizeType
~SdlsFileKeyManager()
Destroy SdlsFileKeyManager object.
Status of an SDLS (Space Data Link Security) encryption/decryption request.
SdlsFileKeyManager(const char *const compName)
Construct SdlsFileKeyManager object.
void configure(const char *path, FwSizeType keySize)
Configure the key file path and the key length to read from the file.
PlatformIndexType FwIndexType
RateGroupDivider component implementation.