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 
44  Svc::Ccsds::SdlsStatus keyGet_handler(FwIndexType portNum,
45  U16 securityAssociationIndex,
46  Svc::Ccsds::SdlsKeyBuffer& key) override;
47 
48  // ----------------------------------------------------------------------
49  // Member variables
50  // ----------------------------------------------------------------------
51 
53  Fw::FileNameString m_path;
54 
56  FwSizeType m_keySize;
57 
59  bool m_configured;
60 };
61 
62 } // namespace Ccsds
63 
64 } // namespace Svc
65 
66 #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.