tree: 2021d13b5111e08c4d7b37bb8f3ad4baf8661eb6 [path history] [tgz]
  1. barrett384.s
  2. barrett384_p384.s
  3. err_test.s
  4. LICENSE.dcrypto
  5. loop.s
  6. Makefile
  7. meson.build
  8. modexp.s
  9. mul256.s
  10. mul384.s
  11. p256.s
  12. p256_curve_point_test.s
  13. p256_ecdsa.s
  14. p256_ecdsa_sign_test.s
  15. p256_ecdsa_verify_test.s
  16. p256_proj_add_test.s
  17. p256_scalar_mult_test.s
  18. p384_proj_add.s
  19. p384_proj_add_test.s
  20. pseudo-ops.s
  21. README.md
  22. rsa.s
  23. rsa_1024_dec_test.s
  24. rsa_1024_enc_test.s
  25. rules.mk
sw/otbn/code-snippets/README.md

OTBN code snippet collection

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.