Skip to content

Commit

Permalink
more documentation cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
SJulianS committed Jun 3, 2024
1 parent c49bff2 commit ec57fca
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
6 changes: 6 additions & 0 deletions plugins/graph_algorithm/documentation/graph_algorithm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,10 @@ Graph Algorithms
==========================

.. automodule:: graph_algorithm
:members: get_connected_components, get_neighborhood, get_shortest_paths, get_all_shortest_paths, get_subgraph

.. autoclass:: graph_algorithm.GraphAlgorithmPlugin
:members:

.. autoclass:: graph_algorithm.NetlistGraph
:members:
4 changes: 2 additions & 2 deletions plugins/graph_algorithm/python/python_bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ namespace hal
#ifdef PYBIND11_MODULE
PYBIND11_MODULE(graph_algorithm, m)
{
m.doc() = "hal GraphAlgorithmPlugin python bindings";
m.doc() = "Graph algorithms based on igraph operating on a netlist graph abstraction.";
#else
PYBIND11_PLUGIN(graph_algorithm)
{
py::module m("graph_algorithm", "hal GraphAlgorithmPlugin python bindings");
py::module m("graph_algorithm", "Graph algorithms based on igraph operating on a netlist graph abstraction.");
#endif // ifdef PYBIND11_MODULE

py::class_<GraphAlgorithmPlugin, RawPtrWrapper<GraphAlgorithmPlugin>, BasePluginInterface> py_graph_algorithm_plugin(m, "GraphAlgorithmPlugin");
Expand Down
8 changes: 4 additions & 4 deletions plugins/hawkeye/documentation/hawkeye.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
HAWKEYE
==========================

.. automodule:: hawkeye
:members: detect_candidates, locate_sboxes, identify_sbox

.. autoclass:: hawkeye.HawkeyePlugin
:members:

Expand All @@ -27,7 +30,4 @@ HAWKEYE
.. autoclass:: hawkeye.SBoxDatabase
:members:

.. automethod:: __init__

.. automodule:: hawkeye
:members: detect_candidates, locate_sboxes, identify_sbox
.. automethod:: __init__
4 changes: 2 additions & 2 deletions plugins/hawkeye/python/python_bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ namespace hal
#ifdef PYBIND11_MODULE
PYBIND11_MODULE(hawkeye, m)
{
m.doc() = "hal HawkeyePlugin python bindings";
m.doc() = "Automated tool to locate arbitrary symmetric cryptographic implementations in gate-level netlists.";
#else
PYBIND11_PLUGIN(hawkeye)
{
py::module m("hawkeye", "hal HawkeyePlugin python bindings");
py::module m("hawkeye", "Automated tool to locate arbitrary symmetric cryptographic implementations in gate-level netlists.");
#endif // ifdef PYBIND11_MODULE

py::class_<HawkeyePlugin, RawPtrWrapper<HawkeyePlugin>, BasePluginInterface> py_hawkeye_plugin(
Expand Down
2 changes: 1 addition & 1 deletion plugins/hawkeye/src/plugin_hawkeye.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace hal

std::string HawkeyePlugin::get_description() const
{
return "Attempts to locate arbitrary symmetric cryptographic implementations.";
return "Automated tool to locate arbitrary symmetric cryptographic implementations in gate-level netlists.";
}

std::set<std::string> HawkeyePlugin::get_dependencies() const
Expand Down

0 comments on commit ec57fca

Please sign in to comment.