diff --git a/html/Utility_8hpp_source.html b/html/Utility_8hpp_source.html index ae5c1a5..2ae9107 100644 --- a/html/Utility_8hpp_source.html +++ b/html/Utility_8hpp_source.html @@ -77,7 +77,7 @@
13 #include <random>
14 #include <vector>
15 
-
17 namespace Utility {
+
17 namespace Utility {
18 
24  static std::vector<std::byte> vectorFromUint64(const uint64_t &val) {
25 
@@ -125,7 +125,7 @@
77 }
78 
79 #endif //V2VERIFIER_UTILITY_HPP
-
Utility
Utility functions to be reused throughout the project.
Definition: Utility.hpp:17
+
Utility
Utility functions to be reused throughout the project.
Definition: Utility.py:1
Utility::vectorFromUint64
static std::vector< std::byte > vectorFromUint64(const uint64_t &val)
Get the COER encoding for a given uint64_t.
Definition: Utility.hpp:24
Utility::vectorFromUint32
static std::vector< std::byte > vectorFromUint32(const uint32_t &val)
Get the COER encoding for a given uint32_t.
Definition: Utility.hpp:39
Utility::randomBytesOfLength
static std::vector< std::byte > randomBytesOfLength(const uint32_t &n)
Get n random bytes.
Definition: Utility.hpp:53
diff --git a/html/V2VSecurity_8hpp.html b/html/V2VSecurity_8hpp.html index 7467c43..aa18dbd 100644 --- a/html/V2VSecurity_8hpp.html +++ b/html/V2VSecurity_8hpp.html @@ -66,8 +66,7 @@
-Classes | -Macros
+Classes
V2VSecurity.hpp File Reference
@@ -85,12 +84,6 @@ Classes class  V2VSecurity   - - - -

-Macros

-#define ECDSA_P256_DER_LENGTH_BYTES   72
 

Detailed Description

Message signing and cryptomaterial management functions.

diff --git a/html/V2VSecurity_8hpp_source.html b/html/V2VSecurity_8hpp_source.html index 449c2d3..5b23fc3 100644 --- a/html/V2VSecurity_8hpp_source.html +++ b/html/V2VSecurity_8hpp_source.html @@ -73,44 +73,42 @@
9 #ifndef V2VERIFIER_V2VSECURITY_HPP
10 #define V2VERIFIER_V2VSECURITY_HPP
11 
-
12 #define ECDSA_P256_DER_LENGTH_BYTES 72
-
13 
-
14 #include <openssl/evp.h>
-
15 #include <string>
-
16 #include <fstream>
+
12 #include <openssl/evp.h>
+
13 #include <string>
+
14 #include <fstream>
+
15 
+
16 class V2VSecurity {
17 
-
18 class V2VSecurity {
+
18 public:
19 
-
20 public:
-
21 
-
24  V2VSecurity() = delete;
-
25 
-
30  explicit V2VSecurity(std::string &pemFilename);
-
31 
-
33  ~V2VSecurity();
-
34 
-
42  bool signMessage(char* msg, unsigned char* &sig, size_t &sig_len);
-
43 
-
52  bool verifyMessage(char *msg, evp_pkey_st *publicKey, const unsigned char* signature, size_t sig_len);
+
22  V2VSecurity() = delete;
+
23 
+
28  explicit V2VSecurity(std::string &pemFilename);
+
29 
+
31  ~V2VSecurity();
+
32 
+
40  bool signMessage(char* msg, unsigned char* &sig, size_t &sig_len);
+
41 
+
50  bool verifyMessage(char *msg, evp_pkey_st *publicKey, const unsigned char* signature, size_t sig_len);
+
51 
+
52  EVP_PKEY *pkey = nullptr;
53 
-
54  EVP_PKEY *pkey = nullptr;
+
54 private:
55 
-
56 private:
+
56  std::ifstream pemfile;
57 
-
58  std::ifstream pemfile;
-
59 
-
60  EVP_MD_CTX *mdctx_sign = nullptr;
-
61  EVP_MD_CTX *mdctx_verify = nullptr;
-
62 
-
67  void loadPEMFile(std::string &filename);
-
68 
-
70  void setup();
+
58  EVP_MD_CTX *mdctx_sign = nullptr;
+
59  EVP_MD_CTX *mdctx_verify = nullptr;
+
60 
+
65  void loadPEMFile(std::string &filename);
+
66 
+
68  void setup();
+
69 
+
70 };
71 
-
72 };
-
73 
-
74 
-
75 #endif //V2VERIFIER_V2VSECURITY_HPP
-
Definition: V2VSecurity.hpp:18
+
72 
+
73 #endif //V2VERIFIER_V2VSECURITY_HPP
+
Definition: V2VSecurity.hpp:16
~V2VSecurity()
Destructor.
Definition: V2VSecurity.cpp:21
bool signMessage(char *msg, unsigned char *&sig, size_t &sig_len)
Sign arbitrary data with ECDSA P.256. Allocates new memory on the heap to store the sig value.
Definition: V2VSecurity.cpp:82
bool verifyMessage(char *msg, evp_pkey_st *publicKey, const unsigned char *signature, size_t sig_len)
Verify ECDSA P.256 signature.
Definition: V2VSecurity.cpp:112
diff --git a/html/Vehicle_8hpp_source.html b/html/Vehicle_8hpp_source.html index d4b3598..3c617a4 100644 --- a/html/Vehicle_8hpp_source.html +++ b/html/Vehicle_8hpp_source.html @@ -146,7 +146,7 @@
154 #endif //V2VERIFIER_VEHICLE_HPP
struct VehicleMotionData VehicleMotionData
Representation of vehicle motion data to be kept updated and retrieved as needed.
struct VehicleLocationData VehicleLocationData
Representation of vehicle position/location data to be kept updated and retrieved as needed.
-
Definition: V2VSecurity.hpp:18
+
Definition: V2VSecurity.hpp:16
Definition: Vehicle.hpp:31
~Vehicle()
Definition: Vehicle.cpp:24
Vehicle(Vehicle &v)=default
diff --git a/html/annotated.html b/html/annotated.html index 8a4eec0..b70eb70 100644 --- a/html/annotated.html +++ b/html/annotated.html @@ -84,23 +84,28 @@  CIEEE1609Dot2Data  NLogger  CLog - CEccP256CurvePoint - CEcdsaP256Signature - CHeaderInfo - CIEEE1609Dot2Content - CIEEE1609Dot2Data - CJ2735BSM - CSignature - CSignedData - CSignedDataPayload - CSignerIdentifier - CToBeSignedData - CUnsecuredData - CV2VSecurity - CV2XMessage - CVehicle - CVehicleLocationDataRepresentation of vehicle position/location data to be kept updated and retrieved as needed - CVehicleMotionDataRepresentation of vehicle motion data to be kept updated and retrieved as needed + NUtilityUtility functions to be reused throughout the project + CCoordinate + NVehicle + CBSM + CVehicle + CEccP256CurvePoint + CEcdsaP256Signature + CHeaderInfo + CIEEE1609Dot2Content + CIEEE1609Dot2Data + CJ2735BSM + CSignature + CSignedData + CSignedDataPayload + CSignerIdentifier + CToBeSignedData + CUnsecuredData + CV2VSecurity + CV2XMessage + CVehicle + CVehicleLocationDataRepresentation of vehicle position/location data to be kept updated and retrieved as needed + CVehicleMotionDataRepresentation of vehicle motion data to be kept updated and retrieved as needed
diff --git a/html/classUtility_1_1Coordinate.html b/html/classUtility_1_1Coordinate.html new file mode 100644 index 0000000..5bf748d --- /dev/null +++ b/html/classUtility_1_1Coordinate.html @@ -0,0 +1,81 @@ + + + + + + + +v2verifier: Utility.Coordinate Class Reference + + + + + + + + + +
+
+ + + + + + +
+
v2verifier +
+
+
+ + + + + + + + +
+
+ + +
+ +
+ + +
+
+
+
Utility.Coordinate Class Reference
+
+
+
The documentation for this class was generated from the following file: +
+ + + + diff --git a/html/classVehicle.html b/html/classVehicle.html index 280edd5..1cbba9f 100644 --- a/html/classVehicle.html +++ b/html/classVehicle.html @@ -97,7 +97,7 @@

- + @@ -139,7 +139,7 @@

Vehicle::Vehicle Vehicle::Vehicle ( Vehicle v)
- + @@ -203,7 +203,7 @@

Vehicle::Vehicle Vehicle::Vehicle ( double  latitude,
- + diff --git a/html/classVehicle_1_1BSM.html b/html/classVehicle_1_1BSM.html new file mode 100644 index 0000000..53812e1 --- /dev/null +++ b/html/classVehicle_1_1BSM.html @@ -0,0 +1,81 @@ + + + + + + + +v2verifier: Vehicle.BSM Class Reference + + + + + + + + + +
+
+
Vehicle::Vehicle Vehicle::Vehicle ( double  latitude,
+ + + + + +
+
v2verifier +
+
+ + + + + + + + + +
+
+ + +
+ +
+ +
+ +
+
+
Vehicle.BSM Class Reference
+
+
+
The documentation for this class was generated from the following file:
    +
  • osm-gui/Vehicle.py
  • +
+
+ + + + diff --git a/html/classVehicle_1_1Vehicle-members.html b/html/classVehicle_1_1Vehicle-members.html new file mode 100644 index 0000000..6655624 --- /dev/null +++ b/html/classVehicle_1_1Vehicle-members.html @@ -0,0 +1,101 @@ + + + + + + + +v2verifier: Member List + + + + + + + + + +
+
+ + + + + + +
+
v2verifier +
+
+
+ + + + + + + + +
+
+ + +
+ +
+ + +
+
+
+
Vehicle.Vehicle Member List
+
+
+ +

This is the complete list of members for Vehicle.Vehicle, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + +
__init__(self, listen_port, transmit_port, str trace_file) (defined in Vehicle.Vehicle)Vehicle.Vehicle
client_socket (defined in Vehicle.Vehicle)Vehicle.Vehicle
elevation (defined in Vehicle.Vehicle)Vehicle.Vehicle
generate_bsm(self) (defined in Vehicle.Vehicle)Vehicle.Vehicle
GUI_PORT (defined in Vehicle.Vehicle)Vehicle.Vehiclestatic
heading (defined in Vehicle.Vehicle)Vehicle.Vehicle
id (defined in Vehicle.Vehicle)Vehicle.Vehicle
id_incrementer (defined in Vehicle.Vehicle)Vehicle.Vehiclestatic
move(self, int update_interval) (defined in Vehicle.Vehicle)Vehicle.Vehicle
pos_tracker (defined in Vehicle.Vehicle)Vehicle.Vehicle
position (defined in Vehicle.Vehicle)Vehicle.Vehicle
recv_port (defined in Vehicle.Vehicle)Vehicle.Vehicle
send_port (defined in Vehicle.Vehicle)Vehicle.Vehicle
server_socket (defined in Vehicle.Vehicle)Vehicle.Vehicle
speed (defined in Vehicle.Vehicle)Vehicle.Vehicle
start_listener(self) (defined in Vehicle.Vehicle)Vehicle.Vehicle
start_transmitter(self) (defined in Vehicle.Vehicle)Vehicle.Vehicle
test_mode (defined in Vehicle.Vehicle)Vehicle.Vehiclestatic
trace (defined in Vehicle.Vehicle)Vehicle.Vehicle
update_position(self, float elapsed_time) (defined in Vehicle.Vehicle)Vehicle.Vehicle
+ + + + diff --git a/html/classVehicle_1_1Vehicle.html b/html/classVehicle_1_1Vehicle.html new file mode 100644 index 0000000..9e77060 --- /dev/null +++ b/html/classVehicle_1_1Vehicle.html @@ -0,0 +1,156 @@ + + + + + + + +v2verifier: Vehicle.Vehicle Class Reference + + + + + + + + + +
+
+ + + + + + +
+
v2verifier +
+
+
+ + + + + + + + +
+
+ + +
+ +
+ + +
+ +
+ + + + + + + + + + + + + + +

+Public Member Functions

+def __init__ (self, listen_port, transmit_port, str trace_file)
 
+None move (self, int update_interval)
 
+BSM generate_bsm (self)
 
+def start_listener (self)
 
+def start_transmitter (self)
 
+def update_position (self, float elapsed_time)
 
+ + + + + + + + + + + + + + + + + + + + + + + +

+Public Attributes

id
 
elevation
 
speed
 
heading
 
send_port
 
recv_port
 
trace
 
pos_tracker
 
position
 
server_socket
 
client_socket
 
+ + + + + + + +

+Static Public Attributes

+int id_incrementer = 0
 
+bool test_mode = False
 
+int GUI_PORT = 9999
 
+
The documentation for this class was generated from the following file:
    +
  • osm-gui/Vehicle.py
  • +
+
+ + + + diff --git a/html/classes.html b/html/classes.html index 14c7203..d69d41b 100644 --- a/html/classes.html +++ b/html/classes.html @@ -65,41 +65,44 @@
Class Index
-
C | E | G | H | I | J | L | S | T | U | V
+
B | C | E | G | H | I | J | L | S | T | U | V
diff --git a/html/classgui_1_1GUI-members.html b/html/classgui_1_1GUI-members.html index 2ce1363..03970fa 100644 --- a/html/classgui_1_1GUI-members.html +++ b/html/classgui_1_1GUI-members.html @@ -74,12 +74,15 @@ - + + + - - - + + + +
__init__(self)gui.GUI
clear_vehicle_markers(self) (defined in gui.GUI)gui.GUI
render_vehicle_markers(self) (defined in gui.GUI)gui.GUI
recv_port (defined in gui.GUI)gui.GUI
render_vehicle_markers(self) (defined in gui.GUI)gui.GUI
server_socket (defined in gui.GUI)gui.GUI
set_up_vehicle_markers(self) (defined in gui.GUI)gui.GUI
show_vehicles(self) (defined in gui.GUI)gui.GUI
update_vehicle(self, dict vehicle_info)gui.GUI
vehicle_is_known(self, int id) (defined in gui.GUI)gui.GUI
vehicles (defined in gui.GUI)gui.GUI
start_listener(self) (defined in gui.GUI)gui.GUI
update_vehicle(self, dict vehicle_info)gui.GUI
vehicle_is_known(self, int id) (defined in gui.GUI)gui.GUI
vehicles (defined in gui.GUI)gui.GUI