tree: d4aa73529287f97f3cddbaea25c5492a1864466c [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_scalar_mult_test.s
  17. pseudo-ops.s
  18. README.md
  19. rsa.s
  20. rsa_1024_dec_test.s
  21. rsa_1024_enc_test.s
  22. 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.