tree: dc52677a5ce72bd1fd008560b1b39ae610d53a16 [path history] [tgz]
  1. barrett384.S
  2. LICENSE.dcrypto
  3. loop.S
  4. Makefile
  5. modexp.S
  6. mul256.S
  7. mul384.S
  8. pseudo-ops.S
  9. README.md
  10. 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.