1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-12 11:10:33 +00:00
Commit Graph

9601 Commits

Author SHA1 Message Date
cesaaargm
ea0684d640 [TAS-240][FEAT] Implement TESLA Chain Renewal and Revocation II
* revocation sucessfully tested.
* Diagram of step 1 is wrong in that KROOT with CID=0 also received after entering step 1.
* Duration of CREV=2.75h
* All tags verified succesffully.
2024-08-15 21:48:29 +02:00
cesaaargm
092a78f580 [TAS-145][Feat][PVT] Implement PVT logic for osnma data
* Created a map with PRN-> set<IOD_nav>
* osnma transmits every 30 s the list of authenticated PRNs along with the IOD authenticated
* PVT takes this into account to consider the observable valid (only strict mode)
* ""successfully"" tested. Osnma first tag authenticated: 1:36, TTFAF 2:06
=> most of the time the PVT has authenticated solution, except two 30s gaps in which there is no PVT computed. (3-4' firs gap and second from 13:30-14:06)
* TODOs: find out reason and improve size management of the maps.
2024-08-15 13:10:04 +02:00
cesaaargm
2e867f2dac [TAS-240][FEAT] Implement TESLA Chain Renewal and Revocation I
* Implemented a new chain renewal mechanism for OSNMA data structure updates and key management.
* Added related flags and data fields.
* tested successfully with test vectors.
2024-08-14 13:14:23 +02:00
cesaaargm
e4f4c335bc [TAS-257][TEST] add osnma benchmarking
* Introduced new benchmarks to assess the performance of various OSNMA related functions, such as public key verification.
* Mostly recycled code from testing codebase.
* TODO: methods are private, could not find a MACRO like FRIEND_TEST to allow for it. Result of this, only one benchmark test is active.
2024-08-12 12:50:17 +02:00
cesaaargm
794bd61419 [TAS-249][Bug][Tag] new NavDataManager causes less tags to be verified
[TAS-234][Feature] Dummy tags verification

* Fixed the navData retrieval which caused many tags to be skipped
* Dummy tags verification added.
* Replaced direct field access with getters/setters for OSNMA navigation data.
2024-08-11 16:41:54 +02:00
Carles Fernandez
5a634f7332
More fixes (#25)
* Clang Tidy fixes

* Fix some potential defects and be more consistent in class name. Improve const correctness

* Fix formatting

---------

Co-authored-by: cesaaargm <cesare.martinez@proton.me>
2024-08-11 12:44:18 +02:00
Carles Fernandez
79da7787ff
Move files (#24)
* Bump local version of GoogleTest to 1.15.2 and Protocol Buffers to 27.3

* Avoid code duplication in CMake modules

* Update clang-tidy job

* Clang Tidy fixes

* Improve efficiency of Concurrent_Map and Concurrent_Queue classes

* Fix segmentation fault if the SignalSource implementation is not available

* Moved decimation factor count variable to the class

* Avoid possible runtime error when PVT.enable_rx_clock_correction=true

* Fix formatting

* Fix clang-tidy job

* Move receiver-related classes to src/core/libs

* Uniformize cmake module names

* Fix formatting

* Make clang-tidy happy

* Fix crypto benchmarks

* Fixes for old systems

* Instantiate sources only once

---------

Co-authored-by: cesaaargm <cesare.martinez@proton.me>
Co-authored-by: Xavier Guerrero-Pau <xguerrero@cttc.es>
2024-08-10 11:31:15 +02:00
Carles Fernandez
98f1cdfb6b
More minor fixes (#23)
* Clang Tidy fixes

* Fix defects detected by Coverity Scan

* Fix for OpenSSL 1.0

---------

Co-authored-by: cesaaargm <cesare.martinez@proton.me>
2024-08-08 09:33:48 +02:00
Carles Fernandez
5a6d19be70
Fix some defects detected by Coverity Scan (#22)
* Clang Tidy fixes

* Fix defects detected by Coverity Scan

---------

Co-authored-by: cesaaargm <cesare.martinez@proton.me>
2024-08-07 09:13:13 +02:00
Carles Fernandez
7367b56725
Improve test (#21)
* Clang Tidy fixes

* Improve GnssCryptoTest.VerifyPublicKeyStorage test

---------

Co-authored-by: cesaaargm <cesare.martinez@proton.me>
2024-08-06 12:28:01 +02:00
Carles Fernandez
a1ef563988
Fix for OpenSSL 1.0 (#20)
* Clang Tidy fixes

* Fix for OpenSSL 1.0

---------

Co-authored-by: cesaaargm <cesare.martinez@proton.me>
2024-08-05 13:06:28 +02:00
Carles Fernandez
8a45df29a8
Some API improvements and a bug fix (#18)
* Clang Tidy fixes

* Fix reading of .crt files with GnuTLS

* Hide d_crypto pointer from public API

* Read public key type also from .pem files

---------

Co-authored-by: cesaaargm <cesare.martinez@proton.me>
2024-08-05 10:29:01 +02:00
Carles Fernandez
3457b8ed3b
Get time zone offset in a more standard way (#17)
* Clang Tidy fixes

* Get time zone offset in a more standard way

Account for leap seconds
Use GNSS-SDR.osnma_mode=strict to check for local time

* Fix for C++20

* Initialize tm in a more portable way

* Remove unnecessary data members in osnma_msg_receiver

---------

Co-authored-by: cesaaargm <cesare.martinez@proton.me>
2024-08-03 19:58:34 +02:00
Carles Fernandez
6beb92278f
Read type of public key (#16)
* Clang Tidy fixes

* Improve reading public key type

* Update osnma_nav_data_manager.cc

hotfix

---------

Co-authored-by: cesaaargm <cesare.martinez@proton.me>
2024-08-02 09:38:37 +02:00
cesaaargm
960e76e3a0 Clang Tidy fixes 2024-08-01 19:16:47 +02:00
Carles Fernandez
eefa3b3aa7
Update CMake scripts (#15)
* Report GMP version if found

* Bump local version of GoogleTest to 1.15.2 and Protocol Buffers to 27.3

* Avoid code duplication in CMake modules

* Update CMake modules

* Update clang-tidy job
2024-08-01 12:46:14 +02:00
cesaaargm
fcea84d875 disable extra unit tests for the moment. 2024-08-01 11:53:02 +02:00
cesaaargm
a47cf1187c [TAS-255] [BUG] Assure time synch. is properly done
if d_flag_debug=false, now system clock is used to for the receiver synchronisation. It uses the UTC time and the GST epoch start time (adjusted for local time zone difference) to create a local estimation of GST, then compares with GST_SIS (coming from NavData Words 5 and 6)
2024-08-01 11:52:28 +02:00
cesaaargm
2db37f384e [TAS-242][FEAT] Implement alert message handling
* Test show that behavior is as expected.
* interestingly, the first batch of Tags after OAM received fail, then succeeds, until OAM is verified and OSNMA is disabled.
2024-07-31 17:08:06 +02:00
cesaaargm
02c5d26dcc [TAS-250] (x3) [FEAT] Implement PK renewal and revocation. Bugfix for DS length computation.
* it was based on the HF field, which is not correct. It was discovered when the PK was P521 instead of P256 then the Padding size check was failing due to this.
* The solution is temporary:
** GNSS_Crypto: when reading the key, the type is inferred (only for OSSL for the moment)
** when PK comes through the satellites, the public key type is taken from the NPKT field.
2024-07-30 18:09:07 +02:00
Carles Fernandez
07cbf2c01f
Fixes for GnuTLS and OpenSSL < 3 (#14)
* Fix set_public_key when using GnuTLS

* Fix for OpenSSL 1.1.1

* Fix formatting

* Fix formatting

* Fix ECDSA-P521 signature verification when using GnuTLS

* Improve finding of the GMP library in Debian-based systems

* Improve finding of the GMP library in Debian-based systems

* Keep GMP usage private
2024-07-30 18:00:41 +02:00
cesaaargm
26f77a3c42 [TAS-250] (x2) [FEAT] Implement PK renewal and revocation.
* Revocation implemented and tested. DSM-KROOT appears to be corrupted because length check fails after start of step 1, during steps 2 and 3.
2024-07-30 12:25:22 +02:00
cesaaargm
440dc582b5 [TEST][OsnmaTestVector] refactor parsing code into feedOsnmaWithTestVectors method.
* could not find a way to access osnma private methods, so had to make d_crypto and msg_handler_osnma public. Looking for a way to avoid that.
2024-07-29 15:21:35 +02:00
cesaaargm
fc1541ef10 [TAS-250] [FEAT] Implement PK renewal and revocation. 2024-07-29 12:18:08 +02:00
cesaaargm
5675b996e8 [TAS-251] set_public_key accepts compressed ECDSA PK. Make Crypto tests pass again (OSSL3 and OSSL<3)
* both P256 and P521 curves. Tested successfully.
2024-07-29 12:16:55 +02:00
cesaaargm
a947f10fd8 [TAS-246] [TEST] CI/CD set up - more fixes 2024-07-27 21:50:33 +02:00
cesaaargm
a4cfe51515 [TAS-248] [BUG][Kroot] Kroot and PK available, but until DSM-Kroot arrived no MACK processing
* reverted commit [TAS-247][FEAT][Kroot] enable hotstart with last known Kroot
* DSM-KROOT loaded during startup
* if new DSM verified => stored
* this improves TTFAF from 4 min to 1 minute.
2024-07-27 18:25:20 +02:00
cesaaargm
54c1a19823
Merge pull request #13 from carlesfernandez/osnma-cesare-fix12
Fix the building and execution of OSNMA tests in many environments
2024-07-27 15:52:20 +02:00
Carles Fernandez
c8c780d3c3
Merge branch 'next' of github.com:gnss-sdr/gnss-sdr into osnma-cesare-fix12 2024-07-27 09:31:19 +02:00
Carles Fernandez
f17a24f7f9
Fix building local Armadillo with old CMake 2024-07-27 09:25:35 +02:00
Carles Fernandez
491a4ab40f
Add missing include 2024-07-27 07:48:34 +02:00
Carles Fernandez
03a8366fa2
Add OSNMA tests to the GitHub CI 2024-07-26 20:21:45 +02:00
Carles Fernandez
27f93e5626
Add OSNMA tests to the GitHub CI 2024-07-26 20:02:15 +02:00
Carles Fernandez
c54f941dce
Adapt to new API 2024-07-26 18:26:15 +02:00
Carles Fernandez
6cfc8a351f
Adapt to new API 2024-07-26 18:20:24 +02:00
Carles Fernandez
ec127089ab
Fix building of OSNMA tests 2024-07-26 18:12:52 +02:00
cesaaargm
06e0c4b63a [TAS-247][FEAT][Kroot] enable hotstart with last known Kroot
* Kroot is now saved into binary file if successfuly verified.
* on startup, file is checked first.
* This should enable a much quicker TTFAF
2024-07-26 18:03:21 +02:00
cesaaargm
ffb456d058
Merge pull request #11 from carlesfernandez/osnma-cesare-fix11
Add basic infrastructure for the GNSS-SDR.osnma_mode=strict mode
2024-07-26 15:23:25 +02:00
Carles Fernandez
3cc12e9b66
Add basic infrastructure for the GNSS-SDR.osnma_mode=strict mode 2024-07-25 21:40:43 +02:00
cesaaargm
e0506eaf9b Consider CI/CD comments (x2) 2024-07-25 19:03:57 +02:00
cesaaargm
95aea155f0 Merge branch 'carlesfernandez-osnma-cesare-fix10' into osnma-cesare 2024-07-25 15:40:57 +02:00
cesaaargm
84b16cd54d Merge branch 'osnma-cesare-fix10' of https://github.com/carlesfernandez/gnss-sdr into carlesfernandez-osnma-cesare-fix10 2024-07-25 14:48:29 +02:00
cesaaargm
8566eca92f [TAS-238][FEAT] Implement Tag accumulation
* New class: osnma_nav_data_manager => manages navigation data coming to osnma
* navigation data is grouped now avoiding duplication => a NavData entry has now TOW_start and TOW_end
* tag accumulation: now, navigation data has verified_bits field, which shows how many tags have verified that data. unless L_T_min achieved, validation is not considered successful
2024-07-25 14:08:34 +02:00
Carles Fernandez
8a208d57d8
Add benchmarks for cryptographic functions 2024-07-24 21:02:39 +02:00
Carles Fernandez
8ff339671b
Code cleaning 2024-07-24 20:39:40 +02:00
Carles Fernandez
32100f5eb7
Merge branch 'next' of github.com:gnss-sdr/gnss-sdr into osnma-cesare-fix10 2024-07-24 19:12:09 +02:00
Carles Fernandez
fe9ebb70f1
Fix building local Armadillo with old CMake 2024-07-24 19:05:31 +02:00
Carles Fernandez
70315ecfae
Fix formatting 2024-07-23 17:32:47 +02:00
Carles Fernandez
49eb854b16
Fix formatting 2024-07-23 16:51:59 +02:00
Carles Fernandez
39f94dcbe6
Code cleaning 2024-07-23 12:15:43 +02:00