The crypto submodule of VMPilot. We provide two 3-rd party crypto library as the backend of VMPilot-crypto.
Please refer to the release page
- CMake support C++20
- C++ compiler support C++20
- Ninja build system
- mold linker
-
CRYPTO_LIB
:- Description: The backend crypto library. Default is
Botan
. Other options areOpenSSL
andlibsodium
. - Options:
Botan
(default)OpenSSL
libsodium
- Description: The backend crypto library. Default is
-
CMAKE_LINKER
:- Description: The linker. Default is
ld
. Other options aremold
,lld
andgold
. - Options:
ld
(default)mold
lld
gold
- Description: The linker. Default is
mkdir build && cd build
cmake .. -DCRYPTO_LIB=Botan -G Ninja -DCMAKE_LINKER=mold
ninja
And the output library file will be in build/
.
Apache License 2.0
If you are using the OpenSSL in your Apple device, but stuck with the find package error, you could refer to https://stackoverflow.com/a/69268455 for possible solutions.
If it says something like this:
XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stdlib.h:93:15: fatal error: 'stdlib.h' file not found
You could add a cmake option to specify the C++ compiler:
-DCXX=clang++
so that it will use the clang++ instead of the AppleClang.