添加rsa非对称加密算法实现,大素数
parent
8ab9824936
commit
a314e0ca77
|
@ -12,23 +12,10 @@
|
||||||
</component>
|
</component>
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="0facce0d-c642-4d80-b2fb-daf5f3e68dff" name="Default Changelist" comment="">
|
<list default="true" id="0facce0d-c642-4d80-b2fb-daf5f3e68dff" name="Default Changelist" comment="">
|
||||||
<change afterPath="$PROJECT_DIR$/src/encrypt/aes.cpp" afterDir="false" />
|
<change afterPath="$PROJECT_DIR$/obj/inc/rsa.cpp" afterDir="false" />
|
||||||
<change afterPath="$PROJECT_DIR$/src/encrypt/aes.h" afterDir="false" />
|
<change afterPath="$PROJECT_DIR$/obj/inc/rsa.h" afterDir="false" />
|
||||||
<change afterPath="$PROJECT_DIR$/src/encrypt/base64.cpp" afterDir="false" />
|
|
||||||
<change afterPath="$PROJECT_DIR$/src/encrypt/base64.h" afterDir="false" />
|
|
||||||
<change afterPath="$PROJECT_DIR$/src/pattern/adapter.h" afterDir="false" />
|
|
||||||
<change afterPath="$PROJECT_DIR$/src/pattern/stratergy.h" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/CMakeLists.txt" beforeDir="false" afterPath="$PROJECT_DIR$/CMakeLists.txt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/CMakeLists.txt" beforeDir="false" afterPath="$PROJECT_DIR$/CMakeLists.txt" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/cmake-build-debug/Image/debug.h" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/cmake-build-debug/Image/loger.h" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/cmake-build-debug/Image/utils.h" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/cmake-build-debug/libGeneral.a" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/inc/utils.h" beforeDir="false" afterPath="$PROJECT_DIR$/inc/utils.h" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/obj/inc/utils.h" beforeDir="false" afterPath="$PROJECT_DIR$/obj/inc/utils.h" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/src/pattern/Observer.cpp" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/src/pattern/signleton.cpp" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/src/utils.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/src/utils.cpp" afterDir="false" />
|
|
||||||
</list>
|
</list>
|
||||||
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
|
@ -95,7 +82,9 @@
|
||||||
<workItem from="1577775991319" duration="2037000" />
|
<workItem from="1577775991319" duration="2037000" />
|
||||||
<workItem from="1577933629796" duration="16000" />
|
<workItem from="1577933629796" duration="16000" />
|
||||||
<workItem from="1577933660908" duration="635000" />
|
<workItem from="1577933660908" duration="635000" />
|
||||||
<workItem from="1578153114620" duration="3459000" />
|
<workItem from="1578153114620" duration="4070000" />
|
||||||
|
<workItem from="1578225965728" duration="1215000" />
|
||||||
|
<workItem from="1578280389789" duration="7997000" />
|
||||||
</task>
|
</task>
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
|
|
|
@ -6,7 +6,7 @@ INCLUDE_DIRECTORIES (inc)
|
||||||
aux_source_directory(src DIRSRCS)
|
aux_source_directory(src DIRSRCS)
|
||||||
aux_source_directory(src/pattern PaternSrc)
|
aux_source_directory(src/pattern PaternSrc)
|
||||||
|
|
||||||
add_library(General ${DIRSRCS} ${PaternSrc} src/pattern/signleton.h src/pattern/Observer.h src/pattern/stratergy.h src/pattern/adapter.h src/encrypt/base64.cpp src/encrypt/base64.h src/encrypt/aes.cpp src/encrypt/aes.h)
|
add_library(General ${DIRSRCS} ${PaternSrc} src/pattern/signleton.h src/pattern/Observer.h src/pattern/stratergy.h src/pattern/adapter.h src/encrypt/base64.cpp src/encrypt/base64.h src/encrypt/aes.cpp src/encrypt/aes.h obj/inc/rsa.cpp obj/inc/rsa.h)
|
||||||
set(COPYITEM inc)
|
set(COPYITEM inc)
|
||||||
file(GLOB INCLUDES ${PROJECT_SOURCE_DIR}/inc/*)
|
file(GLOB INCLUDES ${PROJECT_SOURCE_DIR}/inc/*)
|
||||||
file(COPY ${INCLUDES} DESTINATION ${LIBRARY_OUTPUT_PATH}/inc
|
file(COPY ${INCLUDES} DESTINATION ${LIBRARY_OUTPUT_PATH}/inc
|
||||||
|
|
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,16 @@
|
||||||
|
# CMAKE generated file: DO NOT EDIT!
|
||||||
|
# Generated by "MinGW Makefiles" Generator, CMake Version 3.15
|
||||||
|
|
||||||
|
# Relative path conversion top directories.
|
||||||
|
set(CMAKE_RELATIVE_PATH_TOP_SOURCE "D:/project/c++/generallib")
|
||||||
|
set(CMAKE_RELATIVE_PATH_TOP_BINARY "D:/project/c++/generallib/cmake-build-debug")
|
||||||
|
|
||||||
|
# Force unix paths in dependencies.
|
||||||
|
set(CMAKE_FORCE_UNIX_PATHS 1)
|
||||||
|
|
||||||
|
|
||||||
|
# The C and CXX include file regular expressions for this directory.
|
||||||
|
set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$")
|
||||||
|
set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$")
|
||||||
|
set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN})
|
||||||
|
set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN})
|
|
@ -0,0 +1,22 @@
|
||||||
|
#IncludeRegexLine: ^[ ]*[#%][ ]*(include|import)[ ]*[<"]([^">]+)([">])
|
||||||
|
|
||||||
|
#IncludeRegexScan: ^.*$
|
||||||
|
|
||||||
|
#IncludeRegexComplain: ^$
|
||||||
|
|
||||||
|
#IncludeRegexTransform:
|
||||||
|
|
||||||
|
D:/project/c++/generallib/src/encrypt/base64.cpp
|
||||||
|
base64.h
|
||||||
|
D:/project/c++/generallib/src/encrypt/base64.h
|
||||||
|
base64.h
|
||||||
|
D:/project/c++/generallib/src/encrypt/base64.h
|
||||||
|
iostream
|
||||||
|
-
|
||||||
|
ctype.h
|
||||||
|
-
|
||||||
|
|
||||||
|
D:/project/c++/generallib/src/encrypt/base64.h
|
||||||
|
string
|
||||||
|
-
|
||||||
|
|
|
@ -0,0 +1,26 @@
|
||||||
|
# The set of languages for which implicit dependencies are needed:
|
||||||
|
set(CMAKE_DEPENDS_LANGUAGES
|
||||||
|
"CXX"
|
||||||
|
)
|
||||||
|
# The set of files for implicit dependencies of each language:
|
||||||
|
set(CMAKE_DEPENDS_CHECK_CXX
|
||||||
|
"D:/project/c++/generallib/obj/inc/rsa.cpp" "D:/project/c++/generallib/cmake-build-debug/CMakeFiles/General.dir/obj/inc/rsa.cpp.obj"
|
||||||
|
"D:/project/c++/generallib/src/debug.cpp" "D:/project/c++/generallib/cmake-build-debug/CMakeFiles/General.dir/src/debug.cpp.obj"
|
||||||
|
"D:/project/c++/generallib/src/encrypt/aes.cpp" "D:/project/c++/generallib/cmake-build-debug/CMakeFiles/General.dir/src/encrypt/aes.cpp.obj"
|
||||||
|
"D:/project/c++/generallib/src/encrypt/base64.cpp" "D:/project/c++/generallib/cmake-build-debug/CMakeFiles/General.dir/src/encrypt/base64.cpp.obj"
|
||||||
|
"D:/project/c++/generallib/src/loger.cpp" "D:/project/c++/generallib/cmake-build-debug/CMakeFiles/General.dir/src/loger.cpp.obj"
|
||||||
|
"D:/project/c++/generallib/src/utils.cpp" "D:/project/c++/generallib/cmake-build-debug/CMakeFiles/General.dir/src/utils.cpp.obj"
|
||||||
|
)
|
||||||
|
set(CMAKE_CXX_COMPILER_ID "GNU")
|
||||||
|
|
||||||
|
# The include file search paths:
|
||||||
|
set(CMAKE_CXX_TARGET_INCLUDE_PATH
|
||||||
|
"../inc"
|
||||||
|
)
|
||||||
|
|
||||||
|
# Targets to which this target links.
|
||||||
|
set(CMAKE_TARGET_LINKED_INFO_FILES
|
||||||
|
)
|
||||||
|
|
||||||
|
# Fortran module output directory.
|
||||||
|
set(CMAKE_Fortran_TARGET_MODULE_DIR "")
|
|
@ -0,0 +1,179 @@
|
||||||
|
# CMAKE generated file: DO NOT EDIT!
|
||||||
|
# Generated by "MinGW Makefiles" Generator, CMake Version 3.15
|
||||||
|
|
||||||
|
# Delete rule output on recipe failure.
|
||||||
|
.DELETE_ON_ERROR:
|
||||||
|
|
||||||
|
|
||||||
|
#=============================================================================
|
||||||
|
# Special targets provided by cmake.
|
||||||
|
|
||||||
|
# Disable implicit rules so canonical targets will work.
|
||||||
|
.SUFFIXES:
|
||||||
|
|
||||||
|
|
||||||
|
# Remove some rules from gmake that .SUFFIXES does not remove.
|
||||||
|
SUFFIXES =
|
||||||
|
|
||||||
|
.SUFFIXES: .hpux_make_needs_suffix_list
|
||||||
|
|
||||||
|
|
||||||
|
# Suppress display of executed commands.
|
||||||
|
$(VERBOSE).SILENT:
|
||||||
|
|
||||||
|
|
||||||
|
# A target that is always out of date.
|
||||||
|
cmake_force:
|
||||||
|
|
||||||
|
.PHONY : cmake_force
|
||||||
|
|
||||||
|
#=============================================================================
|
||||||
|
# Set environment variables for the build.
|
||||||
|
|
||||||
|
SHELL = cmd.exe
|
||||||
|
|
||||||
|
# The CMake executable.
|
||||||
|
CMAKE_COMMAND = "C:\Program Files\JetBrains\CLion\bin\cmake\win\bin\cmake.exe"
|
||||||
|
|
||||||
|
# The command to remove a file.
|
||||||
|
RM = "C:\Program Files\JetBrains\CLion\bin\cmake\win\bin\cmake.exe" -E remove -f
|
||||||
|
|
||||||
|
# Escaping for special characters.
|
||||||
|
EQUALS = =
|
||||||
|
|
||||||
|
# The top-level source directory on which CMake was run.
|
||||||
|
CMAKE_SOURCE_DIR = D:\project\c++\generallib
|
||||||
|
|
||||||
|
# The top-level build directory on which CMake was run.
|
||||||
|
CMAKE_BINARY_DIR = D:\project\c++\generallib\cmake-build-debug
|
||||||
|
|
||||||
|
# Include any dependencies generated for this target.
|
||||||
|
include CMakeFiles/General.dir/depend.make
|
||||||
|
|
||||||
|
# Include the progress variables for this target.
|
||||||
|
include CMakeFiles/General.dir/progress.make
|
||||||
|
|
||||||
|
# Include the compile flags for this target's objects.
|
||||||
|
include CMakeFiles/General.dir/flags.make
|
||||||
|
|
||||||
|
CMakeFiles/General.dir/src/debug.cpp.obj: CMakeFiles/General.dir/flags.make
|
||||||
|
CMakeFiles/General.dir/src/debug.cpp.obj: CMakeFiles/General.dir/includes_CXX.rsp
|
||||||
|
CMakeFiles/General.dir/src/debug.cpp.obj: ../src/debug.cpp
|
||||||
|
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=D:\project\c++\generallib\cmake-build-debug\CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building CXX object CMakeFiles/General.dir/src/debug.cpp.obj"
|
||||||
|
C:\msys64\mingw64\bin\g++.exe $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles\General.dir\src\debug.cpp.obj -c D:\project\c++\generallib\src\debug.cpp
|
||||||
|
|
||||||
|
CMakeFiles/General.dir/src/debug.cpp.i: cmake_force
|
||||||
|
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/General.dir/src/debug.cpp.i"
|
||||||
|
C:\msys64\mingw64\bin\g++.exe $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E D:\project\c++\generallib\src\debug.cpp > CMakeFiles\General.dir\src\debug.cpp.i
|
||||||
|
|
||||||
|
CMakeFiles/General.dir/src/debug.cpp.s: cmake_force
|
||||||
|
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/General.dir/src/debug.cpp.s"
|
||||||
|
C:\msys64\mingw64\bin\g++.exe $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S D:\project\c++\generallib\src\debug.cpp -o CMakeFiles\General.dir\src\debug.cpp.s
|
||||||
|
|
||||||
|
CMakeFiles/General.dir/src/loger.cpp.obj: CMakeFiles/General.dir/flags.make
|
||||||
|
CMakeFiles/General.dir/src/loger.cpp.obj: CMakeFiles/General.dir/includes_CXX.rsp
|
||||||
|
CMakeFiles/General.dir/src/loger.cpp.obj: ../src/loger.cpp
|
||||||
|
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=D:\project\c++\generallib\cmake-build-debug\CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Building CXX object CMakeFiles/General.dir/src/loger.cpp.obj"
|
||||||
|
C:\msys64\mingw64\bin\g++.exe $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles\General.dir\src\loger.cpp.obj -c D:\project\c++\generallib\src\loger.cpp
|
||||||
|
|
||||||
|
CMakeFiles/General.dir/src/loger.cpp.i: cmake_force
|
||||||
|
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/General.dir/src/loger.cpp.i"
|
||||||
|
C:\msys64\mingw64\bin\g++.exe $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E D:\project\c++\generallib\src\loger.cpp > CMakeFiles\General.dir\src\loger.cpp.i
|
||||||
|
|
||||||
|
CMakeFiles/General.dir/src/loger.cpp.s: cmake_force
|
||||||
|
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/General.dir/src/loger.cpp.s"
|
||||||
|
C:\msys64\mingw64\bin\g++.exe $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S D:\project\c++\generallib\src\loger.cpp -o CMakeFiles\General.dir\src\loger.cpp.s
|
||||||
|
|
||||||
|
CMakeFiles/General.dir/src/utils.cpp.obj: CMakeFiles/General.dir/flags.make
|
||||||
|
CMakeFiles/General.dir/src/utils.cpp.obj: CMakeFiles/General.dir/includes_CXX.rsp
|
||||||
|
CMakeFiles/General.dir/src/utils.cpp.obj: ../src/utils.cpp
|
||||||
|
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=D:\project\c++\generallib\cmake-build-debug\CMakeFiles --progress-num=$(CMAKE_PROGRESS_3) "Building CXX object CMakeFiles/General.dir/src/utils.cpp.obj"
|
||||||
|
C:\msys64\mingw64\bin\g++.exe $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles\General.dir\src\utils.cpp.obj -c D:\project\c++\generallib\src\utils.cpp
|
||||||
|
|
||||||
|
CMakeFiles/General.dir/src/utils.cpp.i: cmake_force
|
||||||
|
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/General.dir/src/utils.cpp.i"
|
||||||
|
C:\msys64\mingw64\bin\g++.exe $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E D:\project\c++\generallib\src\utils.cpp > CMakeFiles\General.dir\src\utils.cpp.i
|
||||||
|
|
||||||
|
CMakeFiles/General.dir/src/utils.cpp.s: cmake_force
|
||||||
|
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/General.dir/src/utils.cpp.s"
|
||||||
|
C:\msys64\mingw64\bin\g++.exe $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S D:\project\c++\generallib\src\utils.cpp -o CMakeFiles\General.dir\src\utils.cpp.s
|
||||||
|
|
||||||
|
CMakeFiles/General.dir/src/encrypt/base64.cpp.obj: CMakeFiles/General.dir/flags.make
|
||||||
|
CMakeFiles/General.dir/src/encrypt/base64.cpp.obj: CMakeFiles/General.dir/includes_CXX.rsp
|
||||||
|
CMakeFiles/General.dir/src/encrypt/base64.cpp.obj: ../src/encrypt/base64.cpp
|
||||||
|
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=D:\project\c++\generallib\cmake-build-debug\CMakeFiles --progress-num=$(CMAKE_PROGRESS_4) "Building CXX object CMakeFiles/General.dir/src/encrypt/base64.cpp.obj"
|
||||||
|
C:\msys64\mingw64\bin\g++.exe $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles\General.dir\src\encrypt\base64.cpp.obj -c D:\project\c++\generallib\src\encrypt\base64.cpp
|
||||||
|
|
||||||
|
CMakeFiles/General.dir/src/encrypt/base64.cpp.i: cmake_force
|
||||||
|
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/General.dir/src/encrypt/base64.cpp.i"
|
||||||
|
C:\msys64\mingw64\bin\g++.exe $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E D:\project\c++\generallib\src\encrypt\base64.cpp > CMakeFiles\General.dir\src\encrypt\base64.cpp.i
|
||||||
|
|
||||||
|
CMakeFiles/General.dir/src/encrypt/base64.cpp.s: cmake_force
|
||||||
|
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/General.dir/src/encrypt/base64.cpp.s"
|
||||||
|
C:\msys64\mingw64\bin\g++.exe $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S D:\project\c++\generallib\src\encrypt\base64.cpp -o CMakeFiles\General.dir\src\encrypt\base64.cpp.s
|
||||||
|
|
||||||
|
CMakeFiles/General.dir/src/encrypt/aes.cpp.obj: CMakeFiles/General.dir/flags.make
|
||||||
|
CMakeFiles/General.dir/src/encrypt/aes.cpp.obj: CMakeFiles/General.dir/includes_CXX.rsp
|
||||||
|
CMakeFiles/General.dir/src/encrypt/aes.cpp.obj: ../src/encrypt/aes.cpp
|
||||||
|
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=D:\project\c++\generallib\cmake-build-debug\CMakeFiles --progress-num=$(CMAKE_PROGRESS_5) "Building CXX object CMakeFiles/General.dir/src/encrypt/aes.cpp.obj"
|
||||||
|
C:\msys64\mingw64\bin\g++.exe $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles\General.dir\src\encrypt\aes.cpp.obj -c D:\project\c++\generallib\src\encrypt\aes.cpp
|
||||||
|
|
||||||
|
CMakeFiles/General.dir/src/encrypt/aes.cpp.i: cmake_force
|
||||||
|
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/General.dir/src/encrypt/aes.cpp.i"
|
||||||
|
C:\msys64\mingw64\bin\g++.exe $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E D:\project\c++\generallib\src\encrypt\aes.cpp > CMakeFiles\General.dir\src\encrypt\aes.cpp.i
|
||||||
|
|
||||||
|
CMakeFiles/General.dir/src/encrypt/aes.cpp.s: cmake_force
|
||||||
|
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/General.dir/src/encrypt/aes.cpp.s"
|
||||||
|
C:\msys64\mingw64\bin\g++.exe $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S D:\project\c++\generallib\src\encrypt\aes.cpp -o CMakeFiles\General.dir\src\encrypt\aes.cpp.s
|
||||||
|
|
||||||
|
CMakeFiles/General.dir/obj/inc/rsa.cpp.obj: CMakeFiles/General.dir/flags.make
|
||||||
|
CMakeFiles/General.dir/obj/inc/rsa.cpp.obj: CMakeFiles/General.dir/includes_CXX.rsp
|
||||||
|
CMakeFiles/General.dir/obj/inc/rsa.cpp.obj: ../obj/inc/rsa.cpp
|
||||||
|
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=D:\project\c++\generallib\cmake-build-debug\CMakeFiles --progress-num=$(CMAKE_PROGRESS_6) "Building CXX object CMakeFiles/General.dir/obj/inc/rsa.cpp.obj"
|
||||||
|
C:\msys64\mingw64\bin\g++.exe $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -o CMakeFiles\General.dir\obj\inc\rsa.cpp.obj -c D:\project\c++\generallib\obj\inc\rsa.cpp
|
||||||
|
|
||||||
|
CMakeFiles/General.dir/obj/inc/rsa.cpp.i: cmake_force
|
||||||
|
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/General.dir/obj/inc/rsa.cpp.i"
|
||||||
|
C:\msys64\mingw64\bin\g++.exe $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E D:\project\c++\generallib\obj\inc\rsa.cpp > CMakeFiles\General.dir\obj\inc\rsa.cpp.i
|
||||||
|
|
||||||
|
CMakeFiles/General.dir/obj/inc/rsa.cpp.s: cmake_force
|
||||||
|
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/General.dir/obj/inc/rsa.cpp.s"
|
||||||
|
C:\msys64\mingw64\bin\g++.exe $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S D:\project\c++\generallib\obj\inc\rsa.cpp -o CMakeFiles\General.dir\obj\inc\rsa.cpp.s
|
||||||
|
|
||||||
|
# Object files for target General
|
||||||
|
General_OBJECTS = \
|
||||||
|
"CMakeFiles/General.dir/src/debug.cpp.obj" \
|
||||||
|
"CMakeFiles/General.dir/src/loger.cpp.obj" \
|
||||||
|
"CMakeFiles/General.dir/src/utils.cpp.obj" \
|
||||||
|
"CMakeFiles/General.dir/src/encrypt/base64.cpp.obj" \
|
||||||
|
"CMakeFiles/General.dir/src/encrypt/aes.cpp.obj" \
|
||||||
|
"CMakeFiles/General.dir/obj/inc/rsa.cpp.obj"
|
||||||
|
|
||||||
|
# External object files for target General
|
||||||
|
General_EXTERNAL_OBJECTS =
|
||||||
|
|
||||||
|
../obj/libGeneral.a: CMakeFiles/General.dir/src/debug.cpp.obj
|
||||||
|
../obj/libGeneral.a: CMakeFiles/General.dir/src/loger.cpp.obj
|
||||||
|
../obj/libGeneral.a: CMakeFiles/General.dir/src/utils.cpp.obj
|
||||||
|
../obj/libGeneral.a: CMakeFiles/General.dir/src/encrypt/base64.cpp.obj
|
||||||
|
../obj/libGeneral.a: CMakeFiles/General.dir/src/encrypt/aes.cpp.obj
|
||||||
|
../obj/libGeneral.a: CMakeFiles/General.dir/obj/inc/rsa.cpp.obj
|
||||||
|
../obj/libGeneral.a: CMakeFiles/General.dir/build.make
|
||||||
|
../obj/libGeneral.a: CMakeFiles/General.dir/link.txt
|
||||||
|
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=D:\project\c++\generallib\cmake-build-debug\CMakeFiles --progress-num=$(CMAKE_PROGRESS_7) "Linking CXX static library ..\obj\libGeneral.a"
|
||||||
|
$(CMAKE_COMMAND) -P CMakeFiles\General.dir\cmake_clean_target.cmake
|
||||||
|
$(CMAKE_COMMAND) -E cmake_link_script CMakeFiles\General.dir\link.txt --verbose=$(VERBOSE)
|
||||||
|
|
||||||
|
# Rule to build all files generated by this target.
|
||||||
|
CMakeFiles/General.dir/build: ../obj/libGeneral.a
|
||||||
|
|
||||||
|
.PHONY : CMakeFiles/General.dir/build
|
||||||
|
|
||||||
|
CMakeFiles/General.dir/clean:
|
||||||
|
$(CMAKE_COMMAND) -P CMakeFiles\General.dir\cmake_clean.cmake
|
||||||
|
.PHONY : CMakeFiles/General.dir/clean
|
||||||
|
|
||||||
|
CMakeFiles/General.dir/depend:
|
||||||
|
$(CMAKE_COMMAND) -E cmake_depends "MinGW Makefiles" D:\project\c++\generallib D:\project\c++\generallib D:\project\c++\generallib\cmake-build-debug D:\project\c++\generallib\cmake-build-debug D:\project\c++\generallib\cmake-build-debug\CMakeFiles\General.dir\DependInfo.cmake --color=$(COLOR)
|
||||||
|
.PHONY : CMakeFiles/General.dir/depend
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
file(REMOVE_RECURSE
|
||||||
|
"../obj/libGeneral.a"
|
||||||
|
"../obj/libGeneral.pdb"
|
||||||
|
"CMakeFiles/General.dir/obj/inc/rsa.cpp.obj"
|
||||||
|
"CMakeFiles/General.dir/src/debug.cpp.obj"
|
||||||
|
"CMakeFiles/General.dir/src/encrypt/aes.cpp.obj"
|
||||||
|
"CMakeFiles/General.dir/src/encrypt/base64.cpp.obj"
|
||||||
|
"CMakeFiles/General.dir/src/loger.cpp.obj"
|
||||||
|
"CMakeFiles/General.dir/src/utils.cpp.obj"
|
||||||
|
)
|
||||||
|
|
||||||
|
# Per-language clean rules from dependency scanning.
|
||||||
|
foreach(lang CXX)
|
||||||
|
include(CMakeFiles/General.dir/cmake_clean_${lang}.cmake OPTIONAL)
|
||||||
|
endforeach()
|
|
@ -0,0 +1,19 @@
|
||||||
|
# CMAKE generated file: DO NOT EDIT!
|
||||||
|
# Generated by "MinGW Makefiles" Generator, CMake Version 3.15
|
||||||
|
|
||||||
|
CMakeFiles/General.dir/src/debug.cpp.obj
|
||||||
|
../inc/debug.h
|
||||||
|
D:/project/c++/generallib/src/debug.cpp
|
||||||
|
CMakeFiles/General.dir/src/encrypt/aes.cpp.obj
|
||||||
|
D:/project/c++/generallib/src/encrypt/aes.cpp
|
||||||
|
D:/project/c++/generallib/src/encrypt/aes.h
|
||||||
|
CMakeFiles/General.dir/src/encrypt/base64.cpp.obj
|
||||||
|
D:/project/c++/generallib/src/encrypt/base64.cpp
|
||||||
|
D:/project/c++/generallib/src/encrypt/base64.h
|
||||||
|
CMakeFiles/General.dir/src/loger.cpp.obj
|
||||||
|
../inc/loger.h
|
||||||
|
D:/project/c++/generallib/src/loger.cpp
|
||||||
|
CMakeFiles/General.dir/src/utils.cpp.obj
|
||||||
|
../inc/debug.h
|
||||||
|
../inc/utils.h
|
||||||
|
D:/project/c++/generallib/src/utils.cpp
|
|
@ -0,0 +1,19 @@
|
||||||
|
# CMAKE generated file: DO NOT EDIT!
|
||||||
|
# Generated by "MinGW Makefiles" Generator, CMake Version 3.15
|
||||||
|
|
||||||
|
CMakeFiles/General.dir/src/debug.cpp.obj: ../inc/debug.h
|
||||||
|
CMakeFiles/General.dir/src/debug.cpp.obj: ../src/debug.cpp
|
||||||
|
|
||||||
|
CMakeFiles/General.dir/src/encrypt/aes.cpp.obj: ../src/encrypt/aes.cpp
|
||||||
|
CMakeFiles/General.dir/src/encrypt/aes.cpp.obj: ../src/encrypt/aes.h
|
||||||
|
|
||||||
|
CMakeFiles/General.dir/src/encrypt/base64.cpp.obj: ../src/encrypt/base64.cpp
|
||||||
|
CMakeFiles/General.dir/src/encrypt/base64.cpp.obj: ../src/encrypt/base64.h
|
||||||
|
|
||||||
|
CMakeFiles/General.dir/src/loger.cpp.obj: ../inc/loger.h
|
||||||
|
CMakeFiles/General.dir/src/loger.cpp.obj: ../src/loger.cpp
|
||||||
|
|
||||||
|
CMakeFiles/General.dir/src/utils.cpp.obj: ../inc/debug.h
|
||||||
|
CMakeFiles/General.dir/src/utils.cpp.obj: ../inc/utils.h
|
||||||
|
CMakeFiles/General.dir/src/utils.cpp.obj: ../src/utils.cpp
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
-ID:/project/c++/generallib/inc
|
|
@ -0,0 +1,2 @@
|
||||||
|
C:\msys64\mingw64\bin\ar.exe qc ..\obj\libGeneral.a CMakeFiles/General.dir/src/debug.cpp.obj CMakeFiles/General.dir/src/loger.cpp.obj CMakeFiles/General.dir/src/utils.cpp.obj CMakeFiles/General.dir/src/encrypt/base64.cpp.obj CMakeFiles/General.dir/src/encrypt/aes.cpp.obj CMakeFiles/General.dir/obj/inc/rsa.cpp.obj
|
||||||
|
C:\msys64\mingw64\bin\ranlib.exe ..\obj\libGeneral.a
|
|
@ -0,0 +1,8 @@
|
||||||
|
CMAKE_PROGRESS_1 = 1
|
||||||
|
CMAKE_PROGRESS_2 = 2
|
||||||
|
CMAKE_PROGRESS_3 = 3
|
||||||
|
CMAKE_PROGRESS_4 = 4
|
||||||
|
CMAKE_PROGRESS_5 = 5
|
||||||
|
CMAKE_PROGRESS_6 = 6
|
||||||
|
CMAKE_PROGRESS_7 = 7
|
||||||
|
|
|
@ -0,0 +1,105 @@
|
||||||
|
# CMAKE generated file: DO NOT EDIT!
|
||||||
|
# Generated by "MinGW Makefiles" Generator, CMake Version 3.15
|
||||||
|
|
||||||
|
# Default target executed when no arguments are given to make.
|
||||||
|
default_target: all
|
||||||
|
|
||||||
|
.PHONY : default_target
|
||||||
|
|
||||||
|
#=============================================================================
|
||||||
|
# Special targets provided by cmake.
|
||||||
|
|
||||||
|
# Disable implicit rules so canonical targets will work.
|
||||||
|
.SUFFIXES:
|
||||||
|
|
||||||
|
|
||||||
|
# Remove some rules from gmake that .SUFFIXES does not remove.
|
||||||
|
SUFFIXES =
|
||||||
|
|
||||||
|
.SUFFIXES: .hpux_make_needs_suffix_list
|
||||||
|
|
||||||
|
|
||||||
|
# Suppress display of executed commands.
|
||||||
|
$(VERBOSE).SILENT:
|
||||||
|
|
||||||
|
|
||||||
|
# A target that is always out of date.
|
||||||
|
cmake_force:
|
||||||
|
|
||||||
|
.PHONY : cmake_force
|
||||||
|
|
||||||
|
#=============================================================================
|
||||||
|
# Set environment variables for the build.
|
||||||
|
|
||||||
|
SHELL = cmd.exe
|
||||||
|
|
||||||
|
# The CMake executable.
|
||||||
|
CMAKE_COMMAND = "C:\Program Files\JetBrains\CLion\bin\cmake\win\bin\cmake.exe"
|
||||||
|
|
||||||
|
# The command to remove a file.
|
||||||
|
RM = "C:\Program Files\JetBrains\CLion\bin\cmake\win\bin\cmake.exe" -E remove -f
|
||||||
|
|
||||||
|
# Escaping for special characters.
|
||||||
|
EQUALS = =
|
||||||
|
|
||||||
|
# The top-level source directory on which CMake was run.
|
||||||
|
CMAKE_SOURCE_DIR = D:\project\c++\generallib
|
||||||
|
|
||||||
|
# The top-level build directory on which CMake was run.
|
||||||
|
CMAKE_BINARY_DIR = D:\project\c++\generallib\cmake-build-debug
|
||||||
|
|
||||||
|
#=============================================================================
|
||||||
|
# Directory level rules for the build root directory
|
||||||
|
|
||||||
|
# The main recursive "all" target.
|
||||||
|
all: CMakeFiles/General.dir/all
|
||||||
|
|
||||||
|
.PHONY : all
|
||||||
|
|
||||||
|
# The main recursive "clean" target.
|
||||||
|
clean: CMakeFiles/General.dir/clean
|
||||||
|
|
||||||
|
.PHONY : clean
|
||||||
|
|
||||||
|
# The main recursive "preinstall" target.
|
||||||
|
preinstall:
|
||||||
|
|
||||||
|
.PHONY : preinstall
|
||||||
|
|
||||||
|
#=============================================================================
|
||||||
|
# Target rules for target CMakeFiles/General.dir
|
||||||
|
|
||||||
|
# All Build rule for target.
|
||||||
|
CMakeFiles/General.dir/all:
|
||||||
|
$(MAKE) -f CMakeFiles\General.dir\build.make CMakeFiles/General.dir/depend
|
||||||
|
$(MAKE) -f CMakeFiles\General.dir\build.make CMakeFiles/General.dir/build
|
||||||
|
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=D:\project\c++\generallib\cmake-build-debug\CMakeFiles --progress-num=1,2,3,4,5,6,7 "Built target General"
|
||||||
|
.PHONY : CMakeFiles/General.dir/all
|
||||||
|
|
||||||
|
# Build rule for subdir invocation for target.
|
||||||
|
CMakeFiles/General.dir/rule: cmake_check_build_system
|
||||||
|
$(CMAKE_COMMAND) -E cmake_progress_start D:\project\c++\generallib\cmake-build-debug\CMakeFiles 7
|
||||||
|
$(MAKE) -f CMakeFiles\Makefile2 CMakeFiles/General.dir/all
|
||||||
|
$(CMAKE_COMMAND) -E cmake_progress_start D:\project\c++\generallib\cmake-build-debug\CMakeFiles 0
|
||||||
|
.PHONY : CMakeFiles/General.dir/rule
|
||||||
|
|
||||||
|
# Convenience name for target.
|
||||||
|
General: CMakeFiles/General.dir/rule
|
||||||
|
|
||||||
|
.PHONY : General
|
||||||
|
|
||||||
|
# clean rule for target.
|
||||||
|
CMakeFiles/General.dir/clean:
|
||||||
|
$(MAKE) -f CMakeFiles\General.dir\build.make CMakeFiles/General.dir/clean
|
||||||
|
.PHONY : CMakeFiles/General.dir/clean
|
||||||
|
|
||||||
|
#=============================================================================
|
||||||
|
# Special targets to cleanup operation of make.
|
||||||
|
|
||||||
|
# Special rule to run CMake to check the build system integrity.
|
||||||
|
# No rule that depends on this can have commands that come from listfiles
|
||||||
|
# because they might be regenerated.
|
||||||
|
cmake_check_build_system:
|
||||||
|
$(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles\Makefile.cmake 0
|
||||||
|
.PHONY : cmake_check_build_system
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
D:/project/c++/generallib/cmake-build-debug/CMakeFiles/General.dir
|
||||||
|
D:/project/c++/generallib/cmake-build-debug/CMakeFiles/edit_cache.dir
|
||||||
|
D:/project/c++/generallib/cmake-build-debug/CMakeFiles/rebuild_cache.dir
|
|
@ -0,0 +1,5 @@
|
||||||
|
"C:\Program Files\JetBrains\CLion\bin\cmake\win\bin\cmake.exe" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=C:/msys64/mingw64/bin/mingw32-make.exe -G "CodeBlocks - MinGW Makefiles" D:\project\c++\generallib
|
||||||
|
statusD:/project/c++/generallib/inc/debug.hD:/project/c++/generallib/inc/loger.hD:/project/c++/generallib/inc/utils.h
|
||||||
|
-- Configuring done
|
||||||
|
-- Generating done
|
||||||
|
-- Build files have been written to: D:/project/c++/generallib/cmake-build-debug
|
|
@ -0,0 +1 @@
|
||||||
|
7
|
|
@ -0,0 +1,130 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<CodeBlocks_project_file>
|
||||||
|
<FileVersion major="1" minor="6"/>
|
||||||
|
<Project>
|
||||||
|
<Option title="General"/>
|
||||||
|
<Option makefile_is_custom="1"/>
|
||||||
|
<Option compiler="gcc"/>
|
||||||
|
<Option virtualFolders="CMake Files\;"/>
|
||||||
|
<Build>
|
||||||
|
<Target title="all">
|
||||||
|
<Option working_dir="D:/project/c++/generallib/cmake-build-debug"/>
|
||||||
|
<Option type="4"/>
|
||||||
|
<MakeCommands>
|
||||||
|
<Build command="C:/msys64/mingw64/bin/mingw32-make.exe -f "D:/project/c++/generallib/cmake-build-debug/Makefile" VERBOSE=1 all"/>
|
||||||
|
<CompileFile command="C:/msys64/mingw64/bin/mingw32-make.exe -f "D:/project/c++/generallib/cmake-build-debug/Makefile" VERBOSE=1 "$file""/>
|
||||||
|
<Clean command="C:/msys64/mingw64/bin/mingw32-make.exe -f "D:/project/c++/generallib/cmake-build-debug/Makefile" VERBOSE=1 clean"/>
|
||||||
|
<DistClean command="C:/msys64/mingw64/bin/mingw32-make.exe -f "D:/project/c++/generallib/cmake-build-debug/Makefile" VERBOSE=1 clean"/>
|
||||||
|
</MakeCommands>
|
||||||
|
</Target>
|
||||||
|
<Target title="General">
|
||||||
|
<Option output="D:/project/c++/generallib/obj/libGeneral.a" prefix_auto="0" extension_auto="0"/>
|
||||||
|
<Option working_dir="D:/project/c++/generallib/cmake-build-debug"/>
|
||||||
|
<Option object_output="./"/>
|
||||||
|
<Option type="2"/>
|
||||||
|
<Option compiler="gcc"/>
|
||||||
|
<Compiler>
|
||||||
|
<Add directory="D:/project/c++/generallib/inc"/>
|
||||||
|
<Add directory="C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.3.0/../../../../include/c++/7.3.0"/>
|
||||||
|
<Add directory="C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.3.0/../../../../include/c++/7.3.0/x86_64-w64-mingw32"/>
|
||||||
|
<Add directory="C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.3.0/../../../../include/c++/7.3.0/backward"/>
|
||||||
|
<Add directory="C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.3.0/include"/>
|
||||||
|
<Add directory="C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.3.0/../../../../include"/>
|
||||||
|
<Add directory="C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.3.0/include-fixed"/>
|
||||||
|
<Add directory="C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.3.0/../../../../x86_64-w64-mingw32/include"/>
|
||||||
|
</Compiler>
|
||||||
|
<MakeCommands>
|
||||||
|
<Build command="C:/msys64/mingw64/bin/mingw32-make.exe -f "D:/project/c++/generallib/cmake-build-debug/Makefile" VERBOSE=1 General"/>
|
||||||
|
<CompileFile command="C:/msys64/mingw64/bin/mingw32-make.exe -f "D:/project/c++/generallib/cmake-build-debug/Makefile" VERBOSE=1 "$file""/>
|
||||||
|
<Clean command="C:/msys64/mingw64/bin/mingw32-make.exe -f "D:/project/c++/generallib/cmake-build-debug/Makefile" VERBOSE=1 clean"/>
|
||||||
|
<DistClean command="C:/msys64/mingw64/bin/mingw32-make.exe -f "D:/project/c++/generallib/cmake-build-debug/Makefile" VERBOSE=1 clean"/>
|
||||||
|
</MakeCommands>
|
||||||
|
</Target>
|
||||||
|
<Target title="General/fast">
|
||||||
|
<Option output="D:/project/c++/generallib/obj/libGeneral.a" prefix_auto="0" extension_auto="0"/>
|
||||||
|
<Option working_dir="D:/project/c++/generallib/cmake-build-debug"/>
|
||||||
|
<Option object_output="./"/>
|
||||||
|
<Option type="2"/>
|
||||||
|
<Option compiler="gcc"/>
|
||||||
|
<Compiler>
|
||||||
|
<Add directory="D:/project/c++/generallib/inc"/>
|
||||||
|
<Add directory="C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.3.0/../../../../include/c++/7.3.0"/>
|
||||||
|
<Add directory="C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.3.0/../../../../include/c++/7.3.0/x86_64-w64-mingw32"/>
|
||||||
|
<Add directory="C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.3.0/../../../../include/c++/7.3.0/backward"/>
|
||||||
|
<Add directory="C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.3.0/include"/>
|
||||||
|
<Add directory="C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.3.0/../../../../include"/>
|
||||||
|
<Add directory="C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.3.0/include-fixed"/>
|
||||||
|
<Add directory="C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.3.0/../../../../x86_64-w64-mingw32/include"/>
|
||||||
|
</Compiler>
|
||||||
|
<MakeCommands>
|
||||||
|
<Build command="C:/msys64/mingw64/bin/mingw32-make.exe -f "D:/project/c++/generallib/cmake-build-debug/Makefile" VERBOSE=1 General/fast"/>
|
||||||
|
<CompileFile command="C:/msys64/mingw64/bin/mingw32-make.exe -f "D:/project/c++/generallib/cmake-build-debug/Makefile" VERBOSE=1 "$file""/>
|
||||||
|
<Clean command="C:/msys64/mingw64/bin/mingw32-make.exe -f "D:/project/c++/generallib/cmake-build-debug/Makefile" VERBOSE=1 clean"/>
|
||||||
|
<DistClean command="C:/msys64/mingw64/bin/mingw32-make.exe -f "D:/project/c++/generallib/cmake-build-debug/Makefile" VERBOSE=1 clean"/>
|
||||||
|
</MakeCommands>
|
||||||
|
</Target>
|
||||||
|
<Target title="edit_cache">
|
||||||
|
<Option working_dir="D:/project/c++/generallib/cmake-build-debug"/>
|
||||||
|
<Option type="4"/>
|
||||||
|
<MakeCommands>
|
||||||
|
<Build command="C:/msys64/mingw64/bin/mingw32-make.exe -f "D:/project/c++/generallib/cmake-build-debug/Makefile" VERBOSE=1 edit_cache"/>
|
||||||
|
<CompileFile command="C:/msys64/mingw64/bin/mingw32-make.exe -f "D:/project/c++/generallib/cmake-build-debug/Makefile" VERBOSE=1 "$file""/>
|
||||||
|
<Clean command="C:/msys64/mingw64/bin/mingw32-make.exe -f "D:/project/c++/generallib/cmake-build-debug/Makefile" VERBOSE=1 clean"/>
|
||||||
|
<DistClean command="C:/msys64/mingw64/bin/mingw32-make.exe -f "D:/project/c++/generallib/cmake-build-debug/Makefile" VERBOSE=1 clean"/>
|
||||||
|
</MakeCommands>
|
||||||
|
</Target>
|
||||||
|
<Target title="rebuild_cache">
|
||||||
|
<Option working_dir="D:/project/c++/generallib/cmake-build-debug"/>
|
||||||
|
<Option type="4"/>
|
||||||
|
<MakeCommands>
|
||||||
|
<Build command="C:/msys64/mingw64/bin/mingw32-make.exe -f "D:/project/c++/generallib/cmake-build-debug/Makefile" VERBOSE=1 rebuild_cache"/>
|
||||||
|
<CompileFile command="C:/msys64/mingw64/bin/mingw32-make.exe -f "D:/project/c++/generallib/cmake-build-debug/Makefile" VERBOSE=1 "$file""/>
|
||||||
|
<Clean command="C:/msys64/mingw64/bin/mingw32-make.exe -f "D:/project/c++/generallib/cmake-build-debug/Makefile" VERBOSE=1 clean"/>
|
||||||
|
<DistClean command="C:/msys64/mingw64/bin/mingw32-make.exe -f "D:/project/c++/generallib/cmake-build-debug/Makefile" VERBOSE=1 clean"/>
|
||||||
|
</MakeCommands>
|
||||||
|
</Target>
|
||||||
|
</Build>
|
||||||
|
<Unit filename="D:/project/c++/generallib/obj/inc/rsa.cpp">
|
||||||
|
<Option target="General"/>
|
||||||
|
</Unit>
|
||||||
|
<Unit filename="D:/project/c++/generallib/obj/inc/rsa.h">
|
||||||
|
<Option target="General"/>
|
||||||
|
</Unit>
|
||||||
|
<Unit filename="D:/project/c++/generallib/src/debug.cpp">
|
||||||
|
<Option target="General"/>
|
||||||
|
</Unit>
|
||||||
|
<Unit filename="D:/project/c++/generallib/src/encrypt/aes.cpp">
|
||||||
|
<Option target="General"/>
|
||||||
|
</Unit>
|
||||||
|
<Unit filename="D:/project/c++/generallib/src/encrypt/aes.h">
|
||||||
|
<Option target="General"/>
|
||||||
|
</Unit>
|
||||||
|
<Unit filename="D:/project/c++/generallib/src/encrypt/base64.cpp">
|
||||||
|
<Option target="General"/>
|
||||||
|
</Unit>
|
||||||
|
<Unit filename="D:/project/c++/generallib/src/encrypt/base64.h">
|
||||||
|
<Option target="General"/>
|
||||||
|
</Unit>
|
||||||
|
<Unit filename="D:/project/c++/generallib/src/loger.cpp">
|
||||||
|
<Option target="General"/>
|
||||||
|
</Unit>
|
||||||
|
<Unit filename="D:/project/c++/generallib/src/pattern/Observer.h">
|
||||||
|
<Option target="General"/>
|
||||||
|
</Unit>
|
||||||
|
<Unit filename="D:/project/c++/generallib/src/pattern/adapter.h">
|
||||||
|
<Option target="General"/>
|
||||||
|
</Unit>
|
||||||
|
<Unit filename="D:/project/c++/generallib/src/pattern/signleton.h">
|
||||||
|
<Option target="General"/>
|
||||||
|
</Unit>
|
||||||
|
<Unit filename="D:/project/c++/generallib/src/pattern/stratergy.h">
|
||||||
|
<Option target="General"/>
|
||||||
|
</Unit>
|
||||||
|
<Unit filename="D:/project/c++/generallib/src/utils.cpp">
|
||||||
|
<Option target="General"/>
|
||||||
|
</Unit>
|
||||||
|
<Unit filename="D:/project/c++/generallib/CMakeLists.txt">
|
||||||
|
<Option virtualFolder="CMake Files\"/>
|
||||||
|
</Unit>
|
||||||
|
</Project>
|
||||||
|
</CodeBlocks_project_file>
|
|
@ -0,0 +1,327 @@
|
||||||
|
# CMAKE generated file: DO NOT EDIT!
|
||||||
|
# Generated by "MinGW Makefiles" Generator, CMake Version 3.15
|
||||||
|
|
||||||
|
# Default target executed when no arguments are given to make.
|
||||||
|
default_target: all
|
||||||
|
|
||||||
|
.PHONY : default_target
|
||||||
|
|
||||||
|
# Allow only one "make -f Makefile2" at a time, but pass parallelism.
|
||||||
|
.NOTPARALLEL:
|
||||||
|
|
||||||
|
|
||||||
|
#=============================================================================
|
||||||
|
# Special targets provided by cmake.
|
||||||
|
|
||||||
|
# Disable implicit rules so canonical targets will work.
|
||||||
|
.SUFFIXES:
|
||||||
|
|
||||||
|
|
||||||
|
# Remove some rules from gmake that .SUFFIXES does not remove.
|
||||||
|
SUFFIXES =
|
||||||
|
|
||||||
|
.SUFFIXES: .hpux_make_needs_suffix_list
|
||||||
|
|
||||||
|
|
||||||
|
# Suppress display of executed commands.
|
||||||
|
$(VERBOSE).SILENT:
|
||||||
|
|
||||||
|
|
||||||
|
# A target that is always out of date.
|
||||||
|
cmake_force:
|
||||||
|
|
||||||
|
.PHONY : cmake_force
|
||||||
|
|
||||||
|
#=============================================================================
|
||||||
|
# Set environment variables for the build.
|
||||||
|
|
||||||
|
SHELL = cmd.exe
|
||||||
|
|
||||||
|
# The CMake executable.
|
||||||
|
CMAKE_COMMAND = "C:\Program Files\JetBrains\CLion\bin\cmake\win\bin\cmake.exe"
|
||||||
|
|
||||||
|
# The command to remove a file.
|
||||||
|
RM = "C:\Program Files\JetBrains\CLion\bin\cmake\win\bin\cmake.exe" -E remove -f
|
||||||
|
|
||||||
|
# Escaping for special characters.
|
||||||
|
EQUALS = =
|
||||||
|
|
||||||
|
# The top-level source directory on which CMake was run.
|
||||||
|
CMAKE_SOURCE_DIR = D:\project\c++\generallib
|
||||||
|
|
||||||
|
# The top-level build directory on which CMake was run.
|
||||||
|
CMAKE_BINARY_DIR = D:\project\c++\generallib\cmake-build-debug
|
||||||
|
|
||||||
|
#=============================================================================
|
||||||
|
# Targets provided globally by CMake.
|
||||||
|
|
||||||
|
# Special rule for the target edit_cache
|
||||||
|
edit_cache:
|
||||||
|
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "No interactive CMake dialog available..."
|
||||||
|
"C:\Program Files\JetBrains\CLion\bin\cmake\win\bin\cmake.exe" -E echo "No interactive CMake dialog available."
|
||||||
|
.PHONY : edit_cache
|
||||||
|
|
||||||
|
# Special rule for the target edit_cache
|
||||||
|
edit_cache/fast: edit_cache
|
||||||
|
|
||||||
|
.PHONY : edit_cache/fast
|
||||||
|
|
||||||
|
# Special rule for the target rebuild_cache
|
||||||
|
rebuild_cache:
|
||||||
|
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
|
||||||
|
"C:\Program Files\JetBrains\CLion\bin\cmake\win\bin\cmake.exe" -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
|
||||||
|
.PHONY : rebuild_cache
|
||||||
|
|
||||||
|
# Special rule for the target rebuild_cache
|
||||||
|
rebuild_cache/fast: rebuild_cache
|
||||||
|
|
||||||
|
.PHONY : rebuild_cache/fast
|
||||||
|
|
||||||
|
# The main all target
|
||||||
|
all: cmake_check_build_system
|
||||||
|
$(CMAKE_COMMAND) -E cmake_progress_start D:\project\c++\generallib\cmake-build-debug\CMakeFiles D:\project\c++\generallib\cmake-build-debug\CMakeFiles\progress.marks
|
||||||
|
$(MAKE) -f CMakeFiles\Makefile2 all
|
||||||
|
$(CMAKE_COMMAND) -E cmake_progress_start D:\project\c++\generallib\cmake-build-debug\CMakeFiles 0
|
||||||
|
.PHONY : all
|
||||||
|
|
||||||
|
# The main clean target
|
||||||
|
clean:
|
||||||
|
$(MAKE) -f CMakeFiles\Makefile2 clean
|
||||||
|
.PHONY : clean
|
||||||
|
|
||||||
|
# The main clean target
|
||||||
|
clean/fast: clean
|
||||||
|
|
||||||
|
.PHONY : clean/fast
|
||||||
|
|
||||||
|
# Prepare targets for installation.
|
||||||
|
preinstall: all
|
||||||
|
$(MAKE) -f CMakeFiles\Makefile2 preinstall
|
||||||
|
.PHONY : preinstall
|
||||||
|
|
||||||
|
# Prepare targets for installation.
|
||||||
|
preinstall/fast:
|
||||||
|
$(MAKE) -f CMakeFiles\Makefile2 preinstall
|
||||||
|
.PHONY : preinstall/fast
|
||||||
|
|
||||||
|
# clear depends
|
||||||
|
depend:
|
||||||
|
$(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles\Makefile.cmake 1
|
||||||
|
.PHONY : depend
|
||||||
|
|
||||||
|
#=============================================================================
|
||||||
|
# Target rules for targets named General
|
||||||
|
|
||||||
|
# Build rule for target.
|
||||||
|
General: cmake_check_build_system
|
||||||
|
$(MAKE) -f CMakeFiles\Makefile2 General
|
||||||
|
.PHONY : General
|
||||||
|
|
||||||
|
# fast build rule for target.
|
||||||
|
General/fast:
|
||||||
|
$(MAKE) -f CMakeFiles\General.dir\build.make CMakeFiles/General.dir/build
|
||||||
|
.PHONY : General/fast
|
||||||
|
|
||||||
|
obj/inc/rsa.obj: obj/inc/rsa.cpp.obj
|
||||||
|
|
||||||
|
.PHONY : obj/inc/rsa.obj
|
||||||
|
|
||||||
|
# target to build an object file
|
||||||
|
obj/inc/rsa.cpp.obj:
|
||||||
|
$(MAKE) -f CMakeFiles\General.dir\build.make CMakeFiles/General.dir/obj/inc/rsa.cpp.obj
|
||||||
|
.PHONY : obj/inc/rsa.cpp.obj
|
||||||
|
|
||||||
|
obj/inc/rsa.i: obj/inc/rsa.cpp.i
|
||||||
|
|
||||||
|
.PHONY : obj/inc/rsa.i
|
||||||
|
|
||||||
|
# target to preprocess a source file
|
||||||
|
obj/inc/rsa.cpp.i:
|
||||||
|
$(MAKE) -f CMakeFiles\General.dir\build.make CMakeFiles/General.dir/obj/inc/rsa.cpp.i
|
||||||
|
.PHONY : obj/inc/rsa.cpp.i
|
||||||
|
|
||||||
|
obj/inc/rsa.s: obj/inc/rsa.cpp.s
|
||||||
|
|
||||||
|
.PHONY : obj/inc/rsa.s
|
||||||
|
|
||||||
|
# target to generate assembly for a file
|
||||||
|
obj/inc/rsa.cpp.s:
|
||||||
|
$(MAKE) -f CMakeFiles\General.dir\build.make CMakeFiles/General.dir/obj/inc/rsa.cpp.s
|
||||||
|
.PHONY : obj/inc/rsa.cpp.s
|
||||||
|
|
||||||
|
src/debug.obj: src/debug.cpp.obj
|
||||||
|
|
||||||
|
.PHONY : src/debug.obj
|
||||||
|
|
||||||
|
# target to build an object file
|
||||||
|
src/debug.cpp.obj:
|
||||||
|
$(MAKE) -f CMakeFiles\General.dir\build.make CMakeFiles/General.dir/src/debug.cpp.obj
|
||||||
|
.PHONY : src/debug.cpp.obj
|
||||||
|
|
||||||
|
src/debug.i: src/debug.cpp.i
|
||||||
|
|
||||||
|
.PHONY : src/debug.i
|
||||||
|
|
||||||
|
# target to preprocess a source file
|
||||||
|
src/debug.cpp.i:
|
||||||
|
$(MAKE) -f CMakeFiles\General.dir\build.make CMakeFiles/General.dir/src/debug.cpp.i
|
||||||
|
.PHONY : src/debug.cpp.i
|
||||||
|
|
||||||
|
src/debug.s: src/debug.cpp.s
|
||||||
|
|
||||||
|
.PHONY : src/debug.s
|
||||||
|
|
||||||
|
# target to generate assembly for a file
|
||||||
|
src/debug.cpp.s:
|
||||||
|
$(MAKE) -f CMakeFiles\General.dir\build.make CMakeFiles/General.dir/src/debug.cpp.s
|
||||||
|
.PHONY : src/debug.cpp.s
|
||||||
|
|
||||||
|
src/encrypt/aes.obj: src/encrypt/aes.cpp.obj
|
||||||
|
|
||||||
|
.PHONY : src/encrypt/aes.obj
|
||||||
|
|
||||||
|
# target to build an object file
|
||||||
|
src/encrypt/aes.cpp.obj:
|
||||||
|
$(MAKE) -f CMakeFiles\General.dir\build.make CMakeFiles/General.dir/src/encrypt/aes.cpp.obj
|
||||||
|
.PHONY : src/encrypt/aes.cpp.obj
|
||||||
|
|
||||||
|
src/encrypt/aes.i: src/encrypt/aes.cpp.i
|
||||||
|
|
||||||
|
.PHONY : src/encrypt/aes.i
|
||||||
|
|
||||||
|
# target to preprocess a source file
|
||||||
|
src/encrypt/aes.cpp.i:
|
||||||
|
$(MAKE) -f CMakeFiles\General.dir\build.make CMakeFiles/General.dir/src/encrypt/aes.cpp.i
|
||||||
|
.PHONY : src/encrypt/aes.cpp.i
|
||||||
|
|
||||||
|
src/encrypt/aes.s: src/encrypt/aes.cpp.s
|
||||||
|
|
||||||
|
.PHONY : src/encrypt/aes.s
|
||||||
|
|
||||||
|
# target to generate assembly for a file
|
||||||
|
src/encrypt/aes.cpp.s:
|
||||||
|
$(MAKE) -f CMakeFiles\General.dir\build.make CMakeFiles/General.dir/src/encrypt/aes.cpp.s
|
||||||
|
.PHONY : src/encrypt/aes.cpp.s
|
||||||
|
|
||||||
|
src/encrypt/base64.obj: src/encrypt/base64.cpp.obj
|
||||||
|
|
||||||
|
.PHONY : src/encrypt/base64.obj
|
||||||
|
|
||||||
|
# target to build an object file
|
||||||
|
src/encrypt/base64.cpp.obj:
|
||||||
|
$(MAKE) -f CMakeFiles\General.dir\build.make CMakeFiles/General.dir/src/encrypt/base64.cpp.obj
|
||||||
|
.PHONY : src/encrypt/base64.cpp.obj
|
||||||
|
|
||||||
|
src/encrypt/base64.i: src/encrypt/base64.cpp.i
|
||||||
|
|
||||||
|
.PHONY : src/encrypt/base64.i
|
||||||
|
|
||||||
|
# target to preprocess a source file
|
||||||
|
src/encrypt/base64.cpp.i:
|
||||||
|
$(MAKE) -f CMakeFiles\General.dir\build.make CMakeFiles/General.dir/src/encrypt/base64.cpp.i
|
||||||
|
.PHONY : src/encrypt/base64.cpp.i
|
||||||
|
|
||||||
|
src/encrypt/base64.s: src/encrypt/base64.cpp.s
|
||||||
|
|
||||||
|
.PHONY : src/encrypt/base64.s
|
||||||
|
|
||||||
|
# target to generate assembly for a file
|
||||||
|
src/encrypt/base64.cpp.s:
|
||||||
|
$(MAKE) -f CMakeFiles\General.dir\build.make CMakeFiles/General.dir/src/encrypt/base64.cpp.s
|
||||||
|
.PHONY : src/encrypt/base64.cpp.s
|
||||||
|
|
||||||
|
src/loger.obj: src/loger.cpp.obj
|
||||||
|
|
||||||
|
.PHONY : src/loger.obj
|
||||||
|
|
||||||
|
# target to build an object file
|
||||||
|
src/loger.cpp.obj:
|
||||||
|
$(MAKE) -f CMakeFiles\General.dir\build.make CMakeFiles/General.dir/src/loger.cpp.obj
|
||||||
|
.PHONY : src/loger.cpp.obj
|
||||||
|
|
||||||
|
src/loger.i: src/loger.cpp.i
|
||||||
|
|
||||||
|
.PHONY : src/loger.i
|
||||||
|
|
||||||
|
# target to preprocess a source file
|
||||||
|
src/loger.cpp.i:
|
||||||
|
$(MAKE) -f CMakeFiles\General.dir\build.make CMakeFiles/General.dir/src/loger.cpp.i
|
||||||
|
.PHONY : src/loger.cpp.i
|
||||||
|
|
||||||
|
src/loger.s: src/loger.cpp.s
|
||||||
|
|
||||||
|
.PHONY : src/loger.s
|
||||||
|
|
||||||
|
# target to generate assembly for a file
|
||||||
|
src/loger.cpp.s:
|
||||||
|
$(MAKE) -f CMakeFiles\General.dir\build.make CMakeFiles/General.dir/src/loger.cpp.s
|
||||||
|
.PHONY : src/loger.cpp.s
|
||||||
|
|
||||||
|
src/utils.obj: src/utils.cpp.obj
|
||||||
|
|
||||||
|
.PHONY : src/utils.obj
|
||||||
|
|
||||||
|
# target to build an object file
|
||||||
|
src/utils.cpp.obj:
|
||||||
|
$(MAKE) -f CMakeFiles\General.dir\build.make CMakeFiles/General.dir/src/utils.cpp.obj
|
||||||
|
.PHONY : src/utils.cpp.obj
|
||||||
|
|
||||||
|
src/utils.i: src/utils.cpp.i
|
||||||
|
|
||||||
|
.PHONY : src/utils.i
|
||||||
|
|
||||||
|
# target to preprocess a source file
|
||||||
|
src/utils.cpp.i:
|
||||||
|
$(MAKE) -f CMakeFiles\General.dir\build.make CMakeFiles/General.dir/src/utils.cpp.i
|
||||||
|
.PHONY : src/utils.cpp.i
|
||||||
|
|
||||||
|
src/utils.s: src/utils.cpp.s
|
||||||
|
|
||||||
|
.PHONY : src/utils.s
|
||||||
|
|
||||||
|
# target to generate assembly for a file
|
||||||
|
src/utils.cpp.s:
|
||||||
|
$(MAKE) -f CMakeFiles\General.dir\build.make CMakeFiles/General.dir/src/utils.cpp.s
|
||||||
|
.PHONY : src/utils.cpp.s
|
||||||
|
|
||||||
|
# Help Target
|
||||||
|
help:
|
||||||
|
@echo The following are some of the valid targets for this Makefile:
|
||||||
|
@echo ... all (the default if no target is provided)
|
||||||
|
@echo ... clean
|
||||||
|
@echo ... depend
|
||||||
|
@echo ... General
|
||||||
|
@echo ... edit_cache
|
||||||
|
@echo ... rebuild_cache
|
||||||
|
@echo ... obj/inc/rsa.obj
|
||||||
|
@echo ... obj/inc/rsa.i
|
||||||
|
@echo ... obj/inc/rsa.s
|
||||||
|
@echo ... src/debug.obj
|
||||||
|
@echo ... src/debug.i
|
||||||
|
@echo ... src/debug.s
|
||||||
|
@echo ... src/encrypt/aes.obj
|
||||||
|
@echo ... src/encrypt/aes.i
|
||||||
|
@echo ... src/encrypt/aes.s
|
||||||
|
@echo ... src/encrypt/base64.obj
|
||||||
|
@echo ... src/encrypt/base64.i
|
||||||
|
@echo ... src/encrypt/base64.s
|
||||||
|
@echo ... src/loger.obj
|
||||||
|
@echo ... src/loger.i
|
||||||
|
@echo ... src/loger.s
|
||||||
|
@echo ... src/utils.obj
|
||||||
|
@echo ... src/utils.i
|
||||||
|
@echo ... src/utils.s
|
||||||
|
.PHONY : help
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#=============================================================================
|
||||||
|
# Special targets to cleanup operation of make.
|
||||||
|
|
||||||
|
# Special rule to run CMake to check the build system integrity.
|
||||||
|
# No rule that depends on this can have commands that come from listfiles
|
||||||
|
# because they might be regenerated.
|
||||||
|
cmake_check_build_system:
|
||||||
|
$(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles\Makefile.cmake 0
|
||||||
|
.PHONY : cmake_check_build_system
|
||||||
|
|
|
@ -0,0 +1,44 @@
|
||||||
|
# Install script for directory: D:/project/c++/generallib
|
||||||
|
|
||||||
|
# Set the install prefix
|
||||||
|
if(NOT DEFINED CMAKE_INSTALL_PREFIX)
|
||||||
|
set(CMAKE_INSTALL_PREFIX "C:/Program Files (x86)/General")
|
||||||
|
endif()
|
||||||
|
string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
|
||||||
|
|
||||||
|
# Set the install configuration name.
|
||||||
|
if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
|
||||||
|
if(BUILD_TYPE)
|
||||||
|
string(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
|
||||||
|
CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
|
||||||
|
else()
|
||||||
|
set(CMAKE_INSTALL_CONFIG_NAME "Debug")
|
||||||
|
endif()
|
||||||
|
message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Set the component getting installed.
|
||||||
|
if(NOT CMAKE_INSTALL_COMPONENT)
|
||||||
|
if(COMPONENT)
|
||||||
|
message(STATUS "Install component: \"${COMPONENT}\"")
|
||||||
|
set(CMAKE_INSTALL_COMPONENT "${COMPONENT}")
|
||||||
|
else()
|
||||||
|
set(CMAKE_INSTALL_COMPONENT)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Is this installation the result of a crosscompile?
|
||||||
|
if(NOT DEFINED CMAKE_CROSSCOMPILING)
|
||||||
|
set(CMAKE_CROSSCOMPILING "FALSE")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(CMAKE_INSTALL_COMPONENT)
|
||||||
|
set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt")
|
||||||
|
else()
|
||||||
|
set(CMAKE_INSTALL_MANIFEST "install_manifest.txt")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT
|
||||||
|
"${CMAKE_INSTALL_MANIFEST_FILES}")
|
||||||
|
file(WRITE "D:/project/c++/generallib/cmake-build-debug/${CMAKE_INSTALL_MANIFEST}"
|
||||||
|
"${CMAKE_INSTALL_MANIFEST_CONTENT}")
|
|
@ -0,0 +1,213 @@
|
||||||
|
//
|
||||||
|
// Created by 29019 on 2020/1/5.
|
||||||
|
//
|
||||||
|
|
||||||
|
#include "rsa.h"
|
||||||
|
#include <iostream>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <time.h>
|
||||||
|
#include <math.h>
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
//小素数表
|
||||||
|
const static int PrimeTable[550]=
|
||||||
|
{ 3, 5, 7, 11, 13, 17, 19, 23, 29, 31,
|
||||||
|
37, 41, 43, 47, 53, 59, 61, 67, 71, 73,
|
||||||
|
79, 83, 89, 97, 101, 103, 107, 109, 113, 127,
|
||||||
|
131, 137, 139, 149, 151, 157, 163, 167, 173, 179,
|
||||||
|
181, 191, 193, 197, 199, 211, 223, 227, 229, 233,
|
||||||
|
239, 241, 251, 257, 263, 269, 271, 277, 281, 283,
|
||||||
|
293, 307, 311, 313, 317, 331, 337, 347, 349, 353,
|
||||||
|
359, 367, 373, 379, 383, 389, 397, 401, 409, 419,
|
||||||
|
421, 431, 433, 439, 443, 449, 457, 461, 463, 467,
|
||||||
|
479, 487, 491, 499, 503, 509, 521, 523, 541, 547,
|
||||||
|
557, 563, 569, 571, 577, 587, 593, 599, 601, 607,
|
||||||
|
613, 617, 619, 631, 641, 643, 647, 653, 659, 661,
|
||||||
|
673, 677, 683, 691, 701, 709, 719, 727, 733, 739,
|
||||||
|
743, 751, 757, 761, 769, 773, 787, 797, 809, 811,
|
||||||
|
821, 823, 827, 829, 839, 853, 857, 859, 863, 877,
|
||||||
|
881, 883, 887, 907, 911, 919, 929, 937, 941, 947,
|
||||||
|
953, 967, 971, 977, 983, 991, 997, 1009, 1013, 1019,
|
||||||
|
1021, 1031, 1033, 1039, 1049, 1051, 1061, 1063, 1069, 1087,
|
||||||
|
1091, 1093, 1097, 1103, 1109, 1117, 1123, 1129, 1151, 1153,
|
||||||
|
1163, 1171, 1181, 1187, 1193, 1201, 1213, 1217, 1223, 1229,
|
||||||
|
1231, 1237, 1249, 1259, 1277, 1279, 1283, 1289, 1291, 1297,
|
||||||
|
1301, 1303, 1307, 1319, 1321, 1327, 1361, 1367, 1373, 1381,
|
||||||
|
1399, 1409, 1423, 1427, 1429, 1433, 1439, 1447, 1451, 1453,
|
||||||
|
1459, 1471, 1481, 1483, 1487, 1489, 1493, 1499, 1511, 1523,
|
||||||
|
1531, 1543, 1549, 1553, 1559, 1567, 1571, 1579, 1583, 1597,
|
||||||
|
1601, 1607, 1609, 1613, 1619, 1621, 1627, 1637, 1657, 1663,
|
||||||
|
1667, 1669, 1693, 1697, 1699, 1709, 1721, 1723, 1733, 1741,
|
||||||
|
1747, 1753, 1759, 1777, 1783, 1787, 1789, 1801, 1811, 1823,
|
||||||
|
1831, 1847, 1861, 1867, 1871, 1873, 1877, 1879, 1889, 1901,
|
||||||
|
1907, 1913, 1931, 1933, 1949, 1951, 1973, 1979, 1987, 1993,
|
||||||
|
1997, 1999, 2003, 2011, 2017, 2027, 2029, 2039, 2053, 2063,
|
||||||
|
2069, 2081, 2083, 2087, 2089, 2099, 2111, 2113, 2129, 2131,
|
||||||
|
2137, 2141, 2143, 2153, 2161, 2179, 2203, 2207, 2213, 2221,
|
||||||
|
2237, 2239, 2243, 2251, 2267, 2269, 2273, 2281, 2287, 2293,
|
||||||
|
2297, 2309, 2311, 2333, 2339, 2341, 2347, 2351, 2357, 2371,
|
||||||
|
2377, 2381, 2383, 2389, 2393, 2399, 2411, 2417, 2423, 2437,
|
||||||
|
2441, 2447, 2459, 2467, 2473, 2477, 2503, 2521, 2531, 2539,
|
||||||
|
2543, 2549, 2551, 2557, 2579, 2591, 2593, 2609, 2617, 2621,
|
||||||
|
2633, 2647, 2657, 2659, 2663, 2671, 2677, 2683, 2687, 2689,
|
||||||
|
2693, 2699, 2707, 2711, 2713, 2719, 2729, 2731, 2741, 2749,
|
||||||
|
2753, 2767, 2777, 2789, 2791, 2797, 2801, 2803, 2819, 2833,
|
||||||
|
2837, 2843, 2851, 2857, 2861, 2879, 2887, 2897, 2903, 2909,
|
||||||
|
2917, 2927, 2939, 2953, 2957, 2963, 2969, 2971, 2999, 3001,
|
||||||
|
3011, 3019, 3023, 3037, 3041, 3049, 3061, 3067, 3079, 3083,
|
||||||
|
3089, 3109, 3119, 3121, 3137, 3163, 3167, 3169, 3181, 3187,
|
||||||
|
3191, 3203, 3209, 3217, 3221, 3229, 3251, 3253, 3257, 3259,
|
||||||
|
3271, 3299, 3301, 3307, 3313, 3319, 3323, 3329, 3331, 3343,
|
||||||
|
3347, 3359, 3361, 3371, 3373, 3389, 3391, 3407, 3413, 3433,
|
||||||
|
3449, 3457, 3461, 3463, 3467, 3469, 3491, 3499, 3511, 3517,
|
||||||
|
3527, 3529, 3533, 3539, 3541, 3547, 3557, 3559, 3571, 3581,
|
||||||
|
3583, 3593, 3607, 3613, 3617, 3623, 3631, 3637, 3643, 3659,
|
||||||
|
3671, 3673, 3677, 3691, 3697, 3701, 3709, 3719, 3727, 3733,
|
||||||
|
3739, 3761, 3767, 3769, 3779, 3793, 3797, 3803, 3821, 3823,
|
||||||
|
3833, 3847, 3851, 3853, 3863, 3877, 3881, 3889, 3907, 3911,
|
||||||
|
3917, 3919, 3923, 3929, 3931, 3943, 3947, 3967, 3989, 4001
|
||||||
|
};
|
||||||
|
|
||||||
|
BigInt GetPrime(int bits)
|
||||||
|
{
|
||||||
|
unsigned i;
|
||||||
|
BigInt ret(bits/8);
|
||||||
|
uint8_t *m_ulValue = ret.Data();
|
||||||
|
int m_nLength = bits;
|
||||||
|
begin:
|
||||||
|
for(i=0;i<m_nLength;i++)
|
||||||
|
m_ulValue[i] = rand()*0x10000 + rand();
|
||||||
|
m_ulValue[0] = m_ulValue[0]|1;
|
||||||
|
for(i = m_nLength - 1;i > 0;i--)
|
||||||
|
{
|
||||||
|
m_ulValue[i] = m_ulValue[i]<<1;
|
||||||
|
if(m_ulValue[i-1]&0x80000000)
|
||||||
|
m_ulValue[i]++;
|
||||||
|
}
|
||||||
|
m_ulValue[0]=m_ulValue[0]<<1;
|
||||||
|
m_ulValue[0]++;
|
||||||
|
for(i = 0; i <550;i++)
|
||||||
|
{
|
||||||
|
//if(Mod(PrimeTable[i]) == 0)
|
||||||
|
// goto begin;
|
||||||
|
}
|
||||||
|
//CBigInt S,A,I,K;
|
||||||
|
//K.Mov(*this);
|
||||||
|
//K.m_ulValue[0]--;
|
||||||
|
for(i=0;i<5;i++)
|
||||||
|
{
|
||||||
|
//A.Mov(rand()*rand());
|
||||||
|
//S.Mov(K.Div(2));
|
||||||
|
//I.Mov(A.RsaTrans(S,*this));
|
||||||
|
//if(((I.m_nLength!=1) || (I.m_ulValue[0]!=1))&&(I.Cmp(K)!=0))
|
||||||
|
// goto begin;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 生成伪素数
|
||||||
|
const int MAX_ROW = 50;
|
||||||
|
size_t Pseudoprime()
|
||||||
|
{
|
||||||
|
bool ifprime = false;
|
||||||
|
size_t a = 0;
|
||||||
|
int arr[MAX_ROW]; //数组arr为{3,4,5,6...52}
|
||||||
|
for (int i = 0; i<MAX_ROW; ++i)
|
||||||
|
{
|
||||||
|
arr[i] = i+3;
|
||||||
|
}
|
||||||
|
while (!ifprime)
|
||||||
|
{
|
||||||
|
srand((unsigned)time(0));
|
||||||
|
ifprime = true;
|
||||||
|
a = (rand()%10000)*2+3; //生成一个范围在3到2003里的奇数
|
||||||
|
for (int j = 0; j<MAX_ROW; ++j)
|
||||||
|
{
|
||||||
|
if (a%arr[j] == 0)
|
||||||
|
{
|
||||||
|
ifprime = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return a;
|
||||||
|
}
|
||||||
|
|
||||||
|
size_t repeatMod(size_t base, size_t n, size_t mod)//模重复平方算法求(b^n)%m
|
||||||
|
{
|
||||||
|
size_t a = 1;
|
||||||
|
while(n)
|
||||||
|
{
|
||||||
|
if(n&1)
|
||||||
|
{
|
||||||
|
a = (a*base)%mod;
|
||||||
|
}
|
||||||
|
base = (base*base)%mod;
|
||||||
|
n = n>>1;
|
||||||
|
}
|
||||||
|
return a;
|
||||||
|
}
|
||||||
|
|
||||||
|
//Miller-Rabin素数检测
|
||||||
|
bool rabinmiller(size_t n, size_t k)
|
||||||
|
{
|
||||||
|
|
||||||
|
int s = 0;
|
||||||
|
int temp = n-1;
|
||||||
|
while ((temp & 0x1) == 0 && temp)
|
||||||
|
{
|
||||||
|
temp = temp>>1;
|
||||||
|
s++;
|
||||||
|
} //将n-1表示为(2^s)*t
|
||||||
|
size_t t = temp;
|
||||||
|
|
||||||
|
while(k--) //判断k轮误判概率不大于(1/4)^k
|
||||||
|
{
|
||||||
|
srand((unsigned)time(0));
|
||||||
|
size_t b = rand()%(n-2)+2; //生成一个b(2≤a ≤n-2)
|
||||||
|
|
||||||
|
size_t y = repeatMod(b,t,n);
|
||||||
|
if (y == 1 || y == (n-1))
|
||||||
|
return true;
|
||||||
|
for(int j = 1; j<=(s-1) && y != (n-1); ++j)
|
||||||
|
{
|
||||||
|
y = repeatMod(y,2,n);
|
||||||
|
if (y == 1)
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if ( y != (n-1))
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
BigInt::BigInt(int size) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
BigInt::BigInt(int size, uint8_t *dat) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
BigInt BigInt::operator=(const BigInt &) {
|
||||||
|
return BigInt(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
BigInt BigInt::operator>(const BigInt &) {
|
||||||
|
return BigInt(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
BigInt BigInt::operator<(const BigInt &) {
|
||||||
|
return BigInt(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
BigInt BigInt::operator^(const BigInt &) {
|
||||||
|
return BigInt(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
string BigInt::ToString() {
|
||||||
|
return std::__cxx11::string();
|
||||||
|
}
|
||||||
|
|
||||||
|
uint8_t *BigInt::Data() {
|
||||||
|
return mDat;
|
||||||
|
}
|
|
@ -0,0 +1,32 @@
|
||||||
|
//
|
||||||
|
// Created by 29019 on 2020/1/5.
|
||||||
|
//
|
||||||
|
|
||||||
|
#ifndef GENERAL_RSA_H
|
||||||
|
#define GENERAL_RSA_H
|
||||||
|
|
||||||
|
#include <memory.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
#include <string>
|
||||||
|
using namespace std;
|
||||||
|
class BigInt{
|
||||||
|
public:
|
||||||
|
BigInt(int size);
|
||||||
|
BigInt(int size,uint8_t *dat);
|
||||||
|
BigInt operator=(const BigInt&);
|
||||||
|
BigInt operator>(const BigInt&);
|
||||||
|
BigInt operator<(const BigInt&);
|
||||||
|
BigInt operator^(const BigInt&);
|
||||||
|
string ToString();
|
||||||
|
uint8_t *Data();
|
||||||
|
private:
|
||||||
|
uint8_t mDat[2048];
|
||||||
|
int mSize;
|
||||||
|
};
|
||||||
|
|
||||||
|
class rsa {
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
#endif //GENERAL_RSA_H
|
Binary file not shown.
Loading…
Reference in New Issue