31 virtual ~Profile()
noexcept =
default;
40 const std::vector<uint8_t> &unprotectedData,
41 std::vector<uint8_t> &protectedData) = 0;
51 const std::vector<uint8_t> &unprotectedData,
52 std::vector<uint8_t> &protectedData) = 0;
59 const std::vector<uint8_t> &protectedData) = 0;
E2E protection profile abstract class.
Definition: profile.h:26
virtual bool TryForward(const std::vector< uint8_t > &unprotectedData, std::vector< uint8_t > &protectedData)=0
Try to protect a message payload by inserting a CRC header while replicating the E2E status.
virtual bool TryProtect(const std::vector< uint8_t > &unprotectedData, std::vector< uint8_t > &protectedData)=0
Try to protect a message payload by inserting a CRC header.
virtual CheckStatusType Check(const std::vector< uint8_t > &protectedData)=0
Check whether a message is received correctly or not.
CheckStatusType
Definition: profile.h:16
@ kWrongCrc
!< CRC check is OK
@ kRepeated
!< Computed CRC does not match the message CRC
@ kNoNewData
!< The message has been already received
@ kWrongSequence
!< The message data payload is empty