From 6830c6ac01b767e676848addb28bf70f71c70e06 Mon Sep 17 00:00:00 2001
From: Dimitrios Stoupis <dimitris.apple@gmail.com>
Date: Sun, 2 Dec 2018 13:41:58 +0000
Subject: [PATCH] Add a data validator (may have a short life)

---
 inc/Services/MemoryManagementService.hpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/inc/Services/MemoryManagementService.hpp b/inc/Services/MemoryManagementService.hpp
index d2b5838d..98f8dfcb 100644
--- a/inc/Services/MemoryManagementService.hpp
+++ b/inc/Services/MemoryManagementService.hpp
@@ -104,6 +104,12 @@ private:
 	 * @param memId: The memory ID for validation
 	 */
 	bool memoryIdValidator(MemoryManagementService::MemoryID memId);
+
+	/**
+	 * Validate the data according to checksum calculation
+	 *
+	 */
+	bool dataValidator(const uint8_t *data, uint16_t checksum, uint16_t length);
 };
 
 #endif //ECSS_SERVICES_MEMMANGSERVICE_HPP
-- 
GitLab