16个版本

0.5.8 2022年4月14日
0.5.7 2021年11月25日
0.5.6 2021年9月20日
0.5.4 2021年6月10日
0.4.1 2019年7月24日

#2579 in 密码学

MIT/Apache

38MB
1M SLoC

GNU Style Assembly 567K SLoC // 0.0% comments C 354K SLoC // 0.2% comments Bitbake 59K SLoC // 0.0% comments Rust 1.5K SLoC // 0.0% comments Python 1.5K SLoC // 0.1% comments SWIG 348 SLoC // 0.0% comments Jinja2 204 SLoC INI 5 SLoC

ntru

此crate包含了对以下方案的C实现绑定,来自PQClean

此项目包装了参与NIST PQC标准化工作的后量子加密算法。它目前是PQClean项目C实现的集合。

序列化

如果您需要serde支持,请启用serialization功能。

PQClean中包含的实现

以下是一个包含的方案列表和从PQClean获取的相应实现列表。在Rust友好接口中使用“默认”实现,替代实现仅作为ffi方法公开。

  • ntruhps2048509
    • clean
    • avx2(如果支持)
  • ntruhps2048677
    • clean
    • avx2(如果支持)
  • ntruhps4096821
    • clean
    • avx2(如果支持)
  • ntruhps40961229
    • clean
  • ntruhrss701
    • clean
    • avx2(如果支持)
  • ntruhrss1373
    • clean

许可证

此项目中的包装器和包装生成脚本受MIT或Apache 2.0许可证的保护,任选其一。

然而,我们链接到的实现不受此限制。请参阅PQClean项目以获取适当的许可证。

依赖关系