2个稳定版本
1.1.0 | 2023年5月22日 |
---|---|
1.0.0 | 2023年1月31日 |
#2472 in 密码学
185KB
4K SLoC
此库提供了使用pEp引擎的cryptotech接口,并通过Sequoia实现的实现。
构建
Linux和MacOS
您至少需要版本1.63的rustc
和cargo
。
您可以通过以下方式构建此库
$ git clone https://gitea.pep.foundation/pEp.foundation/pEpEngineSequoiaBackend.git
$ cd pEpEngineSequoiaBackend
$ make
$ make install
要配置此库的构建方式,请编辑local.conf
。
在调试模式下构建时,库总是生成跟踪输出。如果在发布模式下遇到问题,可以通过设置环境变量PEP_TRACE
来获取库执行的跟踪。
Windows
在Windows上,pEp引擎的Sequoia PGP后端也使用Botan后端。
使用兼容Visual Studio的Rust编译器
您可以通过尝试以下操作来检查此操作
C:\Users\vb\source\repos\pEpEngineSequoiaBackend> rustup show active-toolchain
1.60.0-x86_64-pc-windows-msvc (default)
使用提供的NMakefile调用NMake
C:\Users\vb\source\repos\pEpEngineSequoiaBackend> nmake /F NMakefile
Microsoft (R) Program Maintenance Utility, Version 14.34.31937.0
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.
cargo build --features crypto-cng --no-default-features --release
Finished release [optimized] target(s) in 0.20s
Built target\release\pep_engine_sequoia_backend.dll
要获取调试版本而不是发布版本,请设置环境变量DEBUG=debug
C:\Users\vb\source\repos\pEpEngineSequoiaBackend> nmake /F NMakefile /E DEBUG=debug
Microsoft (R) Program Maintenance Utility, Version 14.34.31937.0
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.
cargo build --features crypto-cng --no-default-features
Finished dev [unoptimized + debuginfo] target(s) in 0.18s
Built target\debug\pep_engine_sequoia_backend.dll
与GNU Make不同,如果您想要构建发布版本,则不能定义DEBUG
。
依赖项
~48MB
~771K SLoC