commit | d0483e2a8961f7a717bbe86f91f2688834ca40e1 | [log] [tgz] |
---|---|---|
author | Pirmin Vogel <vogelpi@lowrisc.org> | Thu Sep 16 19:11:39 2021 +0200 |
committer | Pirmin Vogel <vogelpi@lowrisc.org> | Mon Sep 20 11:44:43 2021 +0200 |
tree | 157571907b25404c9d621fc23147f31dec4f31d4 | |
parent | 698ef88da4160fa4faa2e6fc674950543b62db07 [diff] |
[sca] Optimize sha3_serial for lower noise, return digest via UART This commit contains the following changes to the sha3_serial SCA application: - Instead of busy waiting until KMAC has finished, Ibex is put to sleep while KMAC is busy and the timer is used to wakeup Ibex. This significantly reduces noise. - The dedicated FPGA SCA mode of KMAC is used that allows for first configuring the unit and providing the message without KMAC starting the processing. In a second step, Ibex can then provide the START and PROCESS commands which triggers the actual KMAC operation. This greatly reduces 1) the number of samples that need to be captured, 2) the noise in the captured traces, and 3) the amount of processing. As this mode is only supported on FPGA but not by the final hardware, and thus DIF doesn't support it either, this commit adds the required software functions (inspired by the real DIF). - KMAC is configured to produce a non-zero length digest. The digest is read out and returned to the host via UART. Using a Python model on the host, this allows verifying KMAC operation during capture. Signed-off-by: Pirmin Vogel <vogelpi@lowrisc.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 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).