From 94d1df62c058f7370aadf2b11ed641a565fc54b4 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Wed, 7 Jun 2023 18:12:27 +0200 Subject: [PATCH] Remove unused file --- src/core/system_parameters/CMakeLists.txt | 1 - src/core/system_parameters/gnss_crypto.cc | 12 ++++++++++++ src/core/system_parameters/gnss_crypto.h | 2 ++ src/core/system_parameters/osnma_data.cc | 17 ----------------- 4 files changed, 14 insertions(+), 18 deletions(-) delete mode 100644 src/core/system_parameters/osnma_data.cc diff --git a/src/core/system_parameters/CMakeLists.txt b/src/core/system_parameters/CMakeLists.txt index a39e45c6c..f321ab52c 100644 --- a/src/core/system_parameters/CMakeLists.txt +++ b/src/core/system_parameters/CMakeLists.txt @@ -29,7 +29,6 @@ set(SYSTEM_PARAMETERS_SOURCES glonass_gnav_utc_model.cc glonass_gnav_navigation_message.cc reed_solomon.cc - osnma_data.cc osnma_dsm_reader.cc ) diff --git a/src/core/system_parameters/gnss_crypto.cc b/src/core/system_parameters/gnss_crypto.cc index 9f167de62..0faa6d096 100644 --- a/src/core/system_parameters/gnss_crypto.cc +++ b/src/core/system_parameters/gnss_crypto.cc @@ -44,6 +44,18 @@ Gnss_Crypto::Gnss_Crypto(const std::string& filePath) } +bool Gnss_Crypto::have_public_key() const +{ + return !d_PublicKey.empty(); +} + + +void Gnss_Crypto::set_public_key(const std::vector& publickey) +{ + d_PublicKey = publickey; +} + + std::vector Gnss_Crypto::computeSHA256(const std::vector& input) { std::vector output(32); // SHA256 hash size diff --git a/src/core/system_parameters/gnss_crypto.h b/src/core/system_parameters/gnss_crypto.h index 1eba17f7e..b6151454c 100644 --- a/src/core/system_parameters/gnss_crypto.h +++ b/src/core/system_parameters/gnss_crypto.h @@ -34,6 +34,8 @@ class Gnss_Crypto public: Gnss_Crypto() = default; explicit Gnss_Crypto(const std::string& filePath); + bool have_public_key() const; + void set_public_key(const std::vector& publickey); std::vector computeSHA256(const std::vector& input); std::vector computeSHA3_256(const std::vector& input); std::vector computeHMAC_SHA_256(const std::vector& key, const std::vector& input); diff --git a/src/core/system_parameters/osnma_data.cc b/src/core/system_parameters/osnma_data.cc deleted file mode 100644 index dde58b44a..000000000 --- a/src/core/system_parameters/osnma_data.cc +++ /dev/null @@ -1,17 +0,0 @@ -/*! - * \file osnma_data.cc - * \brief Class for Galileo OSNMA data storage - * \author Carles Fernandez-Prades, 2020-2023 cfernandez(at)cttc.es - * - * ----------------------------------------------------------------------------- - * - * GNSS-SDR is a Global Navigation Satellite System software-defined receiver. - * This file is part of GNSS-SDR. - * - * Copyright (C) 2010-2023 (see AUTHORS file for a list of contributors) - * SPDX-License-Identifier: GPL-3.0-or-later - * - * ----------------------------------------------------------------------------- - */ - -#include "osnma_data.h"