blob: 4043a0f8a10236570a1d7acf223339b136cd7a85 [file] [log] [blame] [view]
Miguel Osorio40caa9e2021-05-27 21:45:20 -07001---
2title: "OTBN Code Snippets"
3---
Rupert Swarbrick1047ba22020-07-20 11:32:59 +01004
5This directory contains some code snippets that give examples of how
6to do various tasks in OTBN code.
7
Miguel Osorio40caa9e2021-05-27 21:45:20 -07008- `modexp.s`: An example of how to do modular exponentiation.
9- `pseudo-ops.s`: An example of the pseudo-operations supported by the OTBN ISA.
10- `mul256.s`: An example of a 256x256 bit multiply using the MULQACC
11 instruction.
12- `mul384.s`: An example of a 384x384 bit multiply using the MULQACC
13 instruction.
14- `barrett384.s`: An example of a modular multiplication kernel based on
15 Barrett reduction.
Rupert Swarbrickc803d022020-10-20 11:16:45 +010016
17Also included in this directory is a Makefile fragment that can be
18used to assemble and link the snippets. This can be used standalone or
19included in another Makefile.