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