From: FUJITA Tomonori <fujita.tomonori@gmail.com>
To: rust-for-linux@vger.kernel.org, linux-crypto@vger.kernel.org
Cc: alex.gaynor@gmail.com, herbert@gondor.apana.org.au,
ebiggers@kernel.org, benno.lossin@proton.me
Subject: [PATCH v2 0/3] Rust abstractions for Crypto API
Date: Mon, 10 Jul 2023 19:22:22 +0900 [thread overview]
Message-ID: <20230710102225.155019-1-fujita.tomonori@gmail.com> (raw)
This patchset adds minimum Rust abstractions for Crypto API; message
digest and random number generator.
I'm trying to upstream network and crypto abstractions separately so
v2 has only crypto stuff.
Changes since v1 [1]:
- ShashDesc::new() returns the initialized object.
- checks the length of buffer.
- fix a compile error without CONFIG_CRYPTO.
- adds RNG support.
- drops network code.
- updates the CRYPTO API entry.
[1] https://lore.kernel.org/netdev/010101881db036fb-2fb6981d-e0ef-4ad1-83c3-54d64b6d93b3-000000@us-west-2.amazonses.com/T/
FUJITA Tomonori (3):
rust: crypto abstractions for synchronous message digest API
rust: crypto abstractions for random number generator API
MAINTAINERS: add Rust crypto abstractions files to the CRYPTO API
entry
MAINTAINERS | 2 +
rust/bindings/bindings_helper.h | 2 +
rust/helpers.c | 38 ++++++++++
rust/kernel/crypto.rs | 6 ++
rust/kernel/crypto/hash.rs | 128 ++++++++++++++++++++++++++++++++
rust/kernel/crypto/rng.rs | 101 +++++++++++++++++++++++++
rust/kernel/lib.rs | 2 +
7 files changed, 279 insertions(+)
create mode 100644 rust/kernel/crypto.rs
create mode 100644 rust/kernel/crypto/hash.rs
create mode 100644 rust/kernel/crypto/rng.rs
--
2.34.1
next reply other threads:[~2023-07-10 10:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-10 10:22 FUJITA Tomonori [this message]
2023-07-10 10:22 ` [PATCH v2 1/3] rust: crypto abstractions for synchronous message digest API FUJITA Tomonori
2023-07-14 16:19 ` Benno Lossin
2023-07-10 10:22 ` [PATCH v2 2/3] rust: crypto abstractions for random number generator API FUJITA Tomonori
2023-07-14 16:20 ` Benno Lossin
2023-07-10 10:22 ` [PATCH v2 3/3] MAINTAINERS: add Rust crypto abstractions files to the CRYPTO API entry FUJITA Tomonori
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=20230710102225.155019-1-fujita.tomonori@gmail.com \
--to=fujita.tomonori@gmail.com \
--cc=alex.gaynor@gmail.com \
--cc=benno.lossin@proton.me \
--cc=ebiggers@kernel.org \
--cc=herbert@gondor.apana.org.au \
--cc=linux-crypto@vger.kernel.org \
--cc=rust-for-linux@vger.kernel.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).