commit | 09035e75605fcfb092b268d08a42b563669cfb00 | [log] [tgz] |
---|---|---|
author | Eunchan Kim <eunchan@opentitan.org> | Wed Apr 01 15:47:53 2020 -0700 |
committer | Eunchan Kim <eunchan@opentitan.org> | Tue Apr 07 08:20:54 2020 -0700 |
tree | db6047e2fe7ed87aaa8ea13cdf921ce4e91f1c7a | |
parent | 5f0f8284ed1e170f4cd4a9e713fa10f36f62a7ee [diff] |
[hmac] Drop the request prior to hash_start Jon mentioned the case that MSG_FIFO can be back-pressured when the software writes the message into MSG_FIFO when `hash_start` is not asserted in issue #1869. It is not desirable behavior as it can lock the core access. If that happens, core cannot set `hash_start` to flush out the data. This commit is to restrict the access from the software. It only allows the MSG_FIFO (request to packer) from `hash_start` to `hash_process`. If the software tries to write the message other than the time above, it drops the request and raises an error with `SwPushMsgWhenDisallowed(0x5)` error code. This is related to #1869 #1871 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 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).