tree: 042055a7b8d899a30ed877ad4a77766835792e74 [path history] [tgz]
  1. barrett384.s
  2. err_test.s
  3. LICENSE.dcrypto
  4. loop.s
  5. Makefile
  6. meson.build
  7. modexp.s
  8. mul256.s
  9. mul384.s
  10. p256.s
  11. p256_curve_point_test.s
  12. p256_ecdsa.s
  13. p256_ecdsa_sign_test.s
  14. p256_ecdsa_verify_test.s
  15. p256_proj_add_test.s
  16. p256_scalar_mult_test.s
  17. p384_base.s
  18. p384_ecdsa_sign_test.s
  19. p384_ecdsa_verify_test.s
  20. p384_proj_add_test.s
  21. p384_scalar_mult_test.s
  22. p384_sign.s
  23. p384_verify.s
  24. pseudo-ops.s
  25. README.md
  26. rsa.s
  27. rsa_1024_dec_test.s
  28. rsa_1024_enc_test.s
  29. rsa_verify.s
  30. rsa_verify_test.s
  31. rsa_verify_test_exp3.s
  32. rules.mk
sw/otbn/code-snippets/README.md

title: “OTBN Code Snippets”

This directory contains some code snippets that give examples of how to do various tasks in OTBN code.

  • modexp.s: An example of how to do modular exponentiation.
  • pseudo-ops.s: An example of the pseudo-operations supported by the OTBN ISA.
  • mul256.s: An example of a 256x256 bit multiply using the MULQACC instruction.
  • mul384.s: An example of a 384x384 bit multiply using the MULQACC instruction.
  • barrett384.s: An example of a modular multiplication kernel based on Barrett reduction.

Also included in this directory is a Makefile fragment that can be used to assemble and link the snippets. This can be used standalone or included in another Makefile.