diff --git a/src/core/system_parameters/gnss_crypto.cc b/src/core/system_parameters/gnss_crypto.cc index 0492b1d23..eab8ab23e 100644 --- a/src/core/system_parameters/gnss_crypto.cc +++ b/src/core/system_parameters/gnss_crypto.cc @@ -564,7 +564,7 @@ bool Gnss_Crypto::verify_signature(const std::vector& message, const st } -std::vector Gnss_Crypto::getMerkleRoot(const std::vector>& merkle) +std::vector Gnss_Crypto::getMerkleRoot(const std::vector>& merkle) const { if (merkle.empty()) { diff --git a/src/core/system_parameters/gnss_crypto.h b/src/core/system_parameters/gnss_crypto.h index 83137f15e..c544020a9 100644 --- a/src/core/system_parameters/gnss_crypto.h +++ b/src/core/system_parameters/gnss_crypto.h @@ -49,7 +49,7 @@ public: bool verify_signature(const std::vector& message, const std::vector& signature); void readPublicKeyFromPEM(const std::string& pemFilePath); void read_merkle_xml(const std::string& merkleFilePath); - std::vector getMerkleRoot(const std::vector>& merkle); + std::vector getMerkleRoot(const std::vector>& merkle) const; // void set_public_key(const std::vector& publickey);