commit | 3594d9603b93ec26ecc18bbb10b35dfd778739bf | [log] [tgz] |
---|---|---|
author | Eunchan Kim <eunchan@opentitan.org> | Mon Nov 18 13:42:23 2019 -0800 |
committer | Eunchan Kim <eunchan@opentitan.org> | Tue Nov 19 16:01:55 2019 -0800 |
tree | db5d3bce2db669c61e14dc67ddc20f7b3cacd0c1 | |
parent | d42948c40fa9a3cb2d7804af7b7cc7764e9e5edd [diff] |
[hmac] Block the configuration change while processing There were a few test failures on the sudden CFG register update during SHA/HMAC process. A few bugs caused system hang. They blocked the interconnect so that the software cannot release the errors. Related commits: 14a4312 13678cf Latest one that @cindychip found at Issue #991 also caused hang condition inside HMAC. Rather fixing every hang condition, it seems to be better to block the CFG update in the middle of the process. If the software wants to update CFG, it can update CFG but it only can be visible to the hardware after the current HMAC/SHA process is completed. This PR also blocks the secret key update while the hash engine is active. Secret key (KEY0 .. KEY7) can only be updated after the engine completes the computing of hash and before the new message is fed. If the event occurs (secret key is updated in process), the error will be reported to the software through the ERROR FIFO. This is related to #991 Signed-off-by: Eunchan Kim <eunchan@opentitan.org>
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 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 either access it online or build it locally by following the steps below.
$ sudo apt install curl python3 python3-pip $ pip3 install --user -r python-requirements.txt
$ ./util/build_docs.py --preview
This compiles the documentation into ./build/docs
and starts a local server, which allows you to access the documentation at http://127.0.0.1:1313.
Have a look at CONTRIBUTING 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).