diff --git a/infidel-code/.gitignore b/infidel-code/.gitignore new file mode 100644 index 0000000..36f971e --- /dev/null +++ b/infidel-code/.gitignore @@ -0,0 +1 @@ +bin/* diff --git a/infidel-code/Makefile b/infidel-code/Makefile index d440d98..390100a 100644 --- a/infidel-code/Makefile +++ b/infidel-code/Makefile @@ -6,7 +6,7 @@ DEPS:=$(shell cat ./satan.txt) MAKEFLAGS += --silent -all: test_401_full test_593_full +all: enc_593.so dec_593.so enc_401.so dec_401.so test_401_full test_593_full @echo "Compiled " $@ test_401_full: diff --git a/infidel-code/README.md b/infidel-code/README.md index c93bf27..858f47b 100644 --- a/infidel-code/README.md +++ b/infidel-code/README.md @@ -2,9 +2,7 @@ ### Build - make test_401_full - make test_593_full - make test_593_full + make all ### Shared Object Connector to Python Wrapper @@ -12,7 +10,9 @@ ### Test Runnner - ./runner.sh +* Setup a mosquitto broker on target machine as example on 127.0.0.1 +* Run a mosquitto subscriber or any MQTT subscriber pointing to MQTT broker at 127.0.0.1 and subsriber to 'device01/msg' topic +* ./runner.sh -![Runner](http://192.168.2.34/infidel/NTRU_IoT/raw/branch/master/assets/runner.png) +![Runner](https://git.nnag.me/infidel/NTRU_IoT/raw/branch/master/assets/runner.png) diff --git a/infidel-code/bin/dec_401.so b/infidel-code/bin/dec_401.so index 9e9a5b1..f52f2da 100755 Binary files a/infidel-code/bin/dec_401.so and b/infidel-code/bin/dec_401.so differ diff --git a/infidel-code/bin/dec_593.so b/infidel-code/bin/dec_593.so index 8aa6671..2240da3 100755 Binary files a/infidel-code/bin/dec_593.so and b/infidel-code/bin/dec_593.so differ diff --git a/infidel-code/bin/enc_401.so b/infidel-code/bin/enc_401.so index f6a13f7..ed7996a 100755 Binary files a/infidel-code/bin/enc_401.so and b/infidel-code/bin/enc_401.so differ diff --git a/infidel-code/bin/enc_593.so b/infidel-code/bin/enc_593.so index dbb0ace..6a0b5a7 100755 Binary files a/infidel-code/bin/enc_593.so and b/infidel-code/bin/enc_593.so differ diff --git a/infidel-code/bin/keys/key-593.priv b/infidel-code/bin/keys/key-593.priv deleted file mode 100644 index f9f4c49..0000000 Binary files a/infidel-code/bin/keys/key-593.priv and /dev/null differ diff --git a/infidel-code/bin/keys/key-593.pub b/infidel-code/bin/keys/key-593.pub deleted file mode 100644 index d8768b5..0000000 Binary files a/infidel-code/bin/keys/key-593.pub and /dev/null differ diff --git a/infidel-code/bin/test_401_full b/infidel-code/bin/test_401_full index 5570426..80e8594 100755 Binary files a/infidel-code/bin/test_401_full and b/infidel-code/bin/test_401_full differ diff --git a/infidel-code/bin/test_593_full b/infidel-code/bin/test_593_full index 395cad4..5ea8bb6 100755 Binary files a/infidel-code/bin/test_593_full and b/infidel-code/bin/test_593_full differ diff --git a/infidel-code/keys/key-401.priv b/infidel-code/keys/key-401.priv index ba03f7c..9e1cf08 100644 Binary files a/infidel-code/keys/key-401.priv and b/infidel-code/keys/key-401.priv differ diff --git a/infidel-code/keys/key-401.pub b/infidel-code/keys/key-401.pub index c81518d..6ad79f6 100644 Binary files a/infidel-code/keys/key-401.pub and b/infidel-code/keys/key-401.pub differ diff --git a/infidel-code/py_wrappers/Publisher_GUI.py b/infidel-code/py_wrappers/Publisher_GUI.py index b7d0df0..458997a 100755 --- a/infidel-code/py_wrappers/Publisher_GUI.py +++ b/infidel-code/py_wrappers/Publisher_GUI.py @@ -9,7 +9,7 @@ from ctypes import * import _ctypes from textwrap import wrap -broker = "192.168.2.16" +broker = "127.0.0.1" client = paho.Client() port = 1883 diff --git a/infidel-code/py_wrappers/python_Connector.py b/infidel-code/py_wrappers/python_Connector.py old mode 100644 new mode 100755 diff --git a/infidel-code/runner.sh b/infidel-code/runner.sh index 3a3077c..fe9d3ca 100755 --- a/infidel-code/runner.sh +++ b/infidel-code/runner.sh @@ -26,7 +26,7 @@ case $testType in 4) echo -e "" - python3 py-wrappers/python_Connector.py + python3 py_wrappers/python_Connector.py ;; *) echo -n "Wrong input"