From: Joel Stanley <joel@jms.id.au>
To: "Cédric Le Goater" <clg@kaod.org>
Cc: Andrew Jeffery <andrew@aj.id.au>,
Peter Maydell <peter.maydell@linaro.org>,
qemu-arm@nongnu.org, qemu-devel@nongnu.org
Subject: [PATCH 0/2] hw/misc: Model ASPEED hash and crpyto engine
Date: Wed, 3 Mar 2021 17:33:29 +1030 [thread overview]
Message-ID: <20210303070331.70744-1-joel@jms.id.au> (raw)
This adds a model for the ASPEED hash and crypto engine (HACE) found on
all supported ASPEED SoCs.
The model uses Qemu's gcrypto API to perform the SHA and MD5 hashing
directly in the machine's emulated memory space, which I found a neat
use of Qemu's features.
It has been tested using u-boot and from Linux userspace.
Joel Stanley (2):
hw: Model ASPEED's Hash and Crypto Engine
aspeed: Integrate HACE
docs/system/arm/aspeed.rst | 2 +-
include/hw/arm/aspeed_soc.h | 3 +
include/hw/misc/aspeed_hace.h | 33 ++++
hw/arm/aspeed_ast2600.c | 14 ++
hw/arm/aspeed_soc.c | 15 ++
hw/misc/aspeed_hace.c | 302 ++++++++++++++++++++++++++++++++++
hw/misc/meson.build | 2 +-
7 files changed, 369 insertions(+), 2 deletions(-)
create mode 100644 include/hw/misc/aspeed_hace.h
create mode 100644 hw/misc/aspeed_hace.c
--
2.30.1
next reply other threads:[~2021-03-03 7:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-03 7:03 Joel Stanley [this message]
2021-03-03 7:03 ` [PATCH 1/2] hw: Model ASPEED's Hash and Crypto Engine Joel Stanley
2021-03-09 1:01 ` Andrew Jeffery
2021-03-11 6:17 ` Joel Stanley
2021-03-09 9:40 ` Philippe Mathieu-Daudé
2021-03-03 7:03 ` [PATCH 2/2] aspeed: Integrate HACE Joel Stanley
2021-03-09 1:07 ` Andrew Jeffery
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210303070331.70744-1-joel@jms.id.au \
--to=joel@jms.id.au \
--cc=andrew@aj.id.au \
--cc=clg@kaod.org \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).