Skip to content

jeffrey-minwei/bare-simple-sha2-128

Repository files navigation

SLH-DSA-SHA2-128s and SLH-DSA-SHA2-128f

CI (Bare-metal nRF52840 CI)

雖然本專案的原始碼是依照 FIPS 205 [1] 的 algorithms 撰寫, 但在實作細節上,大量參考了 SPHINCS+ 參考實作

This implementation follows the algorithms described in FIPS 205, while heavily inspired by the The SPHINCS+ reference code.


本專案實作了 SLH-DSA 簽章演算法,遵循 Stateless Hash-Based Digital Signature Standard (FIPS 205) 規範。

  • 約 98% 的原始程式碼最初由 ChatGPT 生成。
  • 所有密碼學演算法與參數均依據 FIPS 205 標準。
  • 後續的 debug、測試與整合皆由人工完成,目前簽章及驗章功能仍在開發中。
  • 僅以 simple、SHA2 為主,原因是 SHA2 便於之後整合 CryptoCell-310、CryptoCell-312,而且 FIPS 205 並未 approved robust,僅 approved simple
image

Make

For develop or test purpose, random could be generated with KAT rng.c which is provided by NIST. [2]

make TARGET=nrf52840 NRFXLIB_DIR="${NRFXLIB_DIR}" KAT_RNG=1
make TARGET=nrf5340dk NRFXLIB_DIR="${NRFXLIB_DIR}" KAT_RNG=1

References

  1. FIPS 205 Stateless Hash-Based Digital Signature Standard
  2. PQC - Known Answer Tests and Test Vectors

本專案以 Apache License 2.0 授權公開。

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •