diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 0ba03f09b3f41b67ce3bf51ba0feb955ec32b070..dc2fc331e163386187f6a41d15cf75ec6d22d74c 100755 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -11,10 +11,34 @@ </configurations> </component> <component name="ChangeListManager"> - <list default="true" id="2624f523-8bdb-4867-a32b-0c8fa25f5cda" name="Default" comment="Packing tests"> + <list default="true" id="2624f523-8bdb-4867-a32b-0c8fa25f5cda" name="Default" comment="New tests for the S&P paper"> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> + <change beforePath="$PROJECT_DIR$/CONFIG/DAPPLE.config" beforeDir="false" afterPath="$PROJECT_DIR$/CONFIG/DAPPLE.config" afterDir="false" /> + <change beforePath="$PROJECT_DIR$/CRYPTO/DTPKC.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/CRYPTO/DTPKC.cpp" afterDir="false" /> + <change beforePath="$PROJECT_DIR$/CRYPTO/DTPKC.h" beforeDir="false" afterPath="$PROJECT_DIR$/CRYPTO/DTPKC.h" afterDir="false" /> + <change beforePath="$PROJECT_DIR$/CRYPTO/EvalAddPow2.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/CRYPTO/EvalAddPow2.cpp" afterDir="false" /> + <change beforePath="$PROJECT_DIR$/CRYPTO/EvalAddPow2.h" beforeDir="false" afterPath="$PROJECT_DIR$/CRYPTO/EvalAddPow2.h" afterDir="false" /> + <change beforePath="$PROJECT_DIR$/CRYPTO/EvalCmp.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/CRYPTO/EvalCmp.cpp" afterDir="false" /> + <change beforePath="$PROJECT_DIR$/CRYPTO/EvalCmp.h" beforeDir="false" afterPath="$PROJECT_DIR$/CRYPTO/EvalCmp.h" afterDir="false" /> + <change beforePath="$PROJECT_DIR$/CRYPTO/EvalCmp100.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/CRYPTO/EvalCmp100.cpp" afterDir="false" /> + <change beforePath="$PROJECT_DIR$/CRYPTO/EvalDiv.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/CRYPTO/EvalDiv.cpp" afterDir="false" /> <change beforePath="$PROJECT_DIR$/CRYPTO/EvalDiv100.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/CRYPTO/EvalDiv100.cpp" afterDir="false" /> + <change beforePath="$PROJECT_DIR$/CRYPTO/EvalDotProd.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/CRYPTO/EvalDotProd.cpp" afterDir="false" /> + <change beforePath="$PROJECT_DIR$/CRYPTO/EvalEntropy.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/CRYPTO/EvalEntropy.cpp" afterDir="false" /> + <change beforePath="$PROJECT_DIR$/CRYPTO/EvalHBound.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/CRYPTO/EvalHBound.cpp" afterDir="false" /> + <change beforePath="$PROJECT_DIR$/CRYPTO/EvalLog.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/CRYPTO/EvalLog.cpp" afterDir="false" /> + <change beforePath="$PROJECT_DIR$/CRYPTO/EvalLrUpdate.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/CRYPTO/EvalLrUpdate.cpp" afterDir="false" /> + <change beforePath="$PROJECT_DIR$/CRYPTO/EvalMult.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/CRYPTO/EvalMult.cpp" afterDir="false" /> + <change beforePath="$PROJECT_DIR$/CRYPTO/EvalProba.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/CRYPTO/EvalProba.cpp" afterDir="false" /> + <change beforePath="$PROJECT_DIR$/CRYPTO/EvalSigmoid.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/CRYPTO/EvalSigmoid.cpp" afterDir="false" /> + <change beforePath="$PROJECT_DIR$/CRYPTO/EvalStandardDiv.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/CRYPTO/EvalStandardDiv.cpp" afterDir="false" /> + <change beforePath="$PROJECT_DIR$/CRYPTO/SkeySwitch.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/CRYPTO/SkeySwitch.cpp" afterDir="false" /> + <change beforePath="$PROJECT_DIR$/TEST/TESTBuildingBlocks.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/TEST/TESTBuildingBlocks.cpp" afterDir="false" /> + <change beforePath="$PROJECT_DIR$/TEST/TESTDTPKC.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/TEST/TESTDTPKC.cpp" afterDir="false" /> + <change beforePath="$PROJECT_DIR$/TEST/TESTElementaryOps.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/TEST/TESTElementaryOps.cpp" afterDir="false" /> + <change beforePath="$PROJECT_DIR$/TEST/TESTpacking.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/TEST/TESTpacking.cpp" afterDir="false" /> <change beforePath="$PROJECT_DIR$/TEST/main.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/TEST/main.cpp" afterDir="false" /> + <change beforePath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/DAPPLE.dir/CXX.includecache" beforeDir="false" afterPath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/DAPPLE.dir/CXX.includecache" afterDir="false" /> </list> <ignored path="$PROJECT_DIR$/cmake-build-debug/" /> <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> @@ -44,79 +68,55 @@ <component name="FileEditorManager"> <leaf SIDE_TABS_SIZE_LIMIT_KEY="300"> <file pinned="false" current-in-tab="false"> - <entry file="file://$PROJECT_DIR$/TEST/TESTpacking.cpp"> + <entry file="file://$PROJECT_DIR$/CRYPTO/EvalProba.cpp"> <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="188"> - <caret line="97" column="49" selection-start-line="97" selection-start-column="49" selection-end-line="97" selection-end-column="49" /> + <state relative-caret-position="-926"> <folding> - <element signature="e#0#24#0" expanded="true" /> + <element signature="e#0#22#0" expanded="true" /> </folding> </state> </provider> </entry> </file> <file pinned="false" current-in-tab="false"> - <entry file="file://$PROJECT_DIR$/TEST/main.cpp"> + <entry file="file://$PROJECT_DIR$/CRYPTO/EvalAddPow2.cpp"> <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="248"> - <caret line="1096" column="76" selection-start-line="1096" selection-start-column="76" selection-end-line="1096" selection-end-column="76" /> - <folding> - <element signature="e#52#93#0" expanded="true" /> - </folding> + <state relative-caret-position="604"> + <caret line="119" lean-forward="true" selection-start-line="119" selection-end-line="119" /> </state> </provider> </entry> </file> <file pinned="false" current-in-tab="true"> - <entry file="file://$PROJECT_DIR$/CRYPTO/EvalDiv100.cpp"> + <entry file="file://$PROJECT_DIR$/CRYPTO/EvalCmp.cpp"> <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="138"> - <caret line="43" lean-forward="true" selection-start-line="43" selection-end-line="43" /> + <state relative-caret-position="874"> + <caret line="117" column="5" lean-forward="true" selection-start-line="117" selection-start-column="5" selection-end-line="117" selection-end-column="5" /> </state> </provider> </entry> </file> <file pinned="false" current-in-tab="false"> - <entry file="file://$PROJECT_DIR$/TEST/TESTElementaryOps.cpp"> + <entry file="file://$PROJECT_DIR$/ML/VFDT/Node.cpp"> <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="399"> - <caret line="124" lean-forward="true" selection-start-line="124" selection-end-line="124" /> - <folding> - <element signature="e#0#30#0" expanded="true" /> - </folding> + <state relative-caret-position="-1650"> + <caret line="40" lean-forward="true" selection-start-line="40" selection-end-line="40" /> </state> </provider> </entry> </file> <file pinned="false" current-in-tab="false"> - <entry file="file://$PROJECT_DIR$/CMakeLists.txt"> + <entry file="file://$PROJECT_DIR$/ML/VFDT/VFDT_Classifier.cpp"> <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="465"> - <caret line="31" column="91" selection-end-line="31" selection-end-column="91" /> - </state> + <state relative-caret-position="-1170" /> </provider> </entry> </file> <file pinned="false" current-in-tab="false"> - <entry file="file://$PROJECT_DIR$/TEST/TestOpenMp.cpp"> + <entry file="file://$PROJECT_DIR$/CRYPTO/EvalAddPow2.h"> <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="2475"> - <caret line="165" selection-start-line="165" selection-end-line="165" /> - <folding> - <element signature="e#0#19#0" expanded="true" /> - </folding> - </state> - </provider> - </entry> - </file> - <file pinned="false" current-in-tab="false"> - <entry file="file://$PROJECT_DIR$/CRYPTO/DTPKC.cpp"> - <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="11835"> - <caret line="789" selection-start-line="789" selection-end-line="789" /> - <folding> - <element signature="e#462#3260#0" /> - </folding> + <state relative-caret-position="634"> + <caret line="58" selection-start-line="58" selection-end-line="58" /> </state> </provider> </entry> @@ -124,17 +124,17 @@ <file pinned="false" current-in-tab="false"> <entry file="file://$PROJECT_DIR$/PPML/IO/PPDatasetReader.cpp"> <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="2040"> - <caret line="136" column="30" selection-start-line="136" selection-start-column="15" selection-end-line="136" selection-end-column="35" /> + <state relative-caret-position="-1081"> + <caret line="120" column="27" lean-forward="true" selection-start-line="120" selection-start-column="27" selection-end-line="120" selection-end-column="27" /> </state> </provider> </entry> </file> <file pinned="false" current-in-tab="false"> - <entry file="file://$PROJECT_DIR$/CRYPTO/DTPKC.h"> + <entry file="file://$PROJECT_DIR$/PPML/IO/PPRecord.h"> <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="2745"> - <caret line="183" column="40" selection-start-line="183" selection-start-column="40" selection-end-line="183" selection-end-column="40" /> + <state relative-caret-position="510"> + <caret line="36" lean-forward="true" selection-start-line="36" selection-end-line="36" /> </state> </provider> </entry> @@ -148,6 +148,11 @@ </provider> </entry> </file> + <file pinned="false" current-in-tab="false"> + <entry file="file://$PROJECT_DIR$/EXP/DEBUG-LR/Cipher-2019-04-03-13:23:53-Stats.csv"> + <provider selected="true" editor-type-id="text-editor" /> + </entry> + </file> </leaf> </component> <component name="FindInProjectRecents"> @@ -206,11 +211,6 @@ <component name="IdeDocumentHistory"> <option name="CHANGED_PATHS"> <list> - <option value="$PROJECT_DIR$/DATA/Datasets/Nursery/LR/DO_9.data" /> - <option value="$PROJECT_DIR$/DATA/Datasets/Nursery/LR/DO_10.data" /> - <option value="$PROJECT_DIR$/DATA/Datasets/Bank/LR/DO_10.data" /> - <option value="$PROJECT_DIR$/DATA/Datasets/Bank/LR/DO_11.data" /> - <option value="$PROJECT_DIR$/DATA/Datasets/Bank/LR/DO_12.data" /> <option value="$PROJECT_DIR$/DATA/Datasets/Bank/LR/DO_13.data" /> <option value="$PROJECT_DIR$/DATA/Datasets/Bank/LR/DO_14.data" /> <option value="$PROJECT_DIR$/DATA/Datasets/Bank/LR/DO_15.data" /> @@ -253,19 +253,24 @@ <option value="$PROJECT_DIR$/TEST/TESTElementaryOps.cpp" /> <option value="$PROJECT_DIR$/CMakeLists.txt" /> <option value="$PROJECT_DIR$/CRYPTO/DTPKC.h" /> - <option value="$PROJECT_DIR$/CRYPTO/DTPKC.cpp" /> <option value="$PROJECT_DIR$/TEST/TESTpacking.cpp" /> <option value="$PROJECT_DIR$/TEST/main.cpp" /> <option value="$PROJECT_DIR$/CRYPTO/EvalDiv100.cpp" /> + <option value="$PROJECT_DIR$/CRYPTO/EvalAddPow2.h" /> + <option value="$PROJECT_DIR$/CRYPTO/EvalCmp.h" /> + <option value="$PROJECT_DIR$/CRYPTO/EvalCmp100.cpp" /> + <option value="$PROJECT_DIR$/CRYPTO/DTPKC.cpp" /> + <option value="$PROJECT_DIR$/CRYPTO/EvalAddPow2.cpp" /> + <option value="$PROJECT_DIR$/CRYPTO/EvalCmp.cpp" /> </list> </option> </component> <component name="OCFindUsagesOptions" text="true" ivars="false" properties="true" derivedClasses="false" /> <component name="ProjectFrameBounds" extendedState="6"> - <option name="x" value="352" /> - <option name="y" value="344" /> - <option name="width" value="915" /> - <option name="height" value="915" /> + <option name="x" value="33" /> + <option name="y" value="6" /> + <option name="width" value="925" /> + <option name="height" value="269" /> </component> <component name="ProjectLevelVcsManager" settingsEditedManually="true" /> <component name="ProjectView"> @@ -273,7 +278,6 @@ <foldersAlwaysOnTop value="true" /> </navigator> <panes> - <pane id="Scope" /> <pane id="ProjectPane"> <subPane> <expand> @@ -294,29 +298,30 @@ <path> <item name="DAPPLE" type="b2602c69:ProjectViewProjectNode" /> <item name="DAPPLE-2.0" type="462c0819:PsiDirectoryNode" /> - <item name="PPML" type="462c0819:PsiDirectoryNode" /> + <item name="ML" type="462c0819:PsiDirectoryNode" /> </path> <path> <item name="DAPPLE" type="b2602c69:ProjectViewProjectNode" /> <item name="DAPPLE-2.0" type="462c0819:PsiDirectoryNode" /> - <item name="PPML" type="462c0819:PsiDirectoryNode" /> - <item name="IO" type="462c0819:PsiDirectoryNode" /> + <item name="ML" type="462c0819:PsiDirectoryNode" /> + <item name="VFDT" type="462c0819:PsiDirectoryNode" /> </path> <path> <item name="DAPPLE" type="b2602c69:ProjectViewProjectNode" /> <item name="DAPPLE-2.0" type="462c0819:PsiDirectoryNode" /> <item name="PPML" type="462c0819:PsiDirectoryNode" /> - <item name="PPNB" type="462c0819:PsiDirectoryNode" /> </path> <path> <item name="DAPPLE" type="b2602c69:ProjectViewProjectNode" /> <item name="DAPPLE-2.0" type="462c0819:PsiDirectoryNode" /> - <item name="TEST" type="462c0819:PsiDirectoryNode" /> + <item name="PPML" type="462c0819:PsiDirectoryNode" /> + <item name="IO" type="462c0819:PsiDirectoryNode" /> </path> </expand> <select /> </subPane> </pane> + <pane id="Scope" /> </panes> </component> <component name="PropertiesComponent"> @@ -443,14 +448,10 @@ <workItem from="1577552973318" duration="2692000" /> <workItem from="1577566516419" duration="6843000" /> <workItem from="1577718521115" duration="14738000" /> - <workItem from="1578301835088" duration="267000" /> - </task> - <task id="LOCAL-00031" summary="28/11/2018 : Code cleansing almost done"> - <created>1543426843573</created> - <option name="number" value="00031" /> - <option name="presentableId" value="LOCAL-00031" /> - <option name="project" value="LOCAL" /> - <updated>1543426843573</updated> + <workItem from="1578301835088" duration="3493000" /> + <workItem from="1578399487282" duration="409000" /> + <workItem from="1578400995489" duration="2901000" /> + <workItem from="1578409400958" duration="5950000" /> </task> <task id="LOCAL-00032" summary="30/11/2018 : Added parallelism to the pp version"> <created>1543573731472</created> @@ -788,11 +789,18 @@ <option name="project" value="LOCAL" /> <updated>1577751375607</updated> </task> - <option name="localTasksCounter" value="80" /> + <task id="LOCAL-00080" summary="New tests for the S&P paper"> + <created>1578302130521</created> + <option name="number" value="00080" /> + <option name="presentableId" value="LOCAL-00080" /> + <option name="project" value="LOCAL" /> + <updated>1578302130522</updated> + </task> + <option name="localTasksCounter" value="81" /> <servers /> </component> <component name="TimeTrackingManager"> - <option name="totallyTimeSpent" value="1086050000" /> + <option name="totallyTimeSpent" value="1098536000" /> </component> <component name="TodoView"> <todo-panel id="selected-file"> @@ -804,24 +812,24 @@ </todo-panel> </component> <component name="ToolWindowManager"> - <frame x="67" y="25" width="1853" height="925" extended-state="6" /> + <frame x="67" y="25" width="1853" height="1175" extended-state="6" /> <layout> - <window_info active="true" content_ui="combo" id="Project" order="0" sideWeight="0.8053333" visible="true" weight="0.21914776" /> + <window_info active="true" content_ui="combo" id="Project" order="0" sideWeight="0.8053333" visible="true" weight="0.22800222" /> <window_info id="Structure" order="1" sideWeight="0.2735043" side_tool="true" weight="0.3390558" /> <window_info id="Favorites" order="2" sideWeight="0.19466667" side_tool="true" weight="0.28113064" /> <window_info anchor="bottom" id="Database Changes" order="0" /> <window_info anchor="bottom" id="Message" order="1" /> <window_info anchor="bottom" id="Find" order="2" sideWeight="0.49474266" weight="0.32663316" /> - <window_info anchor="bottom" id="Run" order="3" sideWeight="0.54178196" weight="0.37688443" /> + <window_info anchor="bottom" id="Run" order="3" sideWeight="0.54122853" weight="0.37220845" /> <window_info anchor="bottom" id="Debug" order="4" sideWeight="0.52241284" weight="0.32663316" /> <window_info anchor="bottom" id="Cvs" order="5" weight="0.25" /> <window_info anchor="bottom" id="Inspection" order="6" weight="0.4" /> <window_info anchor="bottom" id="TODO" order="7" sideWeight="0.4986165" weight="0.32663316" /> - <window_info anchor="bottom" id="Messages" order="8" sideWeight="0.51300496" weight="0.41457286" /> - <window_info anchor="bottom" id="Event Log" order="9" sideWeight="0.5351411" side_tool="true" visible="true" weight="0.31658292" /> - <window_info anchor="bottom" id="Terminal" order="10" sideWeight="0.4648589" visible="true" weight="0.31658292" /> - <window_info anchor="bottom" id="Version Control" order="11" sideWeight="0.48810184" weight="0.32035175" /> - <window_info anchor="bottom" id="CMake" order="12" sideWeight="0.7122302" weight="0.36432162" /> + <window_info anchor="bottom" id="Messages" order="8" sideWeight="0.5124516" weight="0.41457286" /> + <window_info anchor="bottom" id="Event Log" order="9" sideWeight="0.45877144" side_tool="true" visible="true" weight="0.28680688" /> + <window_info anchor="bottom" id="Terminal" order="10" sideWeight="0.4643055" weight="0.31658292" /> + <window_info anchor="bottom" id="Version Control" order="11" sideWeight="0.4875484" weight="0.32035175" /> + <window_info anchor="bottom" id="CMake" order="12" sideWeight="0.7094632" weight="0.36466166" /> <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" /> <window_info anchor="right" id="Ant Build" order="1" weight="0.25" /> <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" /> @@ -877,7 +885,6 @@ <component name="VcsManagerConfiguration"> <option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="false" /> <option name="CHECK_NEW_TODO" value="false" /> - <MESSAGE value="Corrected some possible memory leaks mpfr log exp init variables LR, clear randstate" /> <MESSAGE value="Debugging the trace diff between PP and NPP" /> <MESSAGE value="Debugging the trace diff between PP and NPP : I think the pb is fixed !" /> <MESSAGE value="reverted from the big keys thingy" /> @@ -902,7 +909,8 @@ <MESSAGE value="BANK2" /> <MESSAGE value="corrected the naive bayes implem" /> <MESSAGE value="Packing tests" /> - <option name="LAST_COMMIT_MESSAGE" value="Packing tests" /> + <MESSAGE value="New tests for the S&P paper" /> + <option name="LAST_COMMIT_MESSAGE" value="New tests for the S&P paper" /> </component> <component name="XDebuggerManager"> <breakpoint-manager> @@ -1512,73 +1520,6 @@ </watches-manager> </component> <component name="editorHistoryManager"> - <entry file="file://$PROJECT_DIR$/EXP/DebugNb/Bank-Cipher-nb2-2019-07-03-20:29:36-Stats.csv"> - <provider selected="true" editor-type-id="text-editor" /> - </entry> - <entry file="file://$PROJECT_DIR$/EXP/DebugNb/Bank-Cipher-nb2-2019-07-03-22:06:13-Stats.csv"> - <provider selected="true" editor-type-id="text-editor" /> - </entry> - <entry file="file://$PROJECT_DIR$/EXP/DebugNb/Bank-Cipher-nb2-2019-07-03-22:06:13-Config.txt"> - <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="90"> - <caret line="6" column="24" selection-start-line="6" selection-start-column="24" selection-end-line="6" selection-end-column="24" /> - </state> - </provider> - </entry> - <entry file="file://$PROJECT_DIR$/EXP/DebugNb/Bank-Cipher-nb2-2019-07-03-22:40:05-Config.txt"> - <provider selected="true" editor-type-id="text-editor" /> - </entry> - <entry file="file://$PROJECT_DIR$/ML/NB/Stats.cpp"> - <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="2130"> - <caret line="142" column="74" selection-start-line="142" selection-start-column="74" selection-end-line="142" selection-end-column="74" /> - <folding> - <element signature="e#0#18#0" expanded="true" /> - </folding> - </state> - </provider> - </entry> - <entry file="file://$PROJECT_DIR$/EXP/DebugNb/Bank-Cipher-nb-2019-07-03-16:21:40-Stats.csv"> - <provider selected="true" editor-type-id="text-editor" /> - </entry> - <entry file="file://$PROJECT_DIR$/EXP/DebugNb/Bank-Cipher-debug-time-2019-07-14-14:16:37-Stats.csv"> - <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="270"> - <caret line="18" selection-start-line="18" selection-end-line="18" /> - </state> - </provider> - </entry> - <entry file="file://$PROJECT_DIR$/EXP/DebugNb/Bank-Cipher-debug-time-2019-07-14-14:21:54-Stats.csv"> - <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="255"> - <caret line="17" column="35" selection-start-line="17" selection-start-column="35" selection-end-line="17" selection-end-column="35" /> - </state> - </provider> - </entry> - <entry file="file://$PROJECT_DIR$/EXP/DebugNb/Bank-Cipher-debug-time-2019-07-14-14:23:23-Stats.csv"> - <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="270"> - <caret line="18" selection-start-line="18" selection-end-line="18" /> - </state> - </provider> - </entry> - <entry file="file://$PROJECT_DIR$/EXP/DebugNb/Bank-Cipher-debug-time-2019-07-14-14:27:16-Stats.csv"> - <provider selected="true" editor-type-id="text-editor" /> - </entry> - <entry file="file://$PROJECT_DIR$/EXP/DebugNb/Bank-Cipher-debug-time-2019-07-14-14:28:04-Stats.csv"> - <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="90"> - <caret line="6" lean-forward="true" selection-start-line="6" selection-end-line="6" /> - </state> - </provider> - </entry> - <entry file="file://$PROJECT_DIR$/EXP/DebugNb/Bank-Cipher-debug-time-2019-07-14-14:15:41-Stats.csv"> - <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="210"> - <caret line="14" column="42" selection-start-line="14" selection-start-column="42" selection-end-line="14" selection-end-column="42" /> - </state> - </provider> - </entry> <entry file="file://$PROJECT_DIR$/EXP/DebugNb/Bank-Cipher-debug-time-2019-07-14-15:00:32-Stats.csv"> <provider selected="true" editor-type-id="text-editor"> <state relative-caret-position="90"> @@ -1715,13 +1656,6 @@ <entry file="file://$PROJECT_DIR$/PPML/PPNB/PPNB_Classifier.h"> <provider selected="true" editor-type-id="text-editor" /> </entry> - <entry file="file://$PROJECT_DIR$/PPML/IO/PPRecord.h"> - <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="315"> - <caret line="21" column="20" selection-start-line="21" selection-start-column="20" selection-end-line="21" selection-end-column="20" /> - </state> - </provider> - </entry> <entry file="file://$PROJECT_DIR$/CRYPTO/EvalDiv.cpp"> <provider selected="true" editor-type-id="text-editor"> <state relative-caret-position="1245"> @@ -1749,10 +1683,23 @@ </state> </provider> </entry> - <entry file="file://$PROJECT_DIR$/CRYPTO/EvalCmp.cpp"> + <entry file="file://$PROJECT_DIR$/TEST/TESTpacking.cpp"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="1455"> + <caret line="97" selection-start-line="97" selection-end-line="97" /> + <folding> + <element signature="e#0#24#0" expanded="true" /> + </folding> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/TEST/main.cpp"> <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="495"> - <caret line="33" column="54" selection-start-line="32" selection-start-column="11" selection-end-line="33" selection-end-column="54" /> + <state relative-caret-position="16440"> + <caret line="1096" selection-start-line="1096" selection-end-line="1096" /> + <folding> + <element signature="e#52#93#0" expanded="true" /> + </folding> </state> </provider> </entry> @@ -1773,71 +1720,138 @@ </state> </provider> </entry> - <entry file="file://$PROJECT_DIR$/CRYPTO/DTPKC.cpp"> + <entry file="file://$PROJECT_DIR$/CRYPTO/EvalDiv100.cpp"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="600"> + <caret line="40" column="20" selection-start-line="40" selection-start-column="20" selection-end-line="40" selection-end-column="20" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/ML/LR/LR.cpp"> <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="11835"> - <caret line="789" selection-start-line="789" selection-end-line="789" /> + <state relative-caret-position="6060"> + <caret line="404" column="5" selection-start-line="404" selection-start-column="5" selection-end-line="404" selection-end-column="5" /> <folding> - <element signature="e#462#3260#0" /> + <element signature="e#0#16#0" expanded="true" /> </folding> </state> </provider> </entry> - <entry file="file://$PROJECT_DIR$/PPML/IO/PPDatasetReader.cpp"> + <entry file="file://$PROJECT_DIR$/TEST/TESTElementaryOps.cpp"> <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="2040"> - <caret line="136" column="30" selection-start-line="136" selection-start-column="15" selection-end-line="136" selection-end-column="35" /> + <state relative-caret-position="1545"> + <caret line="103" column="30" selection-start-line="103" selection-start-column="30" selection-end-line="103" selection-end-column="30" /> + <folding> + <element signature="e#0#30#0" expanded="true" /> + </folding> </state> </provider> </entry> <entry file="file://$PROJECT_DIR$/CRYPTO/DTPKC.h"> <provider selected="true" editor-type-id="text-editor"> <state relative-caret-position="2745"> - <caret line="183" column="40" selection-start-line="183" selection-start-column="40" selection-end-line="183" selection-end-column="40" /> + <caret line="183" selection-start-line="183" selection-end-line="183" /> </state> </provider> </entry> - <entry file="file://$PROJECT_DIR$/CONFIG/DAPPLE.config"> + <entry file="file://$PROJECT_DIR$/CRYPTO/EvalCmp.h"> <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="30"> - <caret line="2" column="30" selection-start-line="2" selection-start-column="30" selection-end-line="2" selection-end-column="30" /> + <state relative-caret-position="255"> + <caret line="40" column="29" selection-start-line="40" selection-start-column="29" selection-end-line="40" selection-end-column="29" /> </state> </provider> </entry> - <entry file="file://$PROJECT_DIR$/TEST/TESTpacking.cpp"> + <entry file="file://$PROJECT_DIR$/CRYPTO/EvalCmp100.cpp"> <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="188"> - <caret line="97" column="49" selection-start-line="97" selection-start-column="49" selection-end-line="97" selection-end-column="49" /> + <state relative-caret-position="435"> + <caret line="62" column="29" selection-start-line="62" selection-start-column="29" selection-end-line="62" selection-end-column="29" /> <folding> - <element signature="e#0#24#0" expanded="true" /> + <element signature="e#0#17#0" expanded="true" /> </folding> </state> </provider> </entry> - <entry file="file://$PROJECT_DIR$/TEST/main.cpp"> + <entry file="file://$PROJECT_DIR$/CRYPTO/DTPKC.cpp"> <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="248"> - <caret line="1096" column="76" selection-start-line="1096" selection-start-column="76" selection-end-line="1096" selection-end-column="76" /> - <folding> - <element signature="e#52#93#0" expanded="true" /> - </folding> + <state relative-caret-position="1080"> + <caret line="72" column="32" lean-forward="true" selection-start-line="72" selection-start-column="32" selection-end-line="72" selection-end-column="32" /> </state> </provider> </entry> - <entry file="file://$PROJECT_DIR$/TEST/TESTElementaryOps.cpp"> + <entry file="file://$PROJECT_DIR$/CRYPTO/SkeySwitch.cpp"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="-630" /> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/EXP/DEBUG-LR/Cipher-2019-04-03-13:23:53-ClassOutput.txt"> + <provider selected="true" editor-type-id="text-editor" /> + </entry> + <entry file="file://$PROJECT_DIR$/EXP/DEBUG-LR/Cipher-2019-04-03-13:23:53-Config.txt"> + <provider selected="true" editor-type-id="text-editor" /> + </entry> + <entry file="file://$PROJECT_DIR$/EXP/DEBUG-LR/Cipher-2019-04-03-13:23:53-Stats.csv"> + <provider selected="true" editor-type-id="text-editor" /> + </entry> + <entry file="file://$PROJECT_DIR$/CRYPTO/EvalProba.cpp"> <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="399"> - <caret line="124" lean-forward="true" selection-start-line="124" selection-end-line="124" /> + <state relative-caret-position="-926"> <folding> - <element signature="e#0#30#0" expanded="true" /> + <element signature="e#0#22#0" expanded="true" /> </folding> </state> </provider> </entry> - <entry file="file://$PROJECT_DIR$/CRYPTO/EvalDiv100.cpp"> + <entry file="file://$PROJECT_DIR$/ML/VFDT/Node.cpp"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="-1650"> + <caret line="40" lean-forward="true" selection-start-line="40" selection-end-line="40" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/ML/VFDT/VFDT_Classifier.cpp"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="-1170" /> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/PPML/IO/PPRecord.h"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="510"> + <caret line="36" lean-forward="true" selection-start-line="36" selection-end-line="36" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/CONFIG/DAPPLE.config"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="30"> + <caret line="2" column="30" selection-start-line="2" selection-start-column="30" selection-end-line="2" selection-end-column="30" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/PPML/IO/PPDatasetReader.cpp"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="-1081"> + <caret line="120" column="27" lean-forward="true" selection-start-line="120" selection-start-column="27" selection-end-line="120" selection-end-column="27" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/CRYPTO/EvalAddPow2.cpp"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="604"> + <caret line="119" lean-forward="true" selection-start-line="119" selection-end-line="119" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/CRYPTO/EvalAddPow2.h"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="634"> + <caret line="58" selection-start-line="58" selection-end-line="58" /> + </state> + </provider> + </entry> + <entry file="file://$PROJECT_DIR$/CRYPTO/EvalCmp.cpp"> <provider selected="true" editor-type-id="text-editor"> - <state relative-caret-position="138"> - <caret line="43" lean-forward="true" selection-start-line="43" selection-end-line="43" /> + <state relative-caret-position="874"> + <caret line="117" column="5" lean-forward="true" selection-start-line="117" selection-start-column="5" selection-end-line="117" selection-end-column="5" /> </state> </provider> </entry> diff --git a/CONFIG/DAPPLE.config b/CONFIG/DAPPLE.config index 4d8ad6c430a9b79fa740e10479fd70e981582129..f3cc156db873efe3d30a70c3f42336b6b48e436d 100755 --- a/CONFIG/DAPPLE.config +++ b/CONFIG/DAPPLE.config @@ -46,6 +46,7 @@ sendParaClient="true"; blindingSize="20"; encryptData="true"; + delay="1000"; } # Naive Bayes parameters diff --git a/CRYPTO/DTPKC.cpp b/CRYPTO/DTPKC.cpp index c2f44ea5c662cd50c793b24507818efab4b86317..6dbf5c6fca04241720bd96c6a7c4b9c79560a438 100755 --- a/CRYPTO/DTPKC.cpp +++ b/CRYPTO/DTPKC.cpp @@ -18,6 +18,8 @@ int DTPKC :: size; mpz_class DTPKC :: p, DTPKC :: q, DTPKC :: a, DTPKC :: SK, DTPKC :: SK0, DTPKC :: SK1; int DTPKC :: blindVal; int DTPKC :: precision; +std::chrono::milliseconds DTPKC :: delay; + /** ** Function : keygen @@ -41,7 +43,7 @@ int DTPKC :: precision; **/ void -DTPKC::keygen(int pr, gmp_randstate_t state, uint nbits, int error, bool useORE, int bl) +DTPKC::keygen(int pr, gmp_randstate_t state, std::chrono::milliseconds delay, uint nbits, int error, bool useORE, int bl) { precision=pr; // @@ -53,6 +55,8 @@ DTPKC::keygen(int pr, gmp_randstate_t state, uint nbits, int error, bool useORE, mpz_class s, tita,invlambda; size = nbits; + DTPKC::delay = delay; + bool valid = false; do { diff --git a/CRYPTO/DTPKC.h b/CRYPTO/DTPKC.h index db181b54570e248cc5cfb7376b7209ea85d6769c..3275301ec44b2dd6f422eafa6f613080b76c17f8 100755 --- a/CRYPTO/DTPKC.h +++ b/CRYPTO/DTPKC.h @@ -22,6 +22,7 @@ #include <cstring> #include <fstream> #include <netinet/in.h> +#include <chrono> using namespace std; @@ -109,6 +110,7 @@ public : static int size; static int blindVal; static int precision; + static std::chrono::milliseconds delay; @@ -119,7 +121,7 @@ public : // Used to generate DT-PKC cryptosystem's parameters public : - static void keygen(int precision, gmp_randstate_t state, uint nbits=1024, int error=600, bool useORE=false, int blindingVal=200); + static void keygen(int precision, gmp_randstate_t state, std::chrono::milliseconds delay, uint nbits=1024, int error=600, bool useORE=false, int blindingVal=200); // Used to encrypt a plaintext using a public key pkey in DT-PKC. public : diff --git a/CRYPTO/EvalAddPow2.cpp b/CRYPTO/EvalAddPow2.cpp index 14ecd4812f516daeb863dbe42927aec85c857ca6..6b12d939a22bdb4e2a78bcb135768bb3d5bb46ea 100755 --- a/CRYPTO/EvalAddPow2.cpp +++ b/CRYPTO/EvalAddPow2.cpp @@ -1,10 +1,12 @@ +#include <thread> #include "EvalAddPow2.h" EvalAddPow2 ::EvalAddPow2(Cipher A, Cipher B , DTPKC dtpkc) { + this->A=A; this->B=B; this->dtpkc=dtpkc; @@ -22,6 +24,7 @@ EvalAddPow2::EvalAddPow2_U1_step1() * S3 : partially decrypted value of S2 * res : results to be sent to U2 */ + auto begin = chrono::high_resolution_clock::now(); gmp_randstate_t state; Cipher S1, S2, S3; std::vector <Cipher> res(4); @@ -45,6 +48,13 @@ EvalAddPow2::EvalAddPow2_U1_step1() res[0]=S2; res[1]=S3; + + + auto en = chrono::high_resolution_clock::now(); + std::chrono::duration<double, std::milli> duration = en - begin ; + timeMU= duration.count(); + bdwMU = mpz_size(S2.T1.get_mpz_t())+ mpz_size(S2.T2.get_mpz_t())* sizeof(mp_limb_t)+ mpz_size(S3.T1.get_mpz_t())+ mpz_size(S3.T2.get_mpz_t())* sizeof(mp_limb_t); + return res; @@ -54,6 +64,8 @@ EvalAddPow2::EvalAddPow2_U1_step1() Cipher EvalAddPow2::EvalAddPow2_U2_step2(std::vector <Cipher> res1) { + auto begin = chrono::high_resolution_clock::now(); + mpz_class x; Cipher res; @@ -61,6 +73,12 @@ Cipher EvalAddPow2::EvalAddPow2_U2_step2(std::vector <Cipher> res1) res = dtpkc.enc(x*x,A.Pub); + std::this_thread::sleep_for(dtpkc.delay); + + auto en = chrono::high_resolution_clock::now(); + std::chrono::duration<double, std::milli> duration = en - begin ; + timeSU = duration.count(); + bdwSU = mpz_size(res.T1.get_mpz_t())+ mpz_size(res.T2.get_mpz_t())* sizeof(mp_limb_t); return res; @@ -69,19 +87,14 @@ Cipher EvalAddPow2::EvalAddPow2_U2_step2(std::vector <Cipher> res1) Cipher EvalAddPow2::EvalAddPow2_U1_step3(Cipher res2) { + auto begin = chrono::high_resolution_clock::now(); Cipher S4, S5, S6, S7,C_R; - - S4.T1 = A.T1 * res2.T1; S4.T2 = A.T2 * res2.T2; - C_R = dtpkc.enc(r, A.Pub); - - - - + C_R = dtpkc.enc(r, A.Pub); S5.T1=mpz_class_powm( C_R.T1,dtpkc.n-r,dtpkc.n2); S5.T2=mpz_class_powm( C_R.T2,dtpkc.n-r,dtpkc.n2); S5.Pub = A.Pub; @@ -96,6 +109,10 @@ Cipher EvalAddPow2::EvalAddPow2_U1_step3(Cipher res2) S7.T2=S4.T2*S5.T2*S6.T2; S7.Pub=A.Pub; + auto en = chrono::high_resolution_clock::now(); + std::chrono::duration<double, std::milli> duration = en - begin ; + timeMU += duration.count(); + bdwMU += mpz_size(S7.T1.get_mpz_t())+ mpz_size(S7.T2.get_mpz_t())* sizeof(mp_limb_t); return S7; diff --git a/CRYPTO/EvalAddPow2.h b/CRYPTO/EvalAddPow2.h index c7cd5e6b663947362a4691fa20102da5983dd3c3..5a4f9dda1a4829cc06c50236b85668916d463665 100755 --- a/CRYPTO/EvalAddPow2.h +++ b/CRYPTO/EvalAddPow2.h @@ -29,6 +29,10 @@ private : DTPKC dtpkc; mpz_class r; +public : + + double timeSU, timeMU; + double bdwSU,bdwMU; /******* Functions **********/ diff --git a/CRYPTO/EvalCmp.cpp b/CRYPTO/EvalCmp.cpp index d1af390587a93b6d3e69aad7dee5f369b52d0035..ac6e4c2b947a7197df5f0f980fd52ab7c4e05bef 100755 --- a/CRYPTO/EvalCmp.cpp +++ b/CRYPTO/EvalCmp.cpp @@ -1,3 +1,4 @@ +#include <thread> #include "EvalCmp.h" @@ -11,6 +12,7 @@ EvalCmp ::EvalCmp(Cipher A, Cipher B , DTPKC dtpkc) std::vector<Cipher> EvalCmp::EvalCmp_U1_step1() { + auto en = chrono::high_resolution_clock::now(); gmp_randstate_t state; Cipher S1, S2, S3, S4; @@ -67,6 +69,11 @@ EvalCmp::EvalCmp_U1_step1() { } + + std::chrono::duration<double, std::milli> duration = en - begin ; + timeMU += duration.count(); + bdwMU += sizeof(res.size() * mpz_size(res[0].T1.get_mpz_t())+ mpz_size(res[0].T2.get_mpz_t())* sizeof(mp_limb_t)); + return res; } @@ -94,9 +101,9 @@ bool EvalCmp::EvalCmp_U2_step2(std::vector <Cipher> res1) * x: A*r * B: B*r */ + auto en = chrono::high_resolution_clock::now(); mpz_class x, y, out; - #pragma omp sections { #pragma omp section @@ -111,7 +118,15 @@ bool EvalCmp::EvalCmp_U2_step2(std::vector <Cipher> res1) } + std::this_thread::sleep_for(dtpkc.delay); // return the comparison output + + + std::chrono::duration<double, std::milli> duration = en - begin ; + timeSU += duration.count(); + bdwSU += 1; + + return x < y ; } diff --git a/CRYPTO/EvalCmp.h b/CRYPTO/EvalCmp.h index 230339211ffd9495ec8a21b07640344510f9a6d3..f168862499d4eef79030d29fa9d29d81d0fffbbc 100755 --- a/CRYPTO/EvalCmp.h +++ b/CRYPTO/EvalCmp.h @@ -31,6 +31,11 @@ class EvalCmp{ mpz_class r, r2; + + double timeSU, timeMU; + double bdwSU,bdwMU; + + /******* Functions **********/ // Constructor : used to initialise the operands diff --git a/CRYPTO/EvalCmp100.cpp b/CRYPTO/EvalCmp100.cpp index e87c06a43ef464497dc58e121f5dd4e6b3a98c66..aa9c3e5a2ecba53930a7e4770f5defe778bce5fe 100755 --- a/CRYPTO/EvalCmp100.cpp +++ b/CRYPTO/EvalCmp100.cpp @@ -1,3 +1,4 @@ +#include <thread> #include "EvalCmp100.h" @@ -12,6 +13,8 @@ std::vector<Cipher> EvalCmp100::EvalCmp_U1_step1() { + auto begin = chrono::high_resolution_clock::now(); + gmp_randstate_t state; Cipher S1, S2, S3, S4; std::vector<Cipher> res(4); @@ -53,6 +56,11 @@ EvalCmp100::EvalCmp_U1_step1() { res[2] = S2; res[3] = S4; + + auto en = chrono::high_resolution_clock::now(); + std::chrono::duration<double, std::milli> duration = en - begin ; + timeMU += duration.count(); + bdwMU += sizeof(mpz_class); return res; } @@ -86,6 +94,7 @@ bool EvalCmp100::EvalCmp_U2_step2(std::vector <Cipher> res1) y = dtpkc.PSdec1(res1[2], res1[3]); + std::this_thread::sleep_for(dtpkc.delay); // return the comparison output return x < y ; diff --git a/CRYPTO/EvalDiv.cpp b/CRYPTO/EvalDiv.cpp index 79c348bfefa36a9934dd1fd65acba7cdf5d16aaf..e632e7313d24915944c91da43875a4beae58bd80 100755 --- a/CRYPTO/EvalDiv.cpp +++ b/CRYPTO/EvalDiv.cpp @@ -8,6 +8,7 @@ **/ +#include <thread> #include "EvalDiv.h" /** @@ -177,6 +178,7 @@ EvalDiv ::EvalDiv_U1_step3(Cipher S7) S9.Pub=a.Pub; + std::this_thread::sleep_for(dtpkc.delay); return S9; } diff --git a/CRYPTO/EvalDiv100.cpp b/CRYPTO/EvalDiv100.cpp index 1f6a9d72b866fc964f02237102e500d14c7a3f04..b6d1faf055e9e51ae6fea01623365f31552f202d 100755 --- a/CRYPTO/EvalDiv100.cpp +++ b/CRYPTO/EvalDiv100.cpp @@ -1,3 +1,4 @@ +#include <thread> #include "EvalDiv100.h" @@ -82,6 +83,7 @@ EvalDiv100 ::EvalDiv_U1_step3(Cipher S7) S9.T2=S7.T2*S88.T2; S9.Pub=a.Pub; + std::this_thread::sleep_for(dtpkc.delay); return S9; diff --git a/CRYPTO/EvalDotProd.cpp b/CRYPTO/EvalDotProd.cpp index bfaa18c5b09ff095bf9426a6a70bf637b4246368..e542025d734a9835292ef4d7da83c114ea47ac0f 100755 --- a/CRYPTO/EvalDotProd.cpp +++ b/CRYPTO/EvalDotProd.cpp @@ -1,3 +1,4 @@ +#include <thread> #include "EvalDotProd.h" #include "EvalDiv.h" @@ -109,6 +110,8 @@ Cipher EvalDotProd::EvalDotProd_U1_step3(Cipher val) std::vector <Cipher> res = evalDiv.EvalDiv_U1_step1(); Cipher out = evalDiv.EvalDiv_U1_step3(evalDiv.EvalDiv_U2_step2(res[0],res[1], res[2], res[3])); out.sign = val.sign; + std::this_thread::sleep_for(dtpkc.delay); + return out; } diff --git a/CRYPTO/EvalEntropy.cpp b/CRYPTO/EvalEntropy.cpp index d7143f944af474068f5a93a3e016b4fa1636823f..a01882ced115fbb3acd6871cea6610eef1f8f3fe 100755 --- a/CRYPTO/EvalEntropy.cpp +++ b/CRYPTO/EvalEntropy.cpp @@ -9,6 +9,7 @@ * **/ +#include <thread> #include "EvalEntropy.h" @@ -223,6 +224,7 @@ EvalEntropy ::EvalEntropy_U1_step3(Cipher blinded_result) S9.Pub=T.Pub; + std::this_thread::sleep_for(dtpkc.delay); return S9; diff --git a/CRYPTO/EvalHBound.cpp b/CRYPTO/EvalHBound.cpp index 9edfad8210a6e1d6d28731af3b1834dc17a73779..523f9df4ce3ba35aa6ee9dae459e939095f96d42 100755 --- a/CRYPTO/EvalHBound.cpp +++ b/CRYPTO/EvalHBound.cpp @@ -8,6 +8,7 @@ **/ +#include <thread> #include "EvalHBound.h" @@ -143,6 +144,7 @@ EvalHBound::EvalHbound_U1_step3(Cipher res2) out = evalDiv.EvalDiv_U1_step3(evalDiv.EvalDiv_U2_step2(res[0],res[1], res[2], res[3])); + std::this_thread::sleep_for(dtpkc.delay); return out; } diff --git a/CRYPTO/EvalLog.cpp b/CRYPTO/EvalLog.cpp index 8ace77b807e69cd7a999d84756db696158801f6c..0342590ef3b6f49763272203c1563c2573d5b620 100755 --- a/CRYPTO/EvalLog.cpp +++ b/CRYPTO/EvalLog.cpp @@ -1,3 +1,4 @@ +#include <thread> #include "EvalLog.h" #include "EvalDiv.h" #include "EvalDiv100.h" @@ -70,6 +71,7 @@ EvalLog::EvalLog_U1_step3(Cipher S4) c.T1=S4.T1*mpz_class_powm(R.T1,dtpkc.n-1,dtpkc.n2); c.T2=S4.T2*mpz_class_powm(R.T2,dtpkc.n-1,dtpkc.n2); c.Pub=u.Pub; + std::this_thread::sleep_for(dtpkc.delay); return c; diff --git a/CRYPTO/EvalLrUpdate.cpp b/CRYPTO/EvalLrUpdate.cpp index 55b3f71bcd946fbe339f2c701329e02d9cb10f53..0a75cf277466f9d3882d7b1e1771b0b10fdf1f5c 100755 --- a/CRYPTO/EvalLrUpdate.cpp +++ b/CRYPTO/EvalLrUpdate.cpp @@ -1,3 +1,4 @@ +#include <thread> #include "EvalLrUpdate.h" #include "EvalDiv.h" @@ -142,6 +143,9 @@ Cipher EvalLrUpdate::EvalLrUpdate_U1_step3(Cipher val) //out.T1 = mpz_class_powm(out.T1,100000,dtpkc.n2*dtpkc.n2); //out.T2 = mpz_class_powm(out.T2,100000,dtpkc.n2*dtpkc.n2); + + std::this_thread::sleep_for(dtpkc.delay); + return out; } diff --git a/CRYPTO/EvalMult.cpp b/CRYPTO/EvalMult.cpp index 8b4e7e321a843182d374670f7a701a468398b904..a887600562810f43c12e6cff0fece172a3169318 100755 --- a/CRYPTO/EvalMult.cpp +++ b/CRYPTO/EvalMult.cpp @@ -7,6 +7,7 @@ * **/ +#include <thread> #include "EvalMult.h" @@ -170,6 +171,8 @@ Cipher EvalMult::EvalMult_U1_step3(Cipher res2) S10.Pub=A.Pub; + std::this_thread::sleep_for(dtpkc.delay); + return S10; } diff --git a/CRYPTO/EvalProba.cpp b/CRYPTO/EvalProba.cpp index 50a1852d564efc682e1355cc69c8a5cb0232d36c..f56bc3e65eb80324d4aceedf16f65f14257cb6a2 100755 --- a/CRYPTO/EvalProba.cpp +++ b/CRYPTO/EvalProba.cpp @@ -1,5 +1,5 @@ #include "EvalProba.h" - +#include <thread> EvalProba::EvalProba(std::vector<Cipher> Tk, DTPKC dtpkc) { @@ -95,6 +95,8 @@ EvalProba :: EvalProba_U1_step3(Cipher blinded_result) vector<Cipher> res1 = evalDiv100.EvalDiv_U1_step1(); S9= evalDiv100.EvalDiv_U1_step3(evalDiv100.EvalDiv_U2_step2(res1[0], res1[1], res1[2], res1[3])); + std::this_thread::sleep_for(dtpkc.delay); + return S9; } diff --git a/CRYPTO/EvalSigmoid.cpp b/CRYPTO/EvalSigmoid.cpp index 65924a3efa3b8297bf4c536a5738ed6297ed4515..6b2be963d0be28041b0e4e1f4cc372488bab73f1 100755 --- a/CRYPTO/EvalSigmoid.cpp +++ b/CRYPTO/EvalSigmoid.cpp @@ -1,7 +1,7 @@ #include "EvalSigmoid.h" #include "EvalDiv.h" #include "EvalDiv100.h" - +#include <thread> EvalSigmoid::EvalSigmoid(Cipher a, int lambda, DTPKC dtpkc) { @@ -123,6 +123,8 @@ EvalSigmoid::EvalSig_U1_step3(Cipher S4) cout << " S9 " << S9 << endl; + std::this_thread::sleep_for(dtpkc.delay); + return S9; } diff --git a/CRYPTO/EvalStandardDiv.cpp b/CRYPTO/EvalStandardDiv.cpp index 68564d0185fce4682ff1637e0fe1f37b2f938364..aa139992d1577f5a02750cad565a6eb898360d68 100755 --- a/CRYPTO/EvalStandardDiv.cpp +++ b/CRYPTO/EvalStandardDiv.cpp @@ -1,4 +1,5 @@ +#include <thread> #include "EvalStandardDiv.h" @@ -74,6 +75,8 @@ EvalStandardDiv::EvalStandardDiv_U1_step3(Cipher res2) EvalDiv evalDiv(res2,blindVal,dtpkc); std::vector <Cipher> res = evalDiv.EvalDiv_U1_step1(); Cipher out = evalDiv.EvalDiv_U1_step3(evalDiv.EvalDiv_U2_step2(res[0],res[1], res[2], res[3])); + std::this_thread::sleep_for(dtpkc.delay); + return out; diff --git a/CRYPTO/SkeySwitch.cpp b/CRYPTO/SkeySwitch.cpp index 147bf982ff08b67a8850f23bd4fba4e5f9620019..c0899ab1cbae1db3da8733747f5c5aa5121d5465 100755 --- a/CRYPTO/SkeySwitch.cpp +++ b/CRYPTO/SkeySwitch.cpp @@ -7,6 +7,7 @@ * **/ +#include <thread> #include "SkeySwitch.h" @@ -85,7 +86,7 @@ Cipher SkeySwitch::SkeySwitch_U1_step3(Cipher res2) res.Pub = pkey; - + std::this_thread::sleep_for(dtpkc.delay); return res; } diff --git a/TEST/TESTBuildingBlocks.cpp b/TEST/TESTBuildingBlocks.cpp index c5977d5289f225fc4ad28376ceae4c5b48d821b4..00222607392df257283c3cb06e30b3f8d1777ecd 100755 --- a/TEST/TESTBuildingBlocks.cpp +++ b/TEST/TESTBuildingBlocks.cpp @@ -282,7 +282,8 @@ void TESTBuildingBlocks::run (bool deserialize, int keysize, int prec, int error gmp_randinit_default(randstate); gmp_randseed_ui(randstate,time(NULL)); - dtpkc.keygen(prec,randstate,keysize, error); + std::chrono::milliseconds delay(1000); + dtpkc.keygen(prec,randstate, delay, keysize, error); // Generate public key dtpkc.getKey(pkey,skey); diff --git a/TEST/TESTDTPKC.cpp b/TEST/TESTDTPKC.cpp index 18d90d4c8e61b23889ef513bf0bb3db854fc4f11..fdc1588f27004e77b1c4399ec13b155e3a770dbc 100755 --- a/TEST/TESTDTPKC.cpp +++ b/TEST/TESTDTPKC.cpp @@ -17,7 +17,8 @@ void TESTDTPKC::run () { gmp_randinit_default(randstate); gmp_randseed_ui(randstate,time(NULL)); DTPKC dtpkc; - dtpkc.keygen(1000, randstate, 1024,600); + std::chrono::milliseconds delay(1000); + dtpkc.keygen(1000, randstate, delay, 1024,600); cout << "Pkw=" << dtpkc.pkw.get_str() << endl; diff --git a/TEST/TESTElementaryOps.cpp b/TEST/TESTElementaryOps.cpp index 6da5de9f3d82b1fd45a639efb26ecf0e92a11605..6972660e22e9727680977823d4cd8be696446563 100755 --- a/TEST/TESTElementaryOps.cpp +++ b/TEST/TESTElementaryOps.cpp @@ -25,7 +25,8 @@ void TESTElementaryOps::run (bool deserialize, int keysize, int prec, int error, { gmp_randinit_default(randstate); gmp_randseed_ui(randstate,time(NULL)); - dtpkc.keygen(prec,randstate,keysize, error); + std::chrono::milliseconds delay(1000); + dtpkc.keygen(prec,randstate, delay, keysize, error); // Generate public key dtpkc.getKey(pkey,skey); diff --git a/TEST/TESTpacking.cpp b/TEST/TESTpacking.cpp index cdd1487bb3f6cde11a1d3f148a12b4813bb9becf..a0a87bfde35413724b4e61503cb4a8bc5c0ceecb 100755 --- a/TEST/TESTpacking.cpp +++ b/TEST/TESTpacking.cpp @@ -34,7 +34,8 @@ void TESTpacking::run(bool deserialize, int keysize, int prec, int error, string gmp_randinit_default(randstate); gmp_randseed_ui(randstate,time(NULL)); - dtpkc.keygen(prec,randstate,keysize, error); + std::chrono::milliseconds delay(1000); + dtpkc.keygen(prec,randstate, delay, keysize, error); // Generate public key dtpkc.getKey(pkey,skey); diff --git a/TEST/main.cpp b/TEST/main.cpp index c6d9c2a5dbaf057e97b82f632cc02f7b3224bf90..20a4e0d780ad7ac681d75a76fa5ba5f2ef0d0e1b 100755 --- a/TEST/main.cpp +++ b/TEST/main.cpp @@ -84,6 +84,7 @@ int maxTestSize= 10; string clearPath=""; string pathSer =""; +int delay; void error(const char *msg) @@ -228,6 +229,7 @@ int main (int argc, char **argv) { sendParaClient = cfg->lookupBoolean(scope, "sendParaClient"); blindVal = cfg->lookupInt(scope, "blindingSize"); encryptData = cfg->lookupBoolean(scope, "encryptData"); + delay = cfg->lookupInt(scope, "delay"); /**Network**/ scope = "network"; @@ -310,9 +312,10 @@ int main (int argc, char **argv) { // Generate public parameters of DTPKC gmp_randinit_default(randstate); gmp_randseed_ui(randstate, time(NULL)); + std::chrono::milliseconds delay_(delay); int cpt = 0; do { - dtpkc.keygen(ComputationalPrecision, randstate, keySize, DTPKC_Err, useORE, blindVal); + dtpkc.keygen(ComputationalPrecision, randstate, delay_, keySize, DTPKC_Err, useORE, blindVal); dtpkc.getKey(pkey, skey); dtpkc.updatePkw(pkey); cpt = validateCrypto(dtpkc); @@ -1086,15 +1089,15 @@ else { for (int i = 0; i < runs_number ; i++) { - /*TESTBuildingBlocks testBuildingBlocks; - testBuildingBlocks.run(deserialize, keySize, blindVal, DTPKC_Err, pathSer);*/ + TESTBuildingBlocks testBuildingBlocks; + testBuildingBlocks.run(deserialize, keySize, blindVal, DTPKC_Err, pathSer); //TESTpacking tesTpacking; //tesTpacking.run(deserialize, keySize, blindVal, DTPKC_Err, pathSer); - TESTElementaryOps testOps; - testOps.run(deserialize, keySize, blindVal, DTPKC_Err, pathSer); + /*TESTElementaryOps testOps; + testOps.run(deserialize, keySize, blindVal, DTPKC_Err, pathSer);*/ } diff --git a/cmake-build-debug/CMakeFiles/DAPPLE.dir/CXX.includecache b/cmake-build-debug/CMakeFiles/DAPPLE.dir/CXX.includecache index cbe2ab0d1f9633718d8c3c9b1d7fd39efa69cd5a..75797c80d7cc578da0e11f83dfab97211e031c21 100644 --- a/cmake-build-debug/CMakeFiles/DAPPLE.dir/CXX.includecache +++ b/cmake-build-debug/CMakeFiles/DAPPLE.dir/CXX.includecache @@ -31,25 +31,7 @@ fstream - netinet/in.h - - -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalAdd.h -DTPKC.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/DTPKC.h - -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalAddPow2.h -DTPKC.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/DTPKC.h -../UTIL/math_util.hh -/home/rania/CLionProjects/DAPPLE-2.0/UTIL/math_util.hh -vector -- - -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalCmp.h -DTPKC.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/DTPKC.h -../UTIL/math_util.hh -/home/rania/CLionProjects/DAPPLE-2.0/UTIL/math_util.hh -vector +chrono - /home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalDiv.h @@ -60,247 +42,21 @@ DTPKC.h DTPKC.h /home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/DTPKC.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalDotProd.h -DTPKC.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/DTPKC.h - -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalEntropy.h -DTPKC.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/DTPKC.h -../UTIL/math_util.hh -/home/rania/CLionProjects/DAPPLE-2.0/UTIL/math_util.hh - -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalHBound.h -DTPKC.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/DTPKC.h +/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalSigmoid.cpp +EvalSigmoid.h +/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalSigmoid.h EvalDiv.h /home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalDiv.h - -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalLog.h -DTPKC.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/DTPKC.h -../UTIL/math_util.hh -/home/rania/CLionProjects/DAPPLE-2.0/UTIL/math_util.hh - -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalLrUpdate.h -DTPKC.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/DTPKC.h - -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalMult.h -DTPKC.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/DTPKC.h -../UTIL/math_util.hh -/home/rania/CLionProjects/DAPPLE-2.0/UTIL/math_util.hh -vector -- - -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalProba.h -DTPKC.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/DTPKC.h EvalDiv100.h /home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalDiv100.h -../UTIL/math_util.hh -/home/rania/CLionProjects/DAPPLE-2.0/UTIL/math_util.hh - -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalSigmoid.h -DTPKC.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/DTPKC.h -../UTIL/math_util.hh -/home/rania/CLionProjects/DAPPLE-2.0/UTIL/math_util.hh - -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalStandardDiv.h -DTPKC.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/DTPKC.h -EvalDiv.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalDiv.h -EvalMult.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalMult.h -EvalSub.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalSub.h - -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalSub.h -DTPKC.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/DTPKC.h - -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalThreashold.h -DTPKC.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/DTPKC.h -../UTIL/math_util.hh -/home/rania/CLionProjects/DAPPLE-2.0/UTIL/math_util.hh -vector +thread - -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/SkeySwitch.h +/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalSigmoid.h DTPKC.h /home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/DTPKC.h ../UTIL/math_util.hh /home/rania/CLionProjects/DAPPLE-2.0/UTIL/math_util.hh -vector -- - -/home/rania/CLionProjects/DAPPLE-2.0/ML/IO/DatasetReader.h -fstream -- -stdio.h -- -string.h -- -vector -- -cstring -- -Record.h -/home/rania/CLionProjects/DAPPLE-2.0/ML/IO/Record.h -../../UTIL/mpz_class.hh -/home/rania/CLionProjects/DAPPLE-2.0/UTIL/mpz_class.hh -time.h -- -string -- -omp.h -/home/rania/CLionProjects/DAPPLE-2.0/ML/IO/omp.h - -/home/rania/CLionProjects/DAPPLE-2.0/ML/IO/Record.h -vector -- -iostream -- - -/home/rania/CLionProjects/DAPPLE-2.0/ML/VFDT/Node.h -../IO/Record.h -/home/rania/CLionProjects/DAPPLE-2.0/ML/IO/Record.h -NodeStats.h -/home/rania/CLionProjects/DAPPLE-2.0/ML/VFDT/NodeStats.h -NodeTest.h -/home/rania/CLionProjects/DAPPLE-2.0/ML/VFDT/NodeTest.h - -/home/rania/CLionProjects/DAPPLE-2.0/ML/VFDT/NodeStats.h -iostream -- -map -- -iterator -- -../IO/Record.h -/home/rania/CLionProjects/DAPPLE-2.0/ML/IO/Record.h -gmpxx.h -- -gmp.h -- -../../UTIL/util_gmp_rand.h -/home/rania/CLionProjects/DAPPLE-2.0/UTIL/util_gmp_rand.h -../../UTIL/num_th_alg.hh -/home/rania/CLionProjects/DAPPLE-2.0/UTIL/num_th_alg.hh -../../UTIL/mpz_class.hh -/home/rania/CLionProjects/DAPPLE-2.0/UTIL/mpz_class.hh - -/home/rania/CLionProjects/DAPPLE-2.0/ML/VFDT/NodeTest.h -map -- -../IO/Record.h -/home/rania/CLionProjects/DAPPLE-2.0/ML/IO/Record.h - -/home/rania/CLionProjects/DAPPLE-2.0/ML/VFDT/VFDT_Classifier.h -netinet/in.h -- -../IO/DatasetReader.h -/home/rania/CLionProjects/DAPPLE-2.0/ML/IO/DatasetReader.h -Node.h -/home/rania/CLionProjects/DAPPLE-2.0/ML/VFDT/Node.h -../../UTIL/math_util.hh -/home/rania/CLionProjects/DAPPLE-2.0/UTIL/math_util.hh -math.h -/home/rania/CLionProjects/DAPPLE-2.0/ML/VFDT/math.h - -/home/rania/CLionProjects/DAPPLE-2.0/TEST/TESTBuildingBlocks.h -iostream -- -../CRYPTO/DTPKC.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/DTPKC.h -../CRYPTO/EvalAdd.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalAdd.h -../CRYPTO/EvalSub.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalSub.h -../CRYPTO/EvalDiv.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalDiv.h -../CRYPTO/EvalDiv100.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalDiv100.h -../CRYPTO/EvalEntropy.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalEntropy.h -../CRYPTO/EvalProba.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalProba.h -../CRYPTO/EvalHBound.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalHBound.h -../CRYPTO/SkeySwitch.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/SkeySwitch.h -../CRYPTO/EvalCmp.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalCmp.h -../CRYPTO/EvalMult.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalMult.h -../CRYPTO/EvalAddPow2.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalAddPow2.h -../CRYPTO/EvalStandardDiv.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalStandardDiv.h -../CRYPTO/EvalSigmoid.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalSigmoid.h -../CRYPTO/EvalDotProd.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalDotProd.h -../UTIL/mpz_class.hh -/home/rania/CLionProjects/DAPPLE-2.0/UTIL/mpz_class.hh -../UTIL/num_th_alg.hh -/home/rania/CLionProjects/DAPPLE-2.0/UTIL/num_th_alg.hh - -/home/rania/CLionProjects/DAPPLE-2.0/TEST/TESTpacking.cpp -TESTpacking.h -/home/rania/CLionProjects/DAPPLE-2.0/TEST/TESTpacking.h -TESTBuildingBlocks.h -/home/rania/CLionProjects/DAPPLE-2.0/TEST/TESTBuildingBlocks.h -../ML/VFDT/VFDT_Classifier.h -/home/rania/CLionProjects/DAPPLE-2.0/ML/VFDT/VFDT_Classifier.h -../CRYPTO/EvalThreashold.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalThreashold.h -../CRYPTO/EvalLrUpdate.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalLrUpdate.h -../CRYPTO/EvalLog.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalLog.h - -/home/rania/CLionProjects/DAPPLE-2.0/TEST/TESTpacking.h -iostream -- -../CRYPTO/DTPKC.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/DTPKC.h -../CRYPTO/EvalAdd.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalAdd.h -../CRYPTO/EvalSub.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalSub.h -../CRYPTO/EvalDiv.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalDiv.h -../CRYPTO/EvalDiv100.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalDiv100.h -../CRYPTO/EvalEntropy.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalEntropy.h -../CRYPTO/EvalProba.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalProba.h -../CRYPTO/EvalHBound.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalHBound.h -../CRYPTO/SkeySwitch.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/SkeySwitch.h -../CRYPTO/EvalCmp.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalCmp.h -../CRYPTO/EvalMult.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalMult.h -../CRYPTO/EvalAddPow2.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalAddPow2.h -../CRYPTO/EvalStandardDiv.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalStandardDiv.h -../CRYPTO/EvalSigmoid.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalSigmoid.h -../CRYPTO/EvalDotProd.h -/home/rania/CLionProjects/DAPPLE-2.0/CRYPTO/EvalDotProd.h -../UTIL/mpz_class.hh -/home/rania/CLionProjects/DAPPLE-2.0/UTIL/mpz_class.hh -../UTIL/num_th_alg.hh -/home/rania/CLionProjects/DAPPLE-2.0/UTIL/num_th_alg.hh /home/rania/CLionProjects/DAPPLE-2.0/UTIL/math_util.hh vector