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

9586 Commits

Author SHA1 Message Date
Carles Fernandez
fe36fe7a60 Fix certificate reading when using GnuTLS 2024-07-15 17:20:40 +02:00
Carles Fernandez
d79ee8497f Store public key when received from a DSM-PKR message 2024-07-15 17:20:40 +02:00
Carles Fernandez
1c26d43e2d Add function to store the public key in a .pem file 2024-07-15 17:20:40 +02:00
Carles Fernandez
ef8f00f6d6
Add a building configuration parameter -DENABLE_GNUTLS, by default to OFF, to allow the user to link against GnuTLS instead of OpenSSL (#7) 2024-07-15 17:19:17 +02:00
cesaaargm
fdb6c079e9 [TAS-223][FEAT] discard only failed FLX tags, not all belonging to MACK
Refactored the verification process of MAC sequences in the OSNMA message receiver. Added a function to selectively verify and return tags for which the verification was successful. Replaced usage of direct verification and tag addition with calls to this function.
Made corresponding changes to the data structure to accommodate a counter for each tag.
2024-07-15 17:11:18 +02:00
Carles Fernandez
20d664a8b7
Fix building with CMake 3.30 in old setups 2024-07-10 21:59:33 +02:00
Carles Fernandez
8f80007a4e
Fix building with CMake 3.30 2024-07-10 20:37:16 +02:00
Carles Fernandez
389600dffc
Fix building with CMake 3.30 2024-07-10 20:16:07 +02:00
Carles Fernandez
12a2fcadbe
Bump max version of CMake to 3.30 2024-07-10 14:28:16 +02:00
cesaaargm
f534ef859c [TAS-212] [TEST] implement tests for DSM-PKR Verification
* VerifyPublicKey, ComputeBaseLeaf, ComputeMerkleRoot
* Refactored verify_dsm_pkr to allow for the new tests
* add  convert_from_hex function in the helper
2024-07-09 17:13:40 +02:00
Carles Fernandez
f46ceb0fa7
CentOS 7 reached EOL, remove from README. Fix for CentOS 9 Stream 2024-07-09 14:39:38 +02:00
Carles Fernandez
bb2d384ad6
Merge branch 'vladisslav2011-fix_acquisition_monitor' into next 2024-07-03 22:05:02 +02:00
Carles Fernandez
36cb210ae2
Merge branch 'fix_acquisition_monitor' of https://github.com/vladisslav2011/gnss-sdr into vladisslav2011-fix_acquisition_monitor 2024-07-03 21:55:48 +02:00
Carles Fernandez
c0f4eaceb3
Merge branch 'cl-cv-patch-1' into next 2024-07-03 21:42:12 +02:00
cl-cv
ae225bad2b
Fixed typo in collection of A0UTC parameter 2024-07-03 21:41:05 +02:00
cesaaargm
aede664b5a [TAS-232 ] [FEAT] verify tag m0
* add new constructor to Tag for Tag0
* minor reporting and comments.
* forgot an include from fix5 merge
* gitignore release folder
2024-07-03 18:45:40 +02:00
cesaaargm
9c7e0589d3 Merge branch 'carlesfernandez-osnma-cesare-fix5' into osnma-cesare 2024-07-02 14:12:19 +02:00
cesaaargm
adb3b455ea Merge branch 'osnma-cesare-fix5' of https://github.com/carlesfernandez/gnss-sdr into carlesfernandez-osnma-cesare-fix5 2024-07-02 13:54:34 +02:00
cesaaargm
b77784d1f3 [TAS-227] [BUG] Tag verification fails for .dat files 2024-07-02 13:34:37 +02:00
Carles Fernandez
4b4f6b9d7f
Fix CMAC-AES with GnuTLS 2024-07-01 22:43:54 +02:00
Carles Fernandez
c31b6a1f4d
Fix building of local Armadillo 2024-07-01 10:07:01 +02:00
Carles Fernandez
2f475d6aaf
Fix CMAC-AES algorithm for OpenSSL 1.x 2024-07-01 02:44:22 +02:00
Carles Fernandez
95e3329f10
Fix for old GnuTLS 2024-07-01 01:31:09 +02:00
Carles Fernandez
c2bb06076a
Fix for old OpenSSL 2024-06-30 12:04:57 +02:00
Carles Fernandez
d984822b45
Fix for cross-compilation 2024-06-30 10:24:21 +02:00
Carles Fernandez
413e5309ba
Add missing include 2024-06-30 10:10:03 +02:00
Carles Fernandez
22b6d70318
Fix building of benchmarks in some environments 2024-06-30 09:45:51 +02:00
Carles Fernandez
619c7aeed3
Bump local Armadillo version to 14.0.x and Protocol Buffers to 27.2 2024-06-29 15:33:52 +02:00
Carles Fernandez
668ca7a5d8
Fix link_to_crypto_dependencies function 2024-06-29 11:52:06 +02:00
Carles Fernandez
609b85b864
Fix cmakelint formatting 2024-06-29 11:45:00 +02:00
Carles Fernandez
a530981d5b
Update README.md with openssl 2024-06-29 11:41:28 +02:00
Carles Fernandez
db5466832c
Look for OpenSSL in the first place, fallback to GnuTLS if not found
Fix test building in some environments
2024-06-29 11:11:20 +02:00
Carles Fernandez
359693c0e8
Add GNSS-SDR.osnma_enable configuration parameter, by default set to true 2024-06-28 13:03:14 +02:00
Carles Fernandez
c38fb0fca5
Fix building (add missing include) 2024-06-28 10:51:10 +02:00
cesaaargm
1d815f0bbf [TAS-227] [BUG] Tag verification fails for .dat files (WIP)
WIP
2024-06-27 23:36:40 +02:00
cesaaargm
82ef50f8dd
Merge pull request #5 from carlesfernandez/osnma-cesare-fix4
Fix building with old compilers
2024-06-25 14:12:38 +02:00
Carles Fernandez
2c833051a5
Fix SHA3-256 implementation when linking against OpenSSL 1.1.1 2024-06-25 13:59:23 +02:00
Carles Fernandez
cae618b450
Fix ECDSA signature verification when linking againts OpenSSL 1.0 2024-06-25 12:42:07 +02:00
Carles Fernandez
23bb5c85c5
Fix building against OpenSSL 1.0 2024-06-25 11:45:09 +02:00
Carles Fernandez
9a1def7aa4
Fix building with old compilers 2024-06-25 10:50:00 +02:00
cesaaargm
c1c58eab06
Merge pull request #4 from carlesfernandez/osnma-cesare-fix3
Really fix signature verification with GnuTLS
2024-06-24 15:33:20 +02:00
cesaaargm
2cf96bda87 [TAS-226] [FEAT] Remove tags skipped ≥ 10 times
Take into account TOW to decide whether to skip a tag or not.
Still, I dont like the logic of iterating over and over the tags. Once a tag is verified once, it should be not checked unless next TOW subframe came (new Data or new Key available)

Adittionally: solved a small specification bug for ADKD=12, improved reporting (status of Tag is a string now)
2024-06-24 14:43:43 +02:00
Carles Fernandez
584b95e62e
Fix CMAC-AES implementation in OpenSSL>3.0.0. Add unit test 2024-06-24 14:01:34 +02:00
Carles Fernandez
8ea75116ac
Fix intantiation of Gnss_Crypto() with GnuTLS 2024-06-23 13:48:31 +02:00
Carles Fernandez
a704c10044
Add SHA_256 unit test 2024-06-23 13:34:57 +02:00
Carles Fernandez
378820e76b
Add unit test for SHA3-256 hash algorithm 2024-06-23 13:10:38 +02:00
Carles Fernandez
d4cc036cbd
Fix HMAC-SHA256 computation with OpenSSL > 3.0 2024-06-23 12:03:12 +02:00
Carles Fernandez
1bc6d466c5
Fix conflict 2024-06-23 11:26:36 +02:00
Carles Fernandez
8dfd341d2c
Fix tests building 2024-06-23 11:10:40 +02:00
Carles Fernandez
bac36b2df5
Read .crt files instead of .pem files
Define the following global configuration parameters:
GNSS-SDR.osnma_public_key (string, by default pointing to ../data/OSNMA_PublicKey_20240115100000_newPKID_1.crt)
GNSS-SDR.osnma_merkletree (string, by default pointing to  ../data/OSNMA_MerkleTree_20240115100000_newPKID_1.xml)

Add logging of OSNMA events
Clean public API of Gnss_Crypto class
2024-06-23 09:49:14 +02:00