tree: 1683763ed2d02cb0129e0ed901b30d7dfeb1180a [path history] [tgz]
  1. barrett384.s
  2. BUILD
  3. err_test.s
  4. loop.s
  5. meson.build
  6. mul256.s
  7. mul384.s
  8. pseudo-ops.s
  9. randomness.s
  10. README.md
  11. solinas384.s
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.