commit | cc79e0b222fdb85ed677cf8ce09fc20d747fa9e5 | [log] [tgz] |
---|---|---|
author | Jade Philipoom <jadep@google.com> | Tue Nov 08 13:10:58 2022 +0100 |
committer | jadephilipoom <jadep@google.com> | Mon Dec 12 03:07:06 2022 -0500 |
tree | 1f0764ae9aa8f2d8025a44ce376dec8f1bc4be46 | |
parent | ef72d061eae70eb18904e0157334dc1da8e2ce22 [diff] |
[crypto] Consolidate the OTBN driver and make it stateless. Previously, the functional OTBN driver for cryptolib was split between drivers/otbn.c and impl/otbn_util.c, with the latter providing a few basic utility functions in terms of the former. The otbn_util.c version also included a state struct which simply stated which app was loaded into OTBN (if any). This commit completely removes impl/otbn_util.c. It removes the state struct and moves some functions to drivers/otbn.c while eliminating others (for instance, `otbn_copy_data_to_otbn()` is replaced with `otbn_dmem_write()`, since they have a very similar interface). Accordingly, some of existing functions (including `otbn_dmem_write`) are adjusted to be more intuitive to use (e.g. by using an `otbn_addr_t` instead of a raw byte offset). Overall, the purpose of this change is to make the driver easier to understand, use, and test, with all the source code in one place. It also fits better with the (stateless) cryptolib to remove the OTBN state struct. Signed-off-by: Jade Philipoom <jadep@google.com>
OpenTitan is an open source silicon Root of Trust (RoT) project. OpenTitan will make the silicon RoT design and implementation more transparent, trustworthy, and secure for enterprises, platform providers, and chip manufacturers. OpenTitan is administered by lowRISC CIC as a collaborative project to produce high quality, open IP for instantiation as a full-featured product. See the OpenTitan site and OpenTitan docs for more information about the project.
This repository contains hardware, software and utilities written as part of the OpenTitan project. It is structured as monolithic repository, or “monorepo”, where all components live in one repository. It exists to enable collaboration across partners participating in the OpenTitan project.
The project contains comprehensive documentation of all IPs and tools. You can access it online at docs.opentitan.org.
Have a look at CONTRIBUTING and our documentation on project organization and processes for guidelines on how to contribute code to this repository.
Unless otherwise noted, everything in this repository is covered by the Apache License, Version 2.0 (see LICENSE for full text).