Skip to content

Commit

Permalink
Deploying to docs from @ 2d32917 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
twardokus committed May 19, 2024
1 parent c7c29cd commit b8ba809
Show file tree
Hide file tree
Showing 114 changed files with 1,240 additions and 579 deletions.
4 changes: 2 additions & 2 deletions html/Utility_8hpp_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="preprocessor">#include &lt;random&gt;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160; </div>
<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="namespaceUtility.html"> 17</a></span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceUtility.html">Utility</a> {</div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceUtility.html">Utility</a> {</div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160; </div>
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="namespaceUtility.html#a141e49b34b1568b692201a784ad14f36"> 24</a></span>&#160; <span class="keyword">static</span> std::vector&lt;std::byte&gt; <a class="code" href="namespaceUtility.html#a141e49b34b1568b692201a784ad14f36">vectorFromUint64</a>(<span class="keyword">const</span> uint64_t &amp;val) {</div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; </div>
Expand Down Expand Up @@ -125,7 +125,7 @@
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160;}</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; </div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160;<span class="preprocessor">#endif </span><span class="comment">//V2VERIFIER_UTILITY_HPP</span></div>
<div class="ttc" id="anamespaceUtility_html"><div class="ttname"><a href="namespaceUtility.html">Utility</a></div><div class="ttdoc">Utility functions to be reused throughout the project.</div><div class="ttdef"><b>Definition:</b> Utility.hpp:17</div></div>
<div class="ttc" id="anamespaceUtility_html"><div class="ttname"><a href="namespaceUtility.html">Utility</a></div><div class="ttdoc">Utility functions to be reused throughout the project.</div><div class="ttdef"><b>Definition:</b> Utility.py:1</div></div>
<div class="ttc" id="anamespaceUtility_html_a141e49b34b1568b692201a784ad14f36"><div class="ttname"><a href="namespaceUtility.html#a141e49b34b1568b692201a784ad14f36">Utility::vectorFromUint64</a></div><div class="ttdeci">static std::vector&lt; std::byte &gt; vectorFromUint64(const uint64_t &amp;val)</div><div class="ttdoc">Get the COER encoding for a given uint64_t.</div><div class="ttdef"><b>Definition:</b> Utility.hpp:24</div></div>
<div class="ttc" id="anamespaceUtility_html_a179f5d47b4d94688a5304194c68a1df5"><div class="ttname"><a href="namespaceUtility.html#a179f5d47b4d94688a5304194c68a1df5">Utility::vectorFromUint32</a></div><div class="ttdeci">static std::vector&lt; std::byte &gt; vectorFromUint32(const uint32_t &amp;val)</div><div class="ttdoc">Get the COER encoding for a given uint32_t.</div><div class="ttdef"><b>Definition:</b> Utility.hpp:39</div></div>
<div class="ttc" id="anamespaceUtility_html_a4cd6cc78fa8bfc19ab00d83675d2ca1f"><div class="ttname"><a href="namespaceUtility.html#a4cd6cc78fa8bfc19ab00d83675d2ca1f">Utility::randomBytesOfLength</a></div><div class="ttdeci">static std::vector&lt; std::byte &gt; randomBytesOfLength(const uint32_t &amp;n)</div><div class="ttdoc">Get n random bytes.</div><div class="ttdef"><b>Definition:</b> Utility.hpp:53</div></div>
Expand Down
9 changes: 1 addition & 8 deletions html/V2VSecurity_8hpp.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#define-members">Macros</a> </div>
<a href="#nested-classes">Classes</a> </div>
<div class="headertitle">
<div class="title">V2VSecurity.hpp File Reference</div> </div>
</div><!--header-->
Expand All @@ -85,12 +84,6 @@
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classV2VSecurity.html">V2VSecurity</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ab453a9295ca69c36543135c1757ffb9c"><td class="memItemLeft" align="right" valign="top"><a id="ab453a9295ca69c36543135c1757ffb9c"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>ECDSA_P256_DER_LENGTH_BYTES</b>&#160;&#160;&#160;72</td></tr>
<tr class="separator:ab453a9295ca69c36543135c1757ffb9c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Message signing and cryptomaterial management functions. </p>
Expand Down
62 changes: 30 additions & 32 deletions html/V2VSecurity_8hpp_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,44 +73,42 @@
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="preprocessor">#ifndef V2VERIFIER_V2VSECURITY_HPP</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="preprocessor">#define V2VERIFIER_V2VSECURITY_HPP</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160; </div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="preprocessor">#define ECDSA_P256_DER_LENGTH_BYTES 72</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160; </div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="preprocessor">#include &lt;openssl/evp.h&gt;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="preprocessor">#include &lt;fstream&gt;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="preprocessor">#include &lt;openssl/evp.h&gt;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="preprocessor">#include &lt;fstream&gt;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160; </div>
<div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="classV2VSecurity.html"> 16</a></span>&#160;<span class="keyword">class </span><a class="code" href="classV2VSecurity.html">V2VSecurity</a> {</div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160; </div>
<div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="classV2VSecurity.html"> 18</a></span>&#160;<span class="keyword">class </span><a class="code" href="classV2VSecurity.html">V2VSecurity</a> {</div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160; </div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160; </div>
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="classV2VSecurity.html#aadfc94daf8014bd29b0cf3d3f5068522"> 24</a></span>&#160; <a class="code" href="classV2VSecurity.html#aadfc94daf8014bd29b0cf3d3f5068522">V2VSecurity</a>() = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; </div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; <span class="keyword">explicit</span> <a class="code" href="classV2VSecurity.html#aadfc94daf8014bd29b0cf3d3f5068522">V2VSecurity</a>(std::string &amp;pemFilename);</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; </div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; <a class="code" href="classV2VSecurity.html#a2959af625128cd12419a3c268ecfffb6">~V2VSecurity</a>();</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; </div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classV2VSecurity.html#a474d6ee504471f8454f1bc270dfa6fa0">signMessage</a>(<span class="keywordtype">char</span>* msg, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* &amp;sig, <span class="keywordtype">size_t</span> &amp;sig_len);</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; </div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classV2VSecurity.html#a96055736504fc720b7ff960009e2e730">verifyMessage</a>(<span class="keywordtype">char</span> *msg, evp_pkey_st *publicKey, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* signature, <span class="keywordtype">size_t</span> sig_len);</div>
<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="classV2VSecurity.html#aadfc94daf8014bd29b0cf3d3f5068522"> 22</a></span>&#160; <a class="code" href="classV2VSecurity.html#aadfc94daf8014bd29b0cf3d3f5068522">V2VSecurity</a>() = <span class="keyword">delete</span>;</div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160; </div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; <span class="keyword">explicit</span> <a class="code" href="classV2VSecurity.html#aadfc94daf8014bd29b0cf3d3f5068522">V2VSecurity</a>(std::string &amp;pemFilename);</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; </div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; <a class="code" href="classV2VSecurity.html#a2959af625128cd12419a3c268ecfffb6">~V2VSecurity</a>();</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; </div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classV2VSecurity.html#a474d6ee504471f8454f1bc270dfa6fa0">signMessage</a>(<span class="keywordtype">char</span>* msg, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* &amp;sig, <span class="keywordtype">size_t</span> &amp;sig_len);</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; </div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="classV2VSecurity.html#a96055736504fc720b7ff960009e2e730">verifyMessage</a>(<span class="keywordtype">char</span> *msg, evp_pkey_st *publicKey, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* signature, <span class="keywordtype">size_t</span> sig_len);</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; </div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; EVP_PKEY *pkey = <span class="keyword">nullptr</span>;</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; </div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; EVP_PKEY *pkey = <span class="keyword">nullptr</span>;</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; </div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; std::ifstream pemfile;</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; </div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; std::ifstream pemfile;</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; </div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; EVP_MD_CTX *mdctx_sign = <span class="keyword">nullptr</span>;</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; EVP_MD_CTX *mdctx_verify = <span class="keyword">nullptr</span>;</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; </div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; <span class="keywordtype">void</span> loadPEMFile(std::string &amp;filename);</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; </div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <span class="keywordtype">void</span> setup();</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; EVP_MD_CTX *mdctx_sign = <span class="keyword">nullptr</span>;</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; EVP_MD_CTX *mdctx_verify = <span class="keyword">nullptr</span>;</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; </div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <span class="keywordtype">void</span> loadPEMFile(std::string &amp;filename);</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; </div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <span class="keywordtype">void</span> setup();</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; </div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160;};</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; </div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160;};</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; </div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; </div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160;<span class="preprocessor">#endif </span><span class="comment">//V2VERIFIER_V2VSECURITY_HPP</span></div>
<div class="ttc" id="aclassV2VSecurity_html"><div class="ttname"><a href="classV2VSecurity.html">V2VSecurity</a></div><div class="ttdef"><b>Definition:</b> V2VSecurity.hpp:18</div></div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; </div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160;<span class="preprocessor">#endif </span><span class="comment">//V2VERIFIER_V2VSECURITY_HPP</span></div>
<div class="ttc" id="aclassV2VSecurity_html"><div class="ttname"><a href="classV2VSecurity.html">V2VSecurity</a></div><div class="ttdef"><b>Definition:</b> V2VSecurity.hpp:16</div></div>
<div class="ttc" id="aclassV2VSecurity_html_a2959af625128cd12419a3c268ecfffb6"><div class="ttname"><a href="classV2VSecurity.html#a2959af625128cd12419a3c268ecfffb6">V2VSecurity::~V2VSecurity</a></div><div class="ttdeci">~V2VSecurity()</div><div class="ttdoc">Destructor.</div><div class="ttdef"><b>Definition:</b> V2VSecurity.cpp:21</div></div>
<div class="ttc" id="aclassV2VSecurity_html_a474d6ee504471f8454f1bc270dfa6fa0"><div class="ttname"><a href="classV2VSecurity.html#a474d6ee504471f8454f1bc270dfa6fa0">V2VSecurity::signMessage</a></div><div class="ttdeci">bool signMessage(char *msg, unsigned char *&amp;sig, size_t &amp;sig_len)</div><div class="ttdoc">Sign arbitrary data with ECDSA P.256. Allocates new memory on the heap to store the sig value.</div><div class="ttdef"><b>Definition:</b> V2VSecurity.cpp:82</div></div>
<div class="ttc" id="aclassV2VSecurity_html_a96055736504fc720b7ff960009e2e730"><div class="ttname"><a href="classV2VSecurity.html#a96055736504fc720b7ff960009e2e730">V2VSecurity::verifyMessage</a></div><div class="ttdeci">bool verifyMessage(char *msg, evp_pkey_st *publicKey, const unsigned char *signature, size_t sig_len)</div><div class="ttdoc">Verify ECDSA P.256 signature.</div><div class="ttdef"><b>Definition:</b> V2VSecurity.cpp:112</div></div>
Expand Down
2 changes: 1 addition & 1 deletion html/Vehicle_8hpp_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160;<span class="preprocessor">#endif </span><span class="comment">//V2VERIFIER_VEHICLE_HPP</span></div>
<div class="ttc" id="aVehicle_8hpp_html_ade7d382a55434dc4903d678faa709bd4"><div class="ttname"><a href="Vehicle_8hpp.html#ade7d382a55434dc4903d678faa709bd4">VehicleMotionData</a></div><div class="ttdeci">struct VehicleMotionData VehicleMotionData</div><div class="ttdoc">Representation of vehicle motion data to be kept updated and retrieved as needed.</div></div>
<div class="ttc" id="aVehicle_8hpp_html_adf3ef6b43e8fb357b6e1feb1900068ed"><div class="ttname"><a href="Vehicle_8hpp.html#adf3ef6b43e8fb357b6e1feb1900068ed">VehicleLocationData</a></div><div class="ttdeci">struct VehicleLocationData VehicleLocationData</div><div class="ttdoc">Representation of vehicle position/location data to be kept updated and retrieved as needed.</div></div>
<div class="ttc" id="aclassV2VSecurity_html"><div class="ttname"><a href="classV2VSecurity.html">V2VSecurity</a></div><div class="ttdef"><b>Definition:</b> V2VSecurity.hpp:18</div></div>
<div class="ttc" id="aclassV2VSecurity_html"><div class="ttname"><a href="classV2VSecurity.html">V2VSecurity</a></div><div class="ttdef"><b>Definition:</b> V2VSecurity.hpp:16</div></div>
<div class="ttc" id="aclassVehicle_html"><div class="ttname"><a href="classVehicle.html">Vehicle</a></div><div class="ttdef"><b>Definition:</b> Vehicle.hpp:31</div></div>
<div class="ttc" id="aclassVehicle_html_a61ab140c755b8e0e824d54117cf4546f"><div class="ttname"><a href="classVehicle.html#a61ab140c755b8e0e824d54117cf4546f">Vehicle::~Vehicle</a></div><div class="ttdeci">~Vehicle()</div><div class="ttdef"><b>Definition:</b> Vehicle.cpp:24</div></div>
<div class="ttc" id="aclassVehicle_html_a6677f1cd7b4cc8a3c5011bef2fc0107e"><div class="ttname"><a href="classVehicle.html#a6677f1cd7b4cc8a3c5011bef2fc0107e">Vehicle::Vehicle</a></div><div class="ttdeci">Vehicle(Vehicle &amp;v)=default</div></div>
Expand Down
Loading

0 comments on commit b8ba809

Please sign in to comment.